multi_put claim_short_id

This commit is contained in:
Jack Robison 2022-09-09 11:01:56 -04:00
parent 09e1aba567
commit 911f483ce3

View file

@ -419,11 +419,14 @@ class BlockchainProcessorService(BlockchainService):
)
# short url resolution
for prefix_len in range(10):
self.db.prefix_db.claim_short_id.stage_put(
(pending.normalized_name, pending.claim_hash.hex()[:prefix_len + 1],
pending.root_tx_num, pending.root_position),
(pending.tx_num, pending.position)
self.db.prefix_db.claim_short_id.stage_multi_put(
[
(
(pending.normalized_name, pending.claim_hash.hex()[:prefix_len + 1],
pending.root_tx_num, pending.root_position),
(pending.tx_num, pending.position)
) for prefix_len in range(10)
]
)
if pending.signing_hash and pending.channel_signature_is_valid: