Skip to content

qtumcore-node says erc20Config is empty #4

Open

Description

@raineroviir

error from qtumcore-node console:

[2018-02-18T22:31:55.939Z] warn: erc20Config is empty

I am attempting to use the tokens api - and I am not having success. I figure I haven't configured my node correctly to be able to do that, but let me know if that is off. I figure it is right because I have no erc20 tokens/contracts saved in my mongodb and of course the tokens api calls would return not found for something they can't find.
I currently have this as my erc20Config in my qtumcore-node.json file:

      "erc20Config": {
          "updateFromBlockHeight": 0
      },

So qtumcore-node is complaining that my config is empty, is there a parameter I'm not passing in that is required for it to start recording to mongodb? I haven't had a real chance to look at the logic on how the mongodb saves happen but I will do that next

Activity

  1. mcalfin commented on Mar 13, 2018

    @mcalfin

    Looks like the config is actually erc20, not erc20Config

    this.erc20Config = options.erc20;

    Although after getting it to finally run, I'm running into this :(

    [2018-03-13T15:20:13.985Z] error: [ERC20WATCHER] Update Error { RPCError: Events indexing disabled
    at Qtum._wrapRPCError (/opt/qtum/node_modules/qtumcore-node/lib/services/qtumd.js:548:13)
    at /opt/qtum/node_modules/qtumcore-node/lib/services/qtumd.js:2574:34
    at IncomingMessage. (/opt/qtum/node_modules/qtumd-rpc/lib/index.js:107:7)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9) code: -32603 }

    if you get it working let us know! this and discord seem to be dead

  2. raineroviir commented on Mar 14, 2018

    @raineroviir
    Author

    [2018-03-14T05:05:43.713Z] info: [ERC20WATCHER] Start...
    It worked! Nice!

    As for
    [ERC20WATCHER] Update Error { RPCError: Events indexing disabled

    I'm not 100% sure about this, but try setting all these indexes in your qtum.conf file:

    Not sure which one is the events indexing but hopefully that will do it.

    txindex=1
    addressindex=1
    addrindex=1
    timestampindex=1
    spentindex=1

  3. mcalfin commented on Mar 14, 2018

    @mcalfin

    in case anyone ever ends up here with this same issue, the fixed turned out to be adding the following to qtum.conf

    logevents=1

  4. ahsandev2019 commented on Feb 6, 2021

    @ahsandev2019

    in case anyone ever ends up here with this same issue, the fixed turned out to be adding the following to qtum.conf

    logevents=1

    anyway for using logevents=1
    you must use reindex=1 too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions