Mark new wallet tx/utxo stores as dirty.
This change makes the disk syncer write all three files (wallet, tx, and utxo) instead of just the wallet, which will result in warnings at startup if the tx/utxo files cannot be found. Fixes #30.
This commit is contained in:
parent
7866fd8931
commit
80606d7344
1 changed files with 2 additions and 0 deletions
|
@ -201,6 +201,8 @@ func (store *AccountStore) CreateEncryptedWallet(name, desc string, passphrase [
|
||||||
name: name,
|
name: name,
|
||||||
dirty: true,
|
dirty: true,
|
||||||
}
|
}
|
||||||
|
account.UtxoStore.dirty = true
|
||||||
|
account.TxStore.dirty = true
|
||||||
|
|
||||||
// Save the account in the global account map. The mutex is
|
// Save the account in the global account map. The mutex is
|
||||||
// already held at this point, and will be unlocked when this
|
// already held at this point, and will be unlocked when this
|
||||||
|
|
Loading…
Reference in a new issue