mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
rpc/mining: restore code erroneously dropped in 0e2c963dbf
This commit is contained in:
parent
39112e1eaa
commit
0045cafd75
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ static bool GenerateBlock(ChainstateManager& chainman, CBlock& block, uint64_t&
|
|||
++block.nNonce;
|
||||
--max_tries;
|
||||
}
|
||||
if (max_tries == 0) {
|
||||
if (max_tries == 0 || ShutdownRequested()) {
|
||||
return false;
|
||||
}
|
||||
if (block.nNonce == std::numeric_limits<uint32_t>::max()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue