mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
eth, miner: fix linter
This commit is contained in:
parent
4a11409cac
commit
3a1eb62322
2 changed files with 1 additions and 2 deletions
|
|
@ -184,7 +184,6 @@ func (b *testBackend) setPending(block *types.Block, receipts types.Receipts) {
|
||||||
func (b *testBackend) notifyPending(logs []*types.Log) {
|
func (b *testBackend) notifyPending(logs []*types.Log) {
|
||||||
genesis := &core.Genesis{
|
genesis := &core.Genesis{
|
||||||
Config: params.TestChainConfig,
|
Config: params.TestChainConfig,
|
||||||
Alloc: core.GenesisAlloc{},
|
|
||||||
}
|
}
|
||||||
_, blocks, _ := core.GenerateChainWithGenesis(genesis, ethash.NewFaker(), 2, func(i int, b *core.BlockGen) {})
|
_, blocks, _ := core.GenerateChainWithGenesis(genesis, ethash.NewFaker(), 2, func(i int, b *core.BlockGen) {})
|
||||||
b.setPending(blocks[1], []*types.Receipt{{Logs: logs}})
|
b.setPending(blocks[1], []*types.Receipt{{Logs: logs}})
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ type testWorkerBackend struct {
|
||||||
func newTestWorkerBackend(t *testing.T, chainConfig *params.ChainConfig, engine consensus.Engine, db ethdb.Database, n int) *testWorkerBackend {
|
func newTestWorkerBackend(t *testing.T, chainConfig *params.ChainConfig, engine consensus.Engine, db ethdb.Database, n int) *testWorkerBackend {
|
||||||
var gspec = &core.Genesis{
|
var gspec = &core.Genesis{
|
||||||
Config: chainConfig,
|
Config: chainConfig,
|
||||||
Alloc: core.GenesisAlloc{testBankAddress: {Balance: testBankFunds}},
|
Alloc: types.GenesisAlloc{testBankAddress: {Balance: testBankFunds}},
|
||||||
}
|
}
|
||||||
switch e := engine.(type) {
|
switch e := engine.(type) {
|
||||||
case *clique.Clique:
|
case *clique.Clique:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue