BlockSci icon indicating copy to clipboard operation
BlockSci copied to clipboard

cannot import dogecoin with rpc - terminate called after throwing an instance of 'BitcoinException'

Open candre-rungood opened this issue 6 years ago • 3 comments

Hello

I used to import data directly from disk with blocksci for other chains but i believe i need to use rpc for dogecoin? I use latest v0.6 blocksci and dogecoin 1.14.2

cat .dogecoin/dogecoin.conf 
txindex=1
server=1
rest=1
rpcusername=dogecoin
rpcpassword=xx
rpcport=8432
 cat blocksci_dogecoin.conf 
{
    "chainConfig": {
        "coinName": "custom",
        "dataDirectory": "/home/ubuntu/litecoin/blocksci-dogecoin",
        "pubkeyPrefix": [],
        "scriptPrefix": [],
        "segwitActivationHeight": 2147483647,
        "segwitPrefix": ""
    },
    "parser": {
        "maxBlockNum": -6,
        "rpc": {
	    "address": "127.0.0.1",
            "password": "xxx",
            "port": 8432,
            "username": "dogecoin"
        }
    },
    "version": 5
}
blocksci_parser blocksci_dogecoin.conf update
83GB of free disk space available.

Locking data directory.

Error while interacting with RPC: std::exception
terminate called after throwing an instance of 'BitcoinException'
  what():  std::exception
Aborted (core dumped)
blocksci_parser blocksci_dogecoin.conf doctor
83GB of free disk space available.

Checking configuration for issues.
OK: Found data directory on disk.
OK: Found RPC parser settings in config.

terminate called after throwing an instance of 'nlohmann::detail::out_of_range'
  what():  [json.exception.out_of_range.403] key 'disk' not found
Aborted (core dumped)

System Information

Using AMI: yes/no no BlockSci version: latest v0.6 Blockchain: dogecoin Parser: Disk/RPC rpc Total memory: 32

Am I missing something?

Thanks

candre-rungood avatar Nov 17 '19 19:11 candre-rungood

I haven't used BlockSci with Dogecoin, but here are a few comments:

  • The doctor command does currently only work for disk-based configurations. This is a bug and will eventually be fixed. See https://github.com/citp/BlockSci/blob/e367bfe21f936c7d04a8ba5425cbb942f2cfeb62/tools/parser/doctor.cpp#L100
  • The failing update call with the BitcoinException may be a sign that the API of the Dogecoin client has changed, but the Bitcoin API that BlockSci uses has not and is quite old (2014). Using an older Dogecoin version might help.

mplattner avatar Nov 28 '19 12:11 mplattner

Thanks. Good idea i'll try that

candre-rungood avatar Nov 28 '19 15:11 candre-rungood

Hello, I encountered the same problem as you in Zcash data processing. Have you solved this problem now? I would be very grateful if you can reply to my question, thank you!

TIANCYT avatar Oct 20 '20 09:10 TIANCYT