diff options
author | t-bast <bastuc@hotmail.fr> | 2022-04-25 10:29:25 +0200 |
---|---|---|
committer | t-bast <bastuc@hotmail.fr> | 2022-05-05 14:56:48 +0200 |
commit | 418557034055f740951294e7677ae9fd5149ea9b (patch) | |
tree | 3c0137a53cbad899d52ddb6b120b5b61da032bb1 /src/test/fuzz/rpc.cpp | |
parent | 1ad5d5088d69939b0551de31d6c33c03153697c5 (diff) | |
download | bitcoin-418557034055f740951294e7677ae9fd5149ea9b.tar.xz |
Add RPC to get mempool txs spending outputs
We add an RPC to fetch the mempool transactions spending given outpoints.
Without this RPC, application developers would need to first call
`getrawmempool` which returns a long list of `txid`, then fetch each of
these txs individually to check whether they spend the given outpoint(s).
This RPC can later be enriched to also find confirmed transactions instead
of being restricted to mempool transactions.
Diffstat (limited to 'src/test/fuzz/rpc.cpp')
-rw-r--r-- | src/test/fuzz/rpc.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/fuzz/rpc.cpp b/src/test/fuzz/rpc.cpp index 03a84b697d..e4e83c3f32 100644 --- a/src/test/fuzz/rpc.cpp +++ b/src/test/fuzz/rpc.cpp @@ -128,6 +128,7 @@ const std::vector<std::string> RPC_COMMANDS_SAFE_FOR_FUZZING{ "getmempoolancestors", "getmempooldescendants", "getmempoolentry", + "gettxspendingprevout", "getmempoolinfo", "getmininginfo", "getnettotals", |