aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/chain.h
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@yanofsky.org>2017-07-28 19:42:27 -0400
committerRussell Yanofsky <russ@yanofsky.org>2019-02-22 15:43:02 -0400
commitcd32160af0528cc746968ee0eadf4f63c98665f2 (patch)
tree38c2df53e845cb7c3206507ca23d7a5d59a75e72 /src/interfaces/chain.h
parent291276f7f40df9fcd62e54c016953705bf0ed04a (diff)
downloadbitcoin-cd32160af0528cc746968ee0eadf4f63c98665f2.tar.xz
Remove use of GetTransactionAncestry in wallet code
This commit does not change behavior.
Diffstat (limited to 'src/interfaces/chain.h')
-rw-r--r--src/interfaces/chain.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interfaces/chain.h b/src/interfaces/chain.h
index aa4f17a8ec..33bbfefd9f 100644
--- a/src/interfaces/chain.h
+++ b/src/interfaces/chain.h
@@ -9,6 +9,7 @@
#include <policy/rbf.h> // For RBFTransactionState
#include <memory>
+#include <stddef.h>
#include <stdint.h>
#include <string>
#include <vector>
@@ -138,6 +139,9 @@ public:
//! Check if transaction has descendants in mempool.
virtual bool hasDescendantsInMempool(const uint256& txid) = 0;
+
+ //! Calculate mempool ancestor and descendant counts for the given transaction.
+ virtual void getTransactionAncestry(const uint256& txid, size_t& ancestors, size_t& descendants) = 0;
};
//! Interface to let node manage chain clients (wallets, or maybe tools for