Skip to content

Conversation

@promag
Copy link
Contributor

@promag promag commented Apr 16, 2021

With the following diff the functional test would pass. Fix by testing the default value.

--- a/src/rpc/blockchain.cpp
+++ b/src/rpc/blockchain.cpp
@@ -1142,7 +1142,7 @@ static RPCHelpMan gettxout()
     uint256 hash(ParseHashV(request.params[0], "txid"));
     int n = request.params[1].get_int();
     COutPoint out(hash, n);
-    bool fMempool = true;
+    bool fMempool = false;
     if (!request.params[2].isNull())
         fMempool = request.params[2].get_bool();

@DrahtBot DrahtBot added the Tests label Apr 16, 2021
@maflcko
Copy link
Member

maflcko commented Apr 17, 2021

cr ACK 44dab42

@maflcko maflcko merged commit 8e69370 into bitcoin:master Apr 17, 2021
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Apr 17, 2021
44dab42 qa: Test default include_mempool value of gettxout (João Barbosa)

Pull request description:

  With the following diff the functional test would pass. Fix by testing the default value.

  ```diff
  --- a/src/rpc/blockchain.cpp
  +++ b/src/rpc/blockchain.cpp
  @@ -1142,7 +1142,7 @@ static RPCHelpMan gettxout()
       uint256 hash(ParseHashV(request.params[0], "txid"));
       int n = request.params[1].get_int();
       COutPoint out(hash, n);
  -    bool fMempool = true;
  +    bool fMempool = false;
       if (!request.params[2].isNull())
           fMempool = request.params[2].get_bool();
  ```

ACKs for top commit:
  MarcoFalke:
    cr ACK 44dab42

Tree-SHA512: 14db21b29d6b2c01d1d1278e18a0cf35d6ae566e33e45515d1fe2983dda94ad1ff6065c217601d283f9515cae39b57e981b62ac71ec2002de5359bd8a9e3efa9
@promag promag deleted the 2021-04-gettxout branch April 19, 2021 12:15
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants