diff options
| author | John Newbery <[email protected]> | 2019-10-14 13:32:41 -0400 |
|---|---|---|
| committer | John Newbery <[email protected]> | 2019-10-14 13:32:41 -0400 |
| commit | eea462de9c652dca556ad241d2126b10790f67f8 (patch) | |
| tree | a2744495dcb9580b02479c89e33e0b77ef194a45 /src/interfaces/chain.h | |
| parent | Merge #17124: test: speed up wallet_address_types by whitelisting peers (imme... (diff) | |
| download | discoin-eea462de9c652dca556ad241d2126b10790f67f8.tar.xz discoin-eea462de9c652dca556ad241d2126b10790f67f8.zip | |
[wallet] Remove package limit config access from wallet
The wallet should not be able to directly access global configuration
from the node. Remove access of "-limitancestorcount" and
"-limitdescendantcount".
Diffstat (limited to 'src/interfaces/chain.h')
| -rw-r--r-- | src/interfaces/chain.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/interfaces/chain.h b/src/interfaces/chain.h index da670a337..73a78e21f 100644 --- a/src/interfaces/chain.h +++ b/src/interfaces/chain.h @@ -163,6 +163,11 @@ public: //! Calculate mempool ancestor and descendant counts for the given transaction. virtual void getTransactionAncestry(const uint256& txid, size_t& ancestors, size_t& descendants) = 0; + //! Get the node's package limits. + //! Currently only returns the ancestor and descendant count limits, but could be enhanced to + //! return more policy settings. + virtual void getPackageLimits(unsigned int& limit_ancestor_count, unsigned int& limit_descendant_count) = 0; + //! Check if transaction will pass the mempool's chain limits. virtual bool checkChainLimits(const CTransactionRef& tx) = 0; |