mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
update comment
This commit is contained in:
parent
7a6e4c842b
commit
e1eb787fe5
1 changed files with 4 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ func newAccounts(n int) (accounts []Account) {
|
||||||
return accounts
|
return accounts
|
||||||
}
|
}
|
||||||
|
|
||||||
// newTestBackend creates a new test backend. OBS: After test is done, teardown must be
|
// newTestBlockChain creates a new test blockchain. OBS: After test is done, teardown must be
|
||||||
// invoked in order to release associated resources.
|
// invoked in order to release associated resources.
|
||||||
func newTestBlockChain(t *testing.T, n int, gspec *core.Genesis, generator func(i int, b *core.BlockGen)) *core.BlockChain {
|
func newTestBlockChain(t *testing.T, n int, gspec *core.Genesis, generator func(i int, b *core.BlockGen)) *core.BlockChain {
|
||||||
engine := ethash.NewFaker()
|
engine := ethash.NewFaker()
|
||||||
|
|
@ -306,6 +306,9 @@ func TestGetModifiedAccounts(t *testing.T) {
|
||||||
b.AddTx(tx)
|
b.AddTx(tx)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
defer blockChain.Stop()
|
||||||
|
|
||||||
|
// Create a debug API instance.
|
||||||
api := NewDebugAPI(&Ethereum{blockchain: blockChain})
|
api := NewDebugAPI(&Ethereum{blockchain: blockChain})
|
||||||
|
|
||||||
// Test GetModifiedAccountsByNumber
|
// Test GetModifiedAccountsByNumber
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue