fix undeleted claim_to_channel record

This commit is contained in:
Jack Robison 2021-07-03 11:48:04 -04:00
parent 814699ef11
commit 52ff1a12ff
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

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,