diff options
author | Carl Dong <contact@carldong.me> | 2020-10-06 14:20:25 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-03-08 15:54:31 -0500 |
commit | 2c3ba006930a5bbbf5a33bd530f3c1b2c4103c74 (patch) | |
tree | 5bd37554891daf021b07b7cbda15e49d30295e13 /src/rpc/mining.cpp | |
parent | 2afcf24408b4453e4418ebfb326b141f6ea8647c (diff) |
miner: Pass in blockman to ::RegenerateCommitments
REQUIRES ATTENTION
Diffstat (limited to 'src/rpc/mining.cpp')
-rw-r--r-- | src/rpc/mining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index 1f3bf4d016..62b9d1138c 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -369,7 +369,7 @@ static RPCHelpMan generateblock() // Add transactions block.vtx.insert(block.vtx.end(), txs.begin(), txs.end()); - RegenerateCommitments(block); + RegenerateCommitments(block, WITH_LOCK(::cs_main, return std::ref(g_chainman.m_blockman))); { LOCK(cs_main); |