aboutsummaryrefslogtreecommitdiff
path: root/doc/REST-interface.md
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2019-02-01 14:09:36 -0800
committerBen Woosley <ben.woosley@gmail.com>2019-03-22 02:31:20 -0700
commitbb8ae2c41941d0776968f75cec0de89247e952dc (patch)
tree44f74e39cf877e0c7683360fc223fbb55a4b3f5b /doc/REST-interface.md
parent3515612e069e3730f173a08e60b99f96b174188d (diff)
downloadbitcoin-bb8ae2c41941d0776968f75cec0de89247e952dc.tar.xz
rpc: Expose g_is_mempool_loaded via getmempoolinfo and /rest/mempool/info.json
And use it to fix a race condition in mempool_persist.py: https://travis-ci.org/Empact/bitcoin/jobs/487577243 Since e.g. getrawmempool returns errors based on this status, this enables users to test it for readiness.
Diffstat (limited to 'doc/REST-interface.md')
-rw-r--r--doc/REST-interface.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/REST-interface.md b/doc/REST-interface.md
index 02a665008b..c96871ab5f 100644
--- a/doc/REST-interface.md
+++ b/doc/REST-interface.md
@@ -101,6 +101,7 @@ $ curl localhost:18332/rest/getutxos/checkmempool/b2cdfd7b89def827ff8af7cd9bff76
Returns various information about the TX mempool.
Only supports JSON as output format.
+* loaded : (boolean) if the mempool is fully loaded
* size : (numeric) the number of transactions in the TX mempool
* bytes : (numeric) size of the TX mempool in bytes
* usage : (numeric) total TX mempool memory usage