Title: Electrum-server with testnet error
Post by: crazylol on March 09, 2017, 11:43:25 AM
Hi all! I'm trying to start electrum-server with testnet, but after hours of creating database it fails with error in logs. This is my steps: 1) I have a full-node of bitcoind, which run with testnet: $ bitcoin-cli getinfo { "version": 130200, "protocolversion": 70015, "blocks": 1092963, "timeoffset": 0, "connections": 8, "proxy": "", "difficulty": 2528103.236677098, "testnet": true, "paytxfee": 0.00000000, "relayfee": 0.00001000, "errors": "Warning: unknown new rules activated (versionbit 28)" } This node is fully synchronise with testnet. 2) I changed in run_electrum_server.py line #116 to config.set('network', 'type', 'bitcoin_test') 3) I started electrum-server and all was fine, but after several hours of creating database in logs appears this messages: ERROR: cannot parse 45c50927f9580e5f82b0ad0986df5889d338fc84836f32cf5c67596c9550a721 ....... ERROR: cannot parse ee15a82586f5b02983f33b230e307c342e0c0f405e0da48eef64ea286ff10824 Exception in thread Thread-4: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 754, in run self.__target(*self.__args, **self.__kwargs) File "build/bdist.linux-x86_64/egg/electrumserver/blockchain_processor.py", line 106, in do_catch_up self.catch_up(sync=False) File "build/bdist.linux-x86_64/egg/electrumserver/blockchain_processor.py", line 679, in catch_up n = self.import_block(next_block, next_block_hash, self.storage.height+1) File "build/bdist.linux-x86_64/egg/electrumserver/blockchain_processor.py", line 424, in import_block undo = self.storage.import_transaction(txid, tx, block_height, touched_addr) File "build/bdist.linux-x86_64/egg/electrumserver/storage.py", line 666, in import_transaction self.add_to_history(addr, txid, x.get('index'), x.get('value'), block_height) File "build/bdist.linux-x86_64/egg/electrumserver/storage.py", line 584, in add_to_history self.add_key(key + txo, value, tx_height) File "build/bdist.linux-x86_64/egg/electrumserver/storage.py", line 414, in add_key s = (int_to_hex8(value) + int_to_hex4(height)).decode('hex') File "build/bdist.linux-x86_64/egg/electrumserver/utils.py", line 85, in int_to_hex8 return int_to_bytes8(i).encode('hex') error: integer out of range for 'Q' format code
There are many messages like "ERROR: cannot parse" with different IDs. Can you explain this messages? Please, help me to run electrum-server with testnet.
Title: Re: Electrum-server with testnet error
Post by: mocacinno on March 09, 2017, 12:02:26 PM
I know this isn't the question you asked, but i'd suggest to forget electrum-server and switch to electrumx: https://github.com/kyuupichan/electrumx/blob/master/docs/HOWTO.rst They should work perfectly on testnet, since it's even in their environment: https://github.com/kyuupichan/electrumx/blob/master/docs/ENVIRONMENT.rst NET
Must be a NET from one of the Coin classes in lib/coins.py. Defaults to mainnet.
Note Bitcoin Core >= 0.13.1 requires a special NET for testnet: testnet-segwit.
Title: Re: Electrum-server with testnet error
Post by: crazylol on March 09, 2017, 01:51:31 PM
Thank you!
|