diff options
| author | MarcoFalke <[email protected]> | 2019-12-05 15:55:22 -0500 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2019-12-05 15:55:27 -0500 |
| commit | 5d0b7f9e3d203522054b5ad31354332617a062b8 (patch) | |
| tree | 329281f2057b0105971d28393110da998a44b569 /src/httpserver.cpp | |
| parent | Merge #17522: test: Wait until mempool is loaded in wallet_abandonconflict (diff) | |
| parent | Move events_hasher into RNGState() (diff) | |
| download | discoin-5d0b7f9e3d203522054b5ad31354332617a062b8.tar.xz discoin-5d0b7f9e3d203522054b5ad31354332617a062b8.zip | |
Merge #17670: Move events_hasher into RNGState()
8bda0960f94dfb6462fc810cd61a8a065730eb79 Move events_hasher into RNGState() (Pieter Wuille)
Pull request description:
This moves `events_hasher` and `events_mutex` into `RNGState()` in random.cpp. This guarantees (through the existing `GetRNGState()` function) that the mutex is always created before any events are added, even when that happens inside global initializers.
Fixes the issue reported here: https://github.com/bitcoin/bitcoin/pull/17573#issuecomment-561828251, and includes the annotation from #17666).
ACKs for top commit:
MarcoFalke:
re-ACK 8bda0960f94dfb6462fc810cd61a8a065730eb79 🥈
sipsorcery:
re-ACK 8bda0960f94dfb6462fc810cd61a8a065730eb79.
Tree-SHA512: 78702d668764df19e9d61d87d82eca71cceca87d5351b740e13e732a1c18a3d53d7fbaaf63245266da597370bfebec9fa6a4749c15ec5a78dcfe6122c33553ed
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions