diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-03-25 22:49:33 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2018-03-26 12:08:08 +0200 |
commit | 6a318e48a67a8f9834e14c960bd4f5b6e295b2dc (patch) | |
tree | bc7803e9200604881fc9059ba3d5e23da8d0e563 /src/test/test_bitcoin.cpp | |
parent | 7466a26cab5d66665991433947964a638f5b957e (diff) | |
download | bitcoin-6a318e48a67a8f9834e14c960bd4f5b6e295b2dc.tar.xz |
Reduce variable scopes
Diffstat (limited to 'src/test/test_bitcoin.cpp')
-rw-r--r-- | src/test/test_bitcoin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp index 95c4825b84..9390a93b99 100644 --- a/src/test/test_bitcoin.cpp +++ b/src/test/test_bitcoin.cpp @@ -145,9 +145,9 @@ TestChain100Setup::CreateAndProcessBlock(const std::vector<CMutableTransaction>& for (const CMutableTransaction& tx : txns) block.vtx.push_back(MakeTransactionRef(tx)); // IncrementExtraNonce creates a valid coinbase and merkleRoot - unsigned int extraNonce = 0; { LOCK(cs_main); + unsigned int extraNonce = 0; IncrementExtraNonce(&block, chainActive.Tip(), extraNonce); } |