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

listplugins is inconsistent with plugins command

Open cloud8little opened this issue 5 years ago • 0 comments

Describe the bug listplugins when RpcServer is installed.

To Reproduce Steps to reproduce the behavior:

  1. Install RpcServer, ApplicationLogs, LevelDBStore and RpcNep5Tracker
  2. Start the node
  3. call listplugins request, and input plugins in the command.

in neo-cli,

Loaded plugins:
        ApplicationLogs Synchronizes the smart contract log with the NativeContract log (Notify)
        LevelDBStore    Uses LevelDB to store the blockchain data
        RpcNep5Tracker  Enquiries NEP-5 balances and transaction history of accounts through RPC
        RpcServer       Enables RPC for the node

listplugins response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "name": "ApplicationLogs",
      "version": "3.0.0.0",
      "interfaces": [
        "IPersistencePlugin"
      ]
    },
    {
      "name": "LevelDBStore",
      "version": "3.0.0.0",
      "interfaces": []
    },
    {
      "name": "RpcNep5Tracker",
      "version": "3.0.0.0",
      "interfaces": [
        "IPersistencePlugin"
      ]
    },
    {
      "name": "RpcServer",
      "version": "3.0.0.0",
      "interfaces": []
    },
    {
      "name": "SystemLog",
      "version": "3.0.0.0",
      "interfaces": [
        "ILogPlugin"
      ]
    }
  ]
}

Expected behavior:

  1. SystemLog should not show.
  2. interfaces for RpcServer should not be empty.

Platform:

  • OS: Windows 10 x64
  • Version preview3

cloud8little avatar Aug 12 '20 09:08 cloud8little