Can't use commands that need to open wallet via JSON-RPC, like getbalance、dumpprivkey.
I guess because there is no value given to "wallet" in the following code.
|
public RpcServer(NeoSystem system, Wallet wallet = null) |
|
{ |
|
this.system = system; |
|
this.wallet = wallet; |
|
} |
|
public void StartRpc(int port, string sslCert = null, string password = null) |
|
{ |
|
rpcServer = new RpcServer(this); |
|
rpcServer.Start(port, sslCert, password); |
|
} |
Can't use commands that need to open wallet via JSON-RPC, like
getbalance、dumpprivkey.I guess because there is no value given to "wallet" in the following code.
neo/neo/Network/RPC/RpcServer.cs
Lines 35 to 39 in 18be40a
neo/neo/NeoSystem.cs
Lines 57 to 61 in 18be40a