Skip to content

[RPC] Endpoints returning null appear to be handled incorrectly#688

Merged
zeptin merged 1 commit intorelease/1.1.0.0from
getrawtransaction-20210830
Sep 1, 2021
Merged

[RPC] Endpoints returning null appear to be handled incorrectly#688
zeptin merged 1 commit intorelease/1.1.0.0from
getrawtransaction-20210830

Conversation

@zeptin
Copy link
Collaborator

@zeptin zeptin commented Aug 30, 2021

While adding some SFN nodes to the RPC tests run against bitcoind, it was found that the gettxout RPC for a nonexistent UTXO was returning different results. I.e. the RPCClient was not receiving a null result element in the JSON RPCResponse to convert back to an actual null; which should then be returned at the conclusion of the GetTxOut client method.

The fix in the middleware is experimental, it corrects the gettxout case, but there may be other scenarios it does not cater for.

@zeptin zeptin requested a review from fassadlr August 30, 2021 22:07
@zeptin zeptin merged commit 0197b32 into release/1.1.0.0 Sep 1, 2021
@zeptin zeptin deleted the getrawtransaction-20210830 branch September 1, 2021 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants