Recreate RPC client on WithNodeURI
This commit is contained in:
parent
3581a4d079
commit
24f3a3a71c
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue