HomePhabricator

[chronik] implement scripthash type for utxos endpoints

Description

[chronik] implement scripthash type for utxos endpoints

Summary:
This is a follow up to D16937 adding a scripthash option to the utxos script endpoint.
We also look for the scripthash in the mempool index added in D17037 in case this script didn't make it into the db yet.

This one was a bit trickier because we need to provide the script, which was previously built from the query itself. Now if the query passes a scripthash payload, we need to find it in the db and decompress it.

Depends on D17037

Test Plan: ninja check-functional

Reviewers: #bitcoin_abc, tobias_ruck

Reviewed By: #bitcoin_abc, tobias_ruck

Subscribers: tobias_ruck

Differential Revision: https://reviews.bitcoinabc.org/D17043

Details

Provenance
PiRKAuthored on Nov 8 2024, 12:22
teamcityPushed on Nov 11 2024, 07:39
Parents
rSTAGING695462edf1d1: [chronik] index scripts by scripthashes in the mempool
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/50773

Event Timeline