Cannot initialize electrum server
Created by: PraneshASP
Hi, I have a fully synced Bitcoin ABC node. When I try to build and run electrum server for the first time, the following error arises
Command :
cargo run --release -- -vvv --timestamp --db-dir=./db --cookie="user:pass" --electrum-rpc-addr="127.0.0.1:50001"
Result :
Finished release [optimized] target(s) in 0.08s
Running `target/release/electrscash -vvv --timestamp --db-dir=./db '--cookie=user:pass' '--electrum-rpc-addr=127.0.0.1:50001'`
Config { log: StdErrLog { verbosity: Debug, quiet: false, show_level: true, timestamp: Millisecond, modules: [], writer: "stderr", color_choice: Auto }, network_type: bitcoin, db_path: "./db/mainnet", daemon_dir: "/home/user/.bitcoin", blocks_dir: "/home/user/.bitcoin/blocks", daemon_rpc_addr: V4(127.0.0.1:8332), electrum_rpc_addr: V4(127.0.0.1:50001), monitoring_addr: V4(127.0.0.1:4224), jsonrpc_import: false, index_batch_size: 100, bulk_index_threads: 2, tx_cache_size: 157286400, txid_limit: 100, server_banner: "Welcome to ElectrsCash 2.0.0 (Electrum Rust Server)!", blocktxids_cache_size: 157286400, rpc_timeout: 10, low_memory: false, cashaccount_activation_height: 563720, rpc_buffer_size: 2000 }
2020-09-19T12:18:28.396+00:00 - DEBUG - Server listening on 127.0.0.1:4224
2020-09-19T12:18:28.396+00:00 - DEBUG - Running accept thread
2020-09-19T12:18:28.396+00:00 - INFO - NetworkInfo { version: 220200, subversion: "/Bitcoin ABC:0.22.2(EB32.0)/", relayfee: 0.00001 }
2020-09-19T12:18:28.397+00:00 - INFO - BlockchainInfo { chain: "main", blocks: 653489, headers: 653489, verificationprogress: 0.9999967383503902, bestblockhash: "000000000000000002bfe12f983114e7585d363f7fb091b31a7517706c05a146", pruned: false, initialblockdownload: false }
2020-09-19T12:18:28.397+00:00 - DEBUG - opening DB at "./db/mainnet"
2020-09-19T12:18:28.408+00:00 - DEBUG - opening DB at "./db/mainnet"
2020-09-19T12:18:28.431+00:00 - INFO - listing block files at "/home/user/.bitcoin/blocks/blk*.dat"
2020-09-19T12:18:28.435+00:00 - INFO - indexing 1117 blk*.dat files
2020-09-19T12:18:28.435+00:00 - DEBUG - found 0 indexed blocks
2020-09-19T12:18:30.880+00:00 - ERROR - server failed: Error: getblockheader RPC error: {"code":-8,"message":"hash must be of length 64 (not 1, for '0')"}
How can I fix this? Kindly help.