Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

claim-prep.py produces KeyError: 'block_height' #8

Open
whysthatso opened this issue Jun 25, 2019 · 0 comments
Open

claim-prep.py produces KeyError: 'block_height' #8

whysthatso opened this issue Jun 25, 2019 · 0 comments

Comments

@whysthatso
Copy link

python claim-prep.py --not-tails claim_save_file bunch_of_addresses

i've ran it once successfully, but upon rerun, it fails with this stacktrace

Traceback (most recent call last):
  File "claim-prep.py", line 43, in <module>
    vdb = ValueDb(settings)
  File "/home/user/coins/forkdrop_suite/lib/value_db.py", line 23, in __init__
    self['addrs'] = self._get_address_info(settings, addrs)
  File "/home/user/coins/forkdrop_suite/lib/value_db.py", line 44, in _get_address_info
    return [BlockchainAddressInfo(settings, addr) for addr in addrs]
  File "/home/user/coins/forkdrop_suite/lib/value_db.py", line 44, in <listcomp>
    return [BlockchainAddressInfo(settings, addr) for addr in addrs]
  File "/home/user/coins/forkdrop_suite/lib/address_info.py", line 143, in __init__
    tx_block_map = self._get_tx_block_map(ins, outs)
  File "/home/user/coins/forkdrop_suite/lib/address_info.py", line 182, in _get_tx_block_map
    self._iter_tx_blocks(ins + outs)}
  File "/home/user/coins/forkdrop_suite/lib/address_info.py", line 181, in <dictcomp>
    return {h: height for h, height in
  File "/home/user/coins/forkdrop_suite/lib/address_info.py", line 178, in _iter_tx_blocks
    yield h, d['block_height']
KeyError: 'block_height'

i did run sync-forkdrop-data.py in between, changing the content of forkdrop-data.json, if that matters. reverting this change to the latest git commit did however not fix this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant