insight-api
insight-api copied to clipboard
qtumcore-node says erc20Config is empty
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
Looks like the config is actually erc20, not erc20Config
https://github.com/qtumproject/insight-api/blob/580e13f82b87555aea30d51e93ac1864874c174a/lib/index.js#L79
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.
if you get it working let us know! this and discord seem to be dead
[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
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
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