File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 16
16
#include < consensus/tx_verify.h>
17
17
#include < consensus/validation.h>
18
18
#include < cuckoocache.h>
19
- #include < deploymentstatus.h>
20
19
#include < flatfile.h>
21
20
#include < hash.h>
22
21
#include < logging.h>
Original file line number Diff line number Diff line change 15
15
#include < chain.h>
16
16
#include < chainparams.h>
17
17
#include < consensus/amount.h>
18
+ #include < deploymentstatus.h>
18
19
#include < fs.h>
19
20
#include < node/blockstorage.h>
20
21
#include < policy/feerate.h>
@@ -1003,6 +1004,25 @@ class ChainstateManager
1003
1004
~ChainstateManager ();
1004
1005
};
1005
1006
1007
+ /* * Deployment* info via ChainstateManager */
1008
+ template <typename DEP>
1009
+ bool DeploymentActiveAfter (const CBlockIndex* pindexPrev, const ChainstateManager& chainman, DEP dep)
1010
+ {
1011
+ return DeploymentActiveAfter (pindexPrev, chainman.GetConsensus (), dep);
1012
+ }
1013
+
1014
+ template <typename DEP>
1015
+ bool DeploymentActiveAt (const CBlockIndex& index, const ChainstateManager& chainman, DEP dep)
1016
+ {
1017
+ return DeploymentActiveAt (index, chainman.GetConsensus (), dep);
1018
+ }
1019
+
1020
+ template <typename DEP>
1021
+ bool DeploymentEnabled (const ChainstateManager& chainman, DEP dep)
1022
+ {
1023
+ return DeploymentEnabled (chainman.GetConsensus (), dep);
1024
+ }
1025
+
1006
1026
using FopenFn = std::function<FILE*(const fs::path&, const char *)>;
1007
1027
1008
1028
/* * Dump the mempool to disk. */
You can’t perform that action at this time.
0 commit comments