HomePhabricator

prefer to use txindex if available for GetTransaction

Description

prefer to use txindex if available for GetTransaction

Summary:

Motivation: prevent excessive disk reads if txindex is enabled.

This will also benefit to isfinaltransaction.

Backport of core#22383.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
loppAuthored on Jul 1 2021, 14:17
FabienCommitted on Oct 11 2022, 18:17
FabienPushed on Oct 11 2022, 18:17
Reviewer
Restricted Project
Differential Revision
D12208: prefer to use txindex if available for GetTransaction
Parents
rABC571e91c2c95d: Add LIFETIMEBOUND attributes where needed
Branches
Unknown
Tags
Unknown