Bitcoin Forum
May 22, 2024, 08:52:43 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: when start electrum server it goes wrong (Block height out of range)  (Read 150 times)
janke (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
March 06, 2019, 05:28:11 AM
 #1

i think the  bitcoind goes well,but the electrum server goes something wrong,  
and i install it with nothing problem  ,but when i start it ,it shows some probles.


bitcoin@:~/electrum-server$ ./run_electrum_server.py
[06/03/2019-00:18:29] Starting Electrum server on *****
[06/03/2019-00:18:29] Database version 3.
[06/03/2019-00:18:29] Pruning limit for spent outputs is 100.
[06/03/2019-00:18:29] Reorg limit is 100 blocks.
[06/03/2019-00:18:29] Blockchain height 8
[06/03/2019-00:18:29] UTXO tree root hash: 5fc1481b939*****5d5e80c1748322d1
[06/03/2019-00:18:29] Coins in database: 40000000000
[06/03/2019-00:18:29] catching up missing headers: 0 8
Traceback (most recent call last):
  File "./run_electrum_server.py", line 307, in <module>
    start_server(config)
  File "./run_electrum_server.py", line 254, in start_server
    chain_proc = BlockchainProcessor(config, shared)
  File "/home/bitcoin/electrum-server/src/blockchain_processor.py", line 92, in __init__
    self.init_headers(self.storage.height)
  File "/home/bitcoin/electrum-server/src/blockchain_processor.py", line 212, in init_headers
    header = self.get_header(height)
  File "/home/bitcoin/electrum-server/src/blockchain_processor.py", line 188, in get_header
    block_hash = self.bitcoind('getblockhash', (height,))
  File "/home/bitcoin/electrum-server/src/blockchain_processor.py", line 171, in bitcoind
    raise BaseException(r['error'])
BaseException: {u'message': u'Block height out of range', u'code': -8}





bitcoin@:~/src/bitcoin-0.15.2/src$ ./bitcoin-cli getblockchaininfo
{
  "chain": "main",
  "blocks": 0,
  "headers": 404327,
  "bestblockhash": "000000000019d6689****1e934ff763ae46a2a6c172******",
  "difficulty": 1,
  "mediantime": 1231006505,
  "verificationprogress": 2.506862242713261e-09,
  "chainwork": "000000000000000000000*****0000000000000000000000000100010001",
  "pruned": false,
  "softforks": [
    {
      "id": "bip34",
      "version": 2,
      "reject": {
        "status": false
      }
    },
    {
      "id": "bip66",
      "version": 3,
      "reject": {
        "status": false
      }
    },
    {
      "id": "bip65",
      "version": 4,
      "reject": {
        "status": false
      }
    }
  ],
  "bip9_softforks": {
    "csv": {
      "status": "defined",
      "startTime": 1462060800,
      "timeout": 1493596800,
      "since": 0
    },
    "segwit": {
      "status": "defined",
      "startTime": 1479168000,
      "timeout": 1510704000,
      "since": 0
    }
  }
}






HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
March 06, 2019, 06:36:42 AM
 #2

Electrum-Server... or ElectrumX?

"Electrum Server" hasn't been maintained in quite a while... and as per the note on the Electrum Server GitHub, you should be using ElectrumX:
This code is now unmaintained. The replacement code for electrum server is ElectrumX: https://github.com/kyuupichan/electrumx

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
janke (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
March 07, 2019, 05:26:47 AM
 #3

bitcoin@ubuntu:~/src/electrum-server$ ./run_electrum_server.py
[06/03/2019-21:24:41] Starting Electrum server on 192.168.50.36
[06/03/2019-21:24:41] Database version 3.
[06/03/2019-21:24:41] Pruning limit for spent outputs is 100.
[06/03/2019-21:24:41] Reorg limit is 100 blocks.
[06/03/2019-21:24:41] Blockchain height 147479
[06/03/2019-21:24:41] UTXO tree root hash: ec516****************************e6af59cc
[06/03/2019-21:24:41] Coins in database: 738494995999999
[06/03/2019-21:24:42] SSL server started on 192.168.50.36:50002
[06/03/2019-21:24:42] TCP server started on 192.168.50.36:50001
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 "/home/bitcoin/src/electrum-server/src/blockchain_processor.py", line 106, in do_catch_up
    self.catch_up(sync=False)
  File "/home/bitcoin/src/electrum-server/src/blockchain_processor.py", line 679, in catch_up
    n = self.import_block(next_block, next_block_hash, self.storage.height+1)
  File "/home/bitcoin/src/electrum-server/src/blockchain_processor.py", line 424, in import_block
    undo = self.storage.import_transaction(txid, tx, block_height, touched_addr)
  File "/home/bitcoin/src/electrum-server/src/storage.py", line 656, in import_transaction
    self.set_spent(addr, txi, txid, i, block_height, undo)
  File "/home/bitcoin/src/electrum-server/src/storage.py", line 609, in set_spent
    s = self.delete_key(leaf)
  File "/home/bitcoin/src/electrum-server/src/storage.py", line 513, in delete_key
    path = self.get_path(leaf)
  File "/home/bitcoin/src/electrum-server/src/storage.py", line 484, in get_path
    raise BaseException('key not in tree', target.encode('hex'))
BaseException: ('key not in tree', 'c1cb532a4d7a7cc49***************************cc059bf9e3c5f5e768001000000')

another problem come up.  (key not in tree)


nc50lc
Legendary
*
Offline Offline

Activity: 2422
Merit: 5616


Self-proclaimed Genius


View Profile
March 07, 2019, 05:33:01 AM
 #4

It's been a day, you haven't updated yet?
Before anything else, follow HCP's advice to use the Updated Electrum Server software: ElectrumX. He's a trustworthy member, ElectrumX is legit.

Those problems (Mainly the block height) occur because the software itself isn't designed for the updated Bitcoin node.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
janke (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
March 07, 2019, 05:35:41 AM
 #5

yes,current version is the electrum-server  , i will try  electrumX version instead.

(another question:  when i start server listen on the port 50002  ,and the config seems ok, but when wallet client connect to the server,  the client shows :not connected ,and nothing happen,is there some details i forgotten? how can i join the global sever list,(join irc),is it auto connected to the server list ?   i am a new hand on it ,not skillful)
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!