mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-15 16:33:47 +00:00
fix : lint
This commit is contained in:
parent
0f32302313
commit
2652d6cec0
2 changed files with 3 additions and 0 deletions
|
|
@ -1529,6 +1529,8 @@ func makeAccountTrieNoStorage(n int) (string, *trie.Trie, entrySlice) {
|
||||||
var (
|
var (
|
||||||
db = trie.NewDatabase(rawdb.NewMemoryDatabase())
|
db = trie.NewDatabase(rawdb.NewMemoryDatabase())
|
||||||
accTrie = trie.NewEmpty(db)
|
accTrie = trie.NewEmpty(db)
|
||||||
|
|
||||||
|
// nolint:prealloc
|
||||||
entries entrySlice
|
entries entrySlice
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -541,6 +541,7 @@ func (t *Transaction) getLogs(ctx context.Context, hash common.Hash) (*[]*Log, e
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// nolint:prealloc
|
||||||
var ret []*Log
|
var ret []*Log
|
||||||
// Select tx logs from all block logs
|
// Select tx logs from all block logs
|
||||||
ix := sort.Search(len(logs), func(i int) bool { return uint64(logs[i].TxIndex) >= t.index })
|
ix := sort.Search(len(logs), func(i int) bool { return uint64(logs[i].TxIndex) >= t.index })
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue