Branch: refs/heads/master
Home: https://github.com/conformal/btcwallet
Commit: 3b9d84b1e29fae81c2ba7db28634c6a329d14755
https://github.com/conformal/btcwallet/commit/3b9d84b1e29fae81c2ba7db28634c6a329d14755
Author: Josh Rickmar <[email protected]>
Date: 2014-01-14 (Tue, 14 Jan 2014)
Changed paths:
M account.go
Log Message:
-----------
Release reader lock before syncing to disk.
When disk syncing a wallet file, if the wallet is flagged dirty, the
disk syncer must grab the wallet writer lock to set dirty=false. The
disk syncing code was being called in the end of
(*Account).RescanActiveAddresses with the reader lock held (unlocked
using a defer), which prevented the writer lock from being aquired.
This change removes the defered unlock to release the reader lock
before syncing to disk.