Update core/rawdb/accessors_chain_test.go

Co-authored-by: Martin HS <martin@swende.se>
This commit is contained in:
Marquis Shanahan 2024-06-04 16:32:01 +08:00 committed by GitHub
parent 81312f75f9
commit 8c9c5d1e4a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -819,7 +819,7 @@ func TestDeriveLogFields(t *testing.T) {
// Derive log metadata fields
number := big.NewInt(1)
hash := common.BytesToHash([]byte{0x03, 0x14})
types.Receipts(receipts).DeriveFields(params.TestChainConfig, hash, number.Uint64(), uint64(time.Now().Unix()), big.NewInt(0), big.NewInt(0), txs)
types.Receipts(receipts).DeriveFields(params.TestChainConfig, hash, number.Uint64(), 0, big.NewInt(0), big.NewInt(0), txs)
// Iterate over all the computed fields and check that they're correct
logIndex := uint(0)