neo-node
neo-node copied to clipboard
Oracle Plugin loading before wallet is open
root@74ead09a6552:/opt/node/Neo.CLI/Plugins# /opt/start_node.sh
Warning: Please open wallet first!
Warning: Please open wallet first!
Warning: Please open wallet first!
Warning: Please open wallet first!
Warning: Please open wallet first!
Warning: Please open wallet first!
Warning: Please open wallet first!
Warning: Please open wallet first!
Warning: Please open wallet first!
Warning: Please open wallet first!
Warning: Please open wallet first!
Warning: The oracle service is unavailable
NEO-CLI v3.9.0 - NEO v3.9.0 - NEO-VM v3.9.0
neo> INFO [14:18:53.727] OnStart
INFO [14:18:53.744] Initialize: height=11 view=0 index=-1 role=WatchOnly
INFO [14:18:55.508] OnPrepareRequestReceived: height=11 view=0 index=3 tx=0
INFO [14:18:55.510] OnPrepareResponseReceived: height=11 view=0 index=2
INFO [14:18:55.515] OnPrepareResponseReceived: height=11
Is this expected? The time to decrypt wallet is not enough.
Maybe it is good like this.
Could you show the content of start_node.sh?
It is not necessary, the command is just the launch of neo-cli.
#!/bin/bash
(cd /opt/node/Neo.CLI/; dotnet neo-cli.dll)
The point here, @shargon , perhaps is regarding the plugins loading.
{
"PluginConfiguration": {
"Network": 56753,
"Nodes": [
"http://eco-neo-csharp-noderpc1-running:30337"
],
"MaxTaskTimeout": 432000000,
"MaxOracleTimeout": 10000,
"AllowPrivateHost": true,
"AllowedContentTypes": [ "application/json" ],
"UnhandledExceptionPolicy": "Ignore",
"Https": {
"Timeout": 5000
},
"NeoFS": {
"EndPoint": "http://neofs-storage-node:5005",
"Timeout": 15000
},
"AutoStart": true
},
"Dependency": [
"RpcServer"
]
}
OracleService needs wallet but it is loading asynchronously. But is not a big deal. It solves naturally when wallet is opened.
I opened more as a Discussion.
Maybe OracleService should have a flag to wait until wallet is loaded, something like that.