func (cl *BenchClient) SetupBenchNoiseClient(server string, port uint16) (err error) {

	// Authenticate with the same key that BenchClient uses for signatures
	noiseClient := new(cxrpc.OpencxNoiseClient)
	if err = noiseClient.SetKey(cl.PrivKey); err != nil {
		return
	}

	// Now that the key is set we can start doing stuff.
	cl.RPCClient = noiseClient
	cl.hostname = server
	cl.port = port

	// we set the privkey here because we aren't using a command line to send orders
	if err = cl.RPCClient.SetupConnection(server, port); err != nil {
		return
	}

	return
}
// SetupBenchNoiseClient create a new BenchClient for use as an RPC-Noise Client
SetupBenchNoiseClient create a new BenchClient for use as an RPC-Noise Client
// SetupBenchNoiseClient create a new BenchClient for use as an RPC - Noise Client
func (cl *BenchClient) SetupBenchNoiseClient(server string, port uint16) (err error) {
	noiseClient := new(cxrpc.OpencxNoiseClient)
	if err = noiseClient.SetKey(cl.PrivKey); err != nil {
		return
	}
	cl.RPCClient = noiseClient
	cl.hostname = server
	cl.port = port
	if err = cl.RPCClient.SetupConnection(server, port); err != nil {
		return
	}
	return
}
func ( cl * BenchClient ) SetupBenchNoiseClient ( server string , port uint16 ) ( err error ) { noiseClient := new ( cxrpc . OpencxNoiseClient ) if err = noiseClient . SetKey ( cl . PrivKey ) ; err != nil { return } cl . RPCClient = noiseClient cl . hostname = server cl . port = port if err = cl . RPCClient . SetupConnection ( server , port ) ; err != nil { return } return }
SetupBenchNoiseClient create a new BenchClient for use as an RPC-Noise Client
SetupBenchNoiseClient create a new BenchClient for use as an RPC - Noise Client
// Authenticate with the same key that BenchClient uses for signatures // Now that the key is set we can start doing stuff. // we set the privkey here because we aren't using a command line to send orders