Recreate RPC client on WithNodeURI

This commit is contained in:
Christopher Goes
2018-04-11 11:25:52 +02:00
parent 3581a4d079
commit 24f3a3a71c
+1
View File
@@ -31,6 +31,7 @@ func (c CoreContext) WithTrustNode(trustNode bool) CoreContext {
func (c CoreContext) WithNodeURI(nodeURI string) CoreContext {
c.NodeURI = nodeURI
c.Client = rpcclient.NewHTTP(nodeURI, "/websocket")
return c
}