From a42332e75048148cf727a071a9ce6e70afb5c523 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Mon, 16 Jun 2025 14:58:27 +0200 Subject: [PATCH] Update accessors_indexes.go --- core/rawdb/accessors_indexes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/rawdb/accessors_indexes.go b/core/rawdb/accessors_indexes.go index 10088013b3..39686f3bc8 100644 --- a/core/rawdb/accessors_indexes.go +++ b/core/rawdb/accessors_indexes.go @@ -161,11 +161,11 @@ func ReadTransaction(db ethdb.Reader, hash common.Hash) (*types.Transaction, com // which are encoded as byte arrays, the preimage is the content of // the byte array, so trim their prefix here. txRLP := txnIterator.Value() - rlpKind, txHashPayload, _, err := rlp.Split(txRLP) + kind, txHashPayload, _, err := rlp.Split(txRLP) if err != nil { return nil, common.Hash{}, 0, 0 } - if rlpKind == rlp.List { + if kind == rlp.List { txHashPayload = txRLP } if crypto.Keccak256Hash(txHashPayload) == hash {