diff options
author | glozow <gloriajzhao@gmail.com> | 2022-12-15 15:15:22 +0000 |
---|---|---|
committer | glozow <gloriajzhao@gmail.com> | 2022-12-22 11:33:37 +0000 |
commit | c0588523083c9c78770b8b19a52a919db56250d9 (patch) | |
tree | 6c31af62a29e18aaf0d0cd2c46157a44806a842e /src/test/util/mining.h | |
parent | a2de971ba1c588488dde653a76853666429d4911 (diff) |
[refactor] parameterize BlockAssembler::Options in PrepareBlock
Diffstat (limited to 'src/test/util/mining.h')
-rw-r--r-- | src/test/util/mining.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/util/mining.h b/src/test/util/mining.h index 09e712cd35..70b1f7b3fb 100644 --- a/src/test/util/mining.h +++ b/src/test/util/mining.h @@ -5,6 +5,8 @@ #ifndef BITCOIN_TEST_UTIL_MINING_H #define BITCOIN_TEST_UTIL_MINING_H +#include <node/miner.h> + #include <memory> #include <string> #include <vector> @@ -25,6 +27,8 @@ CTxIn MineBlock(const node::NodeContext&, const CScript& coinbase_scriptPubKey); /** Prepare a block to be mined */ std::shared_ptr<CBlock> PrepareBlock(const node::NodeContext&, const CScript& coinbase_scriptPubKey); +std::shared_ptr<CBlock> PrepareBlock(const node::NodeContext& node, const CScript& coinbase_scriptPubKey, + const node::BlockAssembler::Options& assembler_options); /** RPC-like helper function, returns the generated coin */ CTxIn generatetoaddress(const node::NodeContext&, const std::string& address); |