From 3cf6b246ff1a2486861724258157763363232c82 Mon Sep 17 00:00:00 2001 From: jholdstock Date: Wed, 27 May 2026 12:24:02 +0800 Subject: [PATCH] Don't log nil error. --- rpc/dcrd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpc/dcrd.go b/rpc/dcrd.go index c40bc33a..8c55a3ec 100644 --- a/rpc/dcrd.go +++ b/rpc/dcrd.go @@ -1,4 +1,4 @@ -// Copyright (c) 2021-2025 The Decred developers +// Copyright (c) 2021-2026 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. @@ -340,7 +340,7 @@ func (c *DcrdRPC) GetCFilterV2(header *wire.BlockHeader, verifyProof bool) ([gcs } if !standalone.VerifyInclusionProof(&header.StakeRoot, &filterHash, resp.ProofIndex, proofHashes) { - return key, nil, fmt.Errorf("failed to verify inclusion proof: %w", err) + return key, nil, errors.New("failed to verify inclusion proof") } }