fix undeleted claim_to_channel record

This commit is contained in:
Jack Robison 2021-07-03 11:48:04 -04:00 committed by Victor Shyba
parent ce09f2eb0f
commit 91f8b3b505

View file

@ -676,8 +676,12 @@ class BlockProcessor:
else: else:
claim = self.db.get_claim_txo(claim_hash) claim = self.db.get_claim_txo(claim_hash)
assert claim is not None assert claim is not None
signing_hash = Prefixes.channel_to_claim.unpack_key(k).signing_hash
self.db_op_stack.extend([ self.db_op_stack.extend([
RevertableDelete(k, claim_hash), RevertableDelete(k, claim_hash),
RevertableDelete(
*Prefixes.claim_to_channel.pack_item(claim_hash, claim.tx_num, claim.position, signing_hash)
),
RevertableDelete( RevertableDelete(
*Prefixes.claim_to_txo.pack_item( *Prefixes.claim_to_txo.pack_item(
claim_hash, claim.tx_num, claim.position, claim.root_tx_num, claim.root_position, claim_hash, claim.tx_num, claim.position, claim.root_tx_num, claim.root_position,