fix undeleted claim_to_channel record
This commit is contained in:
parent
ce09f2eb0f
commit
91f8b3b505
1 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue