diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-06-14 14:44:35 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-06-15 07:39:26 -0400 |
commit | fa34587f1c811d99200453b0936219c473f514b0 (patch) | |
tree | c9bdab467f7f00940e28cf0e2d71b407c09dbe92 /src/test/util/mining.cpp | |
parent | fa6ef701adba1cb48535cac25fd43c742a82e40d (diff) |
scripted-diff: Replace EnsureChainman with Assert in unit tests
-BEGIN VERIFY SCRIPT-
sed --regexp-extended -i -e 's/EnsureChainman\((m?_?node)\)\./Assert(\1.chainman)->/g' $(git grep -l EnsureChainman)
-END VERIFY SCRIPT-
Diffstat (limited to 'src/test/util/mining.cpp')
-rw-r--r-- | src/test/util/mining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/util/mining.cpp b/src/test/util/mining.cpp index b0c74954db..74536ae74c 100644 --- a/src/test/util/mining.cpp +++ b/src/test/util/mining.cpp @@ -32,7 +32,7 @@ CTxIn MineBlock(const NodeContext& node, const CScript& coinbase_scriptPubKey) assert(block->nNonce); } - bool processed{EnsureChainman(node).ProcessNewBlock(Params(), block, true, nullptr)}; + bool processed{Assert(node.chainman)->ProcessNewBlock(Params(), block, true, nullptr)}; assert(processed); return CTxIn{block->vtx[0]->GetHash(), 0}; |