lbrycrd/src/rpc
John Newbery 6294f3283a gettxoutproof() should return consistent result
We can call gettxoutproof() with a list of transactions. Currently, if
the first transaction is unspent (and all other transactions are in the
same block), then the call will succeed. If the first transaction has
been spent, then the call will fail. The means that the following two
calls will return different results:

gettxoutproof(unspent_tx1, spent_tx1)
gettxoutproof(spent_tx1, unspent_tx1)

This commit makes behaviour independent of transaction ordering by looping
through all transactions provided and trying to find which block they're in.

This commit also increases the test coverage and tests more failure
cases for gettxoutproof()
2017-06-07 17:38:21 -04:00
..
blockchain.cpp Replace bytes_serialized with bogosize 2017-06-05 12:43:45 -07:00
blockchain.h refactor: Make rest.cpp dependency on *toJSON in blockchain.cpp explicit 2017-03-29 09:56:47 +02:00
client.cpp RPC/Mining: Restore API compatibility for prioritisetransaction 2017-05-23 20:46:14 +00:00
client.h rpc: Named argument support for bitcoin-cli 2017-01-10 12:04:54 +01:00
mining.cpp Merge #10252: RPC/Mining: Restore API compatibility for prioritisetransaction 2017-06-06 15:49:38 +02:00
misc.cpp Merge #10181: Include cleanup 2017-04-20 23:24:00 +02:00
net.cpp rpc: Add listen address to incoming connections in getpeerinfo 2017-06-05 13:35:30 +02:00
protocol.cpp Replace uses of boost::filesystem with fs 2017-04-03 12:32:32 +02:00
protocol.h Replace uses of boost::filesystem with fs 2017-04-03 12:32:32 +02:00
rawtransaction.cpp gettxoutproof() should return consistent result 2017-06-07 17:38:21 -04:00
register.h Do not shadow global RPC table variable (tableRPC) 2016-08-25 15:02:26 +02:00
server.cpp Merge #10395: Replace boost::function with std::function (C++11) 2017-05-17 17:22:43 -07:00
server.h Replace boost::function with std::function (C++11) 2017-05-13 17:59:09 +02:00