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 Fri, Nov 8, 12:22
PiRKPushed on Mon, Nov 11, 07:35
Reviewer
Restricted Project
Differential Revision
D17043: [chronik] implement scripthash type for utxos endpoints
Parents
rABC695462edf1d1: [chronik] index scripts by scripthashes in the mempool
Branches
Unknown
Tags
Unknown