neo-node icon indicating copy to clipboard operation
neo-node copied to clipboard

Oracle Plugin loading before wallet is open

Open vncoelho opened this issue 3 months ago • 4 comments

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.

vncoelho avatar Dec 03 '25 14:12 vncoelho

Could you show the content of start_node.sh?

shargon avatar Dec 03 '25 14:12 shargon

It is not necessary, the command is just the launch of neo-cli.

#!/bin/bash
(cd /opt/node/Neo.CLI/; dotnet neo-cli.dll)

vncoelho avatar Dec 03 '25 14:12 vncoelho

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.

vncoelho avatar Dec 03 '25 14:12 vncoelho

Maybe OracleService should have a flag to wait until wallet is loaded, something like that.

vncoelho avatar Dec 03 '25 14:12 vncoelho