revault / research

4 stars 1 forks source link

Crash on coin allocation #66

Closed darosior closed 3 years ago

darosior commented 3 years ago
DEBUG:root:Checking if we need feebump Cancel tx for vault 5721. Tx feerate: 79.46753246753246, next block feerate: 97
Traceback (most recent call last):
  File "/home/darosior/projects/revault/watchtower_paper/Model/main.py", line 96, in <module>
    sim.run(start_block, end_block)
  File "/home/darosior/projects/revault/watchtower_paper/Model/simulation.py", line 410, in run
    self.confirm_sequence(block)
  File "/home/darosior/projects/revault/watchtower_paper/Model/simulation.py", line 385, in confirm_sequence
    self.wt.finalize_cancel(tx, height)
  File "/home/darosior/projects/revault/watchtower_paper/Model/statemachine.py", line 1063, in finalize_cancel
    self.maybe_replace_cancel(height, tx)
  File "/home/darosior/projects/revault/watchtower_paper/Model/statemachine.py", line 1093, in maybe_replace_cancel
    vault.allocate_coin(coin)
  File "/home/darosior/projects/revault/watchtower_paper/Model/statemachine.py", line 80, in allocate_coin
    assert coin.id not in self.fb_coins
AssertionError
JSwambo commented 3 years ago

67 fixes this