Error if writing a wallet fails during privkey import.
This commit is contained in:
parent
75d3a77106
commit
399f91bba2
1 changed files with 1 additions and 0 deletions
|
@ -357,6 +357,7 @@ func (a *Account) ImportWIFPrivateKey(wif string, bs *wallet.BlockStamp) (string
|
|||
a.mtx.Unlock()
|
||||
if err := a.writeDirtyToDisk(); err != nil {
|
||||
log.Errorf("cannot write dirty wallet: %v", err)
|
||||
return "", fmt.Errorf("import failed: cannot write wallet: %v", err)
|
||||
}
|
||||
|
||||
// Associate the imported address with this account.
|
||||
|
|
Loading…
Reference in a new issue