mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
Update accessors_indexes.go
This commit is contained in:
parent
3bd0deacbc
commit
a42332e750
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
// which are encoded as byte arrays, the preimage is the content of
|
||||||
// the byte array, so trim their prefix here.
|
// the byte array, so trim their prefix here.
|
||||||
txRLP := txnIterator.Value()
|
txRLP := txnIterator.Value()
|
||||||
rlpKind, txHashPayload, _, err := rlp.Split(txRLP)
|
kind, txHashPayload, _, err := rlp.Split(txRLP)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, common.Hash{}, 0, 0
|
return nil, common.Hash{}, 0, 0
|
||||||
}
|
}
|
||||||
if rlpKind == rlp.List {
|
if kind == rlp.List {
|
||||||
txHashPayload = txRLP
|
txHashPayload = txRLP
|
||||||
}
|
}
|
||||||
if crypto.Keccak256Hash(txHashPayload) == hash {
|
if crypto.Keccak256Hash(txHashPayload) == hash {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue