mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
internal/ethapi: remove unused fields
This commit is contained in:
parent
693618622f
commit
5fae08b74b
1 changed files with 8 additions and 11 deletions
|
|
@ -434,11 +434,10 @@ func newTestAccountManager(t *testing.T) (*accounts.Manager, accounts.Account) {
|
||||||
}
|
}
|
||||||
|
|
||||||
type testBackend struct {
|
type testBackend struct {
|
||||||
db ethdb.Database
|
db ethdb.Database
|
||||||
chain *core.BlockChain
|
chain *core.BlockChain
|
||||||
accman *accounts.Manager
|
accman *accounts.Manager
|
||||||
acc accounts.Account
|
acc accounts.Account
|
||||||
generator func(i int, b *core.BlockGen)
|
|
||||||
|
|
||||||
pending *types.Block
|
pending *types.Block
|
||||||
pendingReceipts types.Receipts
|
pendingReceipts types.Receipts
|
||||||
|
|
@ -462,12 +461,10 @@ func newTestBackend(t *testing.T, n int, gspec *core.Genesis, engine consensus.E
|
||||||
t.Fatalf("block %d: failed to insert into chain: %v", n, err)
|
t.Fatalf("block %d: failed to insert into chain: %v", n, err)
|
||||||
}
|
}
|
||||||
backend := &testBackend{
|
backend := &testBackend{
|
||||||
db: db,
|
db: db,
|
||||||
chain: chain,
|
chain: chain,
|
||||||
accman: accman,
|
accman: accman,
|
||||||
acc: acc,
|
acc: acc,
|
||||||
generator: generator,
|
|
||||||
|
|
||||||
pending: blocks[n],
|
pending: blocks[n],
|
||||||
pendingReceipts: receipts[n],
|
pendingReceipts: receipts[n],
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue