eth, miner: fix linter

This commit is contained in:
Péter Szilágyi 2024-03-06 14:32:32 +02:00
parent 4a11409cac
commit 3a1eb62322
2 changed files with 1 additions and 2 deletions

View file

@ -184,7 +184,6 @@ func (b *testBackend) setPending(block *types.Block, receipts types.Receipts) {
func (b *testBackend) notifyPending(logs []*types.Log) {
genesis := &core.Genesis{
Config: params.TestChainConfig,
Alloc: core.GenesisAlloc{},
}
_, blocks, _ := core.GenerateChainWithGenesis(genesis, ethash.NewFaker(), 2, func(i int, b *core.BlockGen) {})
b.setPending(blocks[1], []*types.Receipt{{Logs: logs}})

View file

@ -108,7 +108,7 @@ type testWorkerBackend struct {
func newTestWorkerBackend(t *testing.T, chainConfig *params.ChainConfig, engine consensus.Engine, db ethdb.Database, n int) *testWorkerBackend {
var gspec = &core.Genesis{
Config: chainConfig,
Alloc: core.GenesisAlloc{testBankAddress: {Balance: testBankFunds}},
Alloc: types.GenesisAlloc{testBankAddress: {Balance: testBankFunds}},
}
switch e := engine.(type) {
case *clique.Clique: