Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
RPC: Also serve txo from gettxout (not just utxo and mempool) #10822
Conversation
jtimon
changed the title from
TOTEST: Also server txo from gettxout (not just utxo and mempool) to TOTEST: Also serve txo from gettxout (not just utxo and mempool)
Jul 14, 2017
fanquake
added the
RPC/REST/ZMQ
label
Jul 15, 2017
jtimon
changed the title from
TOTEST: Also serve txo from gettxout (not just utxo and mempool) to RPC: Also serve txo from gettxout (not just utxo and mempool)
Jul 16, 2017
|
I don't think we should be expanding the impact of |
Is there a problem with that? This is just RPC anyway. My reasoning (with some errors corrected below it) is here: #9806 (comment)
By that logic, shouldn't we just fully remove gettxout? gettxout is faster for utxo, so if one wants a txo (not knowing if stxo/utxo a priori), one could call gettxout first and only if it fails call getrawtransation. But I think a single call would be more convenient. |
jtimon commentedJul 14, 2017
•
edited
Expand gettxout to also serve spent txo if pruning or lack of -txindex don't get in the way.
If the output is spent, it will be slower to load, but there's no reason not to serve this if the data is there.
TODO (functional tests):