hi @all . I have tried to build everything from the source (just run ./run:_electrum on my linux machine), but I wanted to recreate the checkpoints.json with an updated one, so it takes a little less time the first connection to the blockchain, but I didn't find a way to do it. I have found a couple of script, but none of them really works, when I copy the created checkpoints.json to replace the original one , I ended up with the error:
File "electrum-ltc/electrum_ltc/interface.py", line 834, in _search_headers_binary
raise Exception('unexpected bad header during binary: {}'.format(bad_header))
Exception: unexpected bad header during binary: {'version': 536870912, 'prev_block_hash': '6264761abb597909a78af9c89d12aa374d4a680ece076b5e184b1a053daa2547', 'merkle_root': '19c390175d67f2087d8804a31253ecac14c8a787b23feacd2f2e70409f80e5e6', 'timestamp': 1647011395, 'bits': 436286156, 'nonce': 1024863879, 'block_height': 2225664}
hi @all . I have tried to build everything from the source (just run ./run:_electrum on my linux machine), but I wanted to recreate the checkpoints.json with an updated one, so it takes a little less time the first connection to the blockchain, but I didn't find a way to do it. I have found a couple of script, but none of them really works, when I copy the created checkpoints.json to replace the original one , I ended up with the error:
File "electrum-ltc/electrum_ltc/interface.py", line 834, in _search_headers_binary raise Exception('unexpected bad header during binary: {}'.format(bad_header)) Exception: unexpected bad header during binary: {'version': 536870912, 'prev_block_hash': '6264761abb597909a78af9c89d12aa374d4a680ece076b5e184b1a053daa2547', 'merkle_root': '19c390175d67f2087d8804a31253ecac14c8a787b23feacd2f2e70409f80e5e6', 'timestamp': 1647011395, 'bits': 436286156, 'nonce': 1024863879, 'block_height': 2225664}
I tried to use the function bits_to_target within a Pyhon script that I slightly modified (credits to https://github.com/exoeconomy/EXOS-Electrum/blob/master/contrib/get_checkpoint_array.py) to add the same bits_to_target function and timestamp of blockchain.py:
But it doesn't give me the same checkpoints.json result. Can you point me in the right direction?
Thanks in advance