From d4d6f9905d9f6216cdd520203ced4343fd07009f Mon Sep 17 00:00:00 2001 From: Onyekachukwu-Nweke Date: Mon, 28 Apr 2025 09:06:34 +0100 Subject: [PATCH] Fix error handling to return error on address hash write failure --- waddrmgr/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waddrmgr/db.go b/waddrmgr/db.go index 48342df7cc..70abbd732c 100644 --- a/waddrmgr/db.go +++ b/waddrmgr/db.go @@ -1215,7 +1215,7 @@ func putAddrAccountIndex(ns walletdb.ReadWriteBucket, scope *KeyScope, // Write account keyed by address hash err = bucket.Put(addrHash, uint32ToBytes(account)) if err != nil { - return nil + return err } // TODO(yy): We already saved the addrHash and account above, so this