Right now in the current master these hooks aren't really being used - a single wallet is registered at startup in init.cpp and is unregistered at shutdown, also in init.cpp. But in order to support dynamic loading and unloading of transaction listeners, it is necessary to lock these functions. It is also convenient to have an UnregisterAllWallets() function and to call that upon shutdown instead of just calling it on the single main wallet that master currently has.
Added locks to wallet loop functions in main.cpp and added UnregisterAllWallets(). #2208
pull CodeShark wants to merge 1 commits into bitcoin:master from CodeShark:master changing 1 files +15 −0-
CodeShark commented at 8:46 PM on January 23, 2013: contributor
-
Added locks on the setpwalletRegistered functions in main.cpp and added an UnregisterAllWallets function. e15cb2b9d9
- CodeShark closed this on Jan 23, 2013
-
BitcoinPullTester commented at 9:03 PM on January 23, 2013: none
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/e15cb2b9d90ee421d14881f232711016d5d3867a for binaries and test log.
- DrahtBot locked this on Sep 8, 2021
Contributors