aboutsummaryrefslogtreecommitdiff
path: root/src/httpserver.cpp
diff options
context:
space:
mode:
authorRussell Yanofsky <[email protected]>2020-03-10 15:46:20 -0400
committerJoão Barbosa <[email protected]>2020-03-27 15:17:35 +0000
commitab31b9d6fe7b39713682e3f52d11238dbe042c16 (patch)
treef719291130d3322eaac867b793309f476d8872c1 /src/httpserver.cpp
parentMerge #18395: scripts: add PE dylib checking to symbol-check.py (diff)
downloaddiscoin-ab31b9d6fe7b39713682e3f52d11238dbe042c16.tar.xz
discoin-ab31b9d6fe7b39713682e3f52d11238dbe042c16.zip
Fix wallet unload race condition
Currently it's possible for ReleaseWallet to delete the CWallet pointer while it is processing BlockConnected, etc chain notifications. To fix this, unregister from notifications earlier in UnloadWallet instead of ReleaseWallet, and use a new RegisterSharedValidationInterface function to prevent the CValidationInterface shared_ptr from being deleted until the last notification is actually finished.
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions