Closed abitmore closed 9 years ago
Before upgrading a wallet, it need to be unlocked first,
_wallet_password
wallet_impl::is_unlocked()
true
wallet_impl::block_pushed()
start_scan()
Since the wallet is in an insistent state while upgrading, scanning at the same time may cause trouble.
I was wrong. wallet_impl::block_pushed() won't execute while upgrading wallet.
Before upgrading a wallet, it need to be unlocked first,
_wallet_password
is set to a value here: https://github.com/BitShares/bitshares/blob/edf9b381284b8abf8eedf1a58f92a0bbb03d82ee/libraries/wallet/wallet.cpp#L1179 thuswallet_impl::is_unlocked()
will returntrue
wallet_impl::block_pushed()
will callstart_scan()
: https://github.com/BitShares/bitshares/blob/edf9b381284b8abf8eedf1a58f92a0bbb03d82ee/libraries/wallet/wallet.cpp#L37Since the wallet is in an insistent state while upgrading, scanning at the same time may cause trouble.