Skip to content

Commit b26f4ec

Browse files
authored
Merge pull request #1007 from Onyekachukwu-Nweke/fix/bucket-write-error-handling
waddrmgr: fix error handling to return error on address hash write failure
2 parents a73f5c5 + d4d6f99 commit b26f4ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

waddrmgr/db.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@ func putAddrAccountIndex(ns walletdb.ReadWriteBucket, scope *KeyScope,
12151215
// Write account keyed by address hash
12161216
err = bucket.Put(addrHash, uint32ToBytes(account))
12171217
if err != nil {
1218-
return nil
1218+
return err
12191219
}
12201220

12211221
// TODO(yy): We already saved the addrHash and account above, so this

0 commit comments

Comments
 (0)