diff options
author | John Newbery <john@johnnewbery.com> | 2017-02-10 11:04:13 -0500 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2017-06-07 17:38:21 -0400 |
commit | 6294f3283a5b6919795621dc067ec80c0cd2a334 (patch) | |
tree | 794537d75a4a1fde5e0626ec098045dd64be57fe /test/functional/combined_log_template.html | |
parent | 300f8e7a828f3ffaa3a3e9d979a6dc90f15d0203 (diff) |
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()
Diffstat (limited to 'test/functional/combined_log_template.html')
0 files changed, 0 insertions, 0 deletions