Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: BusyAssistant on December 09, 2018, 11:43:58 PM



Title: Future RPC calls to be deprecated?
Post by: BusyAssistant on December 09, 2018, 11:43:58 PM
Is there a list which shows RPC calls which are going to be deprecated? getrawtransaction has this message in the help text from bitcoin-cli:

Code:
DEPRECATED: for now, it also works for transactions with unspent outputs.

Tbh I'm not really sure what that means. Does it mean that in the next version, getrawtransaction won't be able to fetch data for txs with unspent outputs? Usually the deprecation messages are a bit more clear than this. Anyway, I don't want to develop code using this call if it won't work soon. Thanks.


Title: Re: Future RPC calls to be deprecated?
Post by: Pmalek on December 10, 2018, 09:42:48 AM
There was some talk about this in the past, here is a thread from last year.

I'm pretty sure it was never meant to work without txindex in the first place; this only works now because of how unspent outputs are managed, which may change in the future. You must use txindex for getrawtransaction to work in all cases.

You can also have a look at this thread from last year also,
https://bitcointalk.org/index.php?topic=2053559.0