mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-16 00:43:46 +00:00
fix: TestHeadersRLPStorage
This commit is contained in:
parent
371a411eb4
commit
2111d4ccdb
1 changed files with 3 additions and 1 deletions
|
|
@ -913,8 +913,10 @@ func TestHeadersRLPStorage(t *testing.T) {
|
||||||
pHash = block.Hash()
|
pHash = block.Hash()
|
||||||
}
|
}
|
||||||
var receipts []types.Receipts = make([]types.Receipts, 100)
|
var receipts []types.Receipts = make([]types.Receipts, 100)
|
||||||
|
var borReceipts []types.Receipts = make([]types.Receipts, 100)
|
||||||
|
|
||||||
// Write first half to ancients
|
// Write first half to ancients
|
||||||
WriteAncientBlocks(db, chain[:50], receipts[:50], big.NewInt(100))
|
WriteAncientBlocks(db, chain[:50], receipts[:50], borReceipts[:50], big.NewInt(100))
|
||||||
// Write second half to db
|
// Write second half to db
|
||||||
for i := 50; i < 100; i++ {
|
for i := 50; i < 100; i++ {
|
||||||
WriteCanonicalHash(db, chain[i].Hash(), chain[i].NumberU64())
|
WriteCanonicalHash(db, chain[i].Hash(), chain[i].NumberU64())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue