Skip to content

Conversation

@maflcko
Copy link
Member

@maflcko maflcko commented Aug 19, 2020

No description provided.

@maflcko
Copy link
Member Author

maflcko commented Aug 19, 2020

Rendered diff:

$ git diff --ignore-all-space 
diff --git a/getmempoolancestors b/getmempoolancestors
index 1d4e56c..64e6aa1 100644
--- a/getmempoolancestors
+++ b/getmempoolancestors
@@ -14,6 +14,7 @@ Result (for verbose = false):
 
 Result (for verbose = true):
 {                                         (json object)
+  "transactionid" : {                     (json object)
     "vsize" : n,                          (numeric) virtual transaction size as defined in BIP 141. This is different from actual serialized size for witness transactions as witness data is discounted.
     "weight" : n,                         (numeric) transaction weight as defined in BIP 141.
     "fee" : n,                            (numeric) transaction fee in BTC (DEPRECATED)
@@ -43,6 +44,8 @@ Result (for verbose = true):
     ],
     "bip125-replaceable" : true|false,    (boolean) Whether this transaction could be replaced due to BIP125 (replace-by-fee)
     "unbroadcast" : true|false            (boolean) Whether this transaction is currently unbroadcast (initial broadcast not yet acknowledged by any peers)
+  },
+  ...
 }
 
 Examples:

@fanquake fanquake added the Docs label Aug 19, 2020
@laanwj laanwj changed the title doc: Fix getmempoolancestor RPC result doc doc: Fix getmempoolancestors RPC result doc Aug 19, 2020
@laanwj
Copy link
Member

laanwj commented Aug 19, 2020

This matches the actual output of the command better.
ACK 333329d

Copy link
Member

@luke-jr luke-jr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@fanquake fanquake merged commit 44f66d2 into bitcoin:master Aug 20, 2020
@maflcko maflcko deleted the 2008-rpcDoc branch August 20, 2020 16:09
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Aug 20, 2020
333329d doc: Fix getmempoolancestor RPC result doc (MarcoFalke)

Pull request description:

ACKs for top commit:
  laanwj:
    ACK 333329d

Tree-SHA512: 30a7568ec15d1af0c484b4d479e14ec3609a01b76f17f8285688b0c5e5b0480926bbf6f651da91193b66fd752e83e9707e4b08c52b69f8c670c430da84713359
Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Sep 15, 2021
Summary: This is a backport of [[bitcoin/bitcoin#19765 | core#19765]]

Test Plan:
Run this command before and after the change:
```
src/bitcoin-cli help getmempoolancestors > before.txt
```

Compare:
```
$ git diff --ignore-all-space  ~/before.txt ~/after.txt
diff --git a/home/pierre/before.txt b/home/pierre/after.txt
index b241d3c9e9..343a383459 100644
--- a/home/pierre/before.txt
+++ b/home/pierre/after.txt
@@ -14,6 +14,7 @@ Result (for verbose = false):

 Result (for verbose = true):
 {                                  (json object)
+  "transactionid" : {              (json object)
     "size" : n,                    (numeric) transaction size.
     "fee" : n,                     (numeric) transaction fee in XEC (DEPRECATED)
     "modifiedfee" : n,             (numeric) transaction fee with fee deltas used for mining priority (DEPRECATED)
@@ -40,6 +41,8 @@ Result (for verbose = true):
       ...
     ],
     "unbroadcast" : true|false     (boolean) Whether this transaction is currently unbroadcast (initial broadcast not yet acknowledged by any peers)
+  },
+  ...
 }

 Examples:
```

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D10115
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 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.

4 participants