diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2019-07-03 12:28:23 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2019-07-03 12:31:15 +0200 |
commit | 7d7b832d6707299bde20e3b62247538443af4012 (patch) | |
tree | c1713f53b5ebb481f377372cd7769c1c21cb95f1 /src/test/validation_block_tests.cpp | |
parent | e06067387e758e86f82b126867338faeb6220de7 (diff) | |
parent | 3b9bf0eb0e0d69f112ce905078018d8351c73e26 (diff) |
Merge #16262: rpc: Allow shutdown while in generateblocks
3b9bf0eb0e0d69f112ce905078018d8351c73e26 rpc: Allow shutdown while in generateblocks (Patrick Strateman)
Pull request description:
By checking the shutdown flag every loop we can use the entire 32 bit nonce space instead of breaking every 16 bits to check the flag.
This is possible now because the shutdown flag is an atomic where before it was controlled by a condition variable and lock.
ACKs for top commit:
kallewoof:
Re-ACK 3b9bf0e
Tree-SHA512: d0664201a55215130c2e9199a31fb81361daf4102a65cb3418984fd61cb98bfb9136d9ee8d23a85d57e50051f9bb0059bd71fe0488a17f63c38ea5caa6004504
Diffstat (limited to 'src/test/validation_block_tests.cpp')
0 files changed, 0 insertions, 0 deletions