Skip to content

[RPC] Don't do slow transaction lookup when txindex is enabled#11507

Closed
achow101 wants to merge 1 commit intobitcoin:masterfrom
achow101:getrawtx-txindex
Closed

[RPC] Don't do slow transaction lookup when txindex is enabled#11507
achow101 wants to merge 1 commit intobitcoin:masterfrom
achow101:getrawtx-txindex

Conversation

@achow101
Copy link
Member

@achow101 achow101 commented Oct 16, 2017

For getrawtransaction, instead of always doing the slow transaction lookup, only do it when txindex is disabled.

Partially fixes #11506

@achow101 achow101 changed the title Don't do slow transaction lookup when txindex is enabled [RPC] Don't do slow transaction lookup when txindex is enabled Oct 16, 2017
@sipa
Copy link
Member

sipa commented Oct 16, 2017

Concept ACK

1 similar comment
@meshcollider
Copy link
Contributor

Concept ACK

@laanwj
Copy link
Member

laanwj commented Oct 18, 2017

This change makes a lot of sense IMO, congratulations on doing it in a single-line change.
utACK 8047f36

@promag
Copy link
Contributor

promag commented Oct 18, 2017

True, utACK 8047f36.

@laanwj
Copy link
Member

laanwj commented Oct 19, 2017

Closing in favor of #11529 (sorry for the review churn)

@laanwj laanwj closed this Oct 19, 2017
laanwj added a commit that referenced this pull request Oct 19, 2017
7a5f930 Avoid slow transaction search with txindex enabled (João Barbosa)

Pull request description:

  This is an alternative to #11507 where a slow search is not attempted (in any case) if `txindex` is enabled.

Tree-SHA512: e680621781a9241c0513ddd79d23b0b42f3ccec8a63ed1c926b35c43321c81c39a1028770397dd5070501dcf644d897026a2bd68a161a4b435f19227c1bbca48
codablock pushed a commit to codablock/dash that referenced this pull request Nov 19, 2017
7a5f930 Avoid slow transaction search with txindex enabled (João Barbosa)

Pull request description:

  This is an alternative to bitcoin#11507 where a slow search is not attempted (in any case) if `txindex` is enabled.

Tree-SHA512: e680621781a9241c0513ddd79d23b0b42f3ccec8a63ed1c926b35c43321c81c39a1028770397dd5070501dcf644d897026a2bd68a161a4b435f19227c1bbca48
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Dec 26, 2018
7a5f930 Avoid slow transaction search with txindex enabled (João Barbosa)

Pull request description:

  This is an alternative to bitcoin#11507 where a slow search is not attempted (in any case) if `txindex` is enabled.

Tree-SHA512: e680621781a9241c0513ddd79d23b0b42f3ccec8a63ed1c926b35c43321c81c39a1028770397dd5070501dcf644d897026a2bd68a161a4b435f19227c1bbca48
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

getrawtransaction delay too long on non-existent txid

6 participants