Recreate RPC client on WithNodeURI

This commit is contained in:
Christopher Goes 2018-04-11 11:25:52 +02:00
parent 3581a4d079
commit 24f3a3a71c
No known key found for this signature in database
GPG Key ID: E828D98232D328D3
1 changed files with 1 additions and 0 deletions

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
}