mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
fix : lint
This commit is contained in:
parent
e7df3cce45
commit
6528e4500b
2 changed files with 4 additions and 0 deletions
|
|
@ -189,6 +189,7 @@ func (t *testHelper) addSnapStorage(accKey string, keys []string, vals []string)
|
|||
}
|
||||
}
|
||||
|
||||
// nolint:unparam
|
||||
func (t *testHelper) makeStorageTrie(stateRoot, owner common.Hash, keys []string, vals []string, commit bool) []byte {
|
||||
id := trie.StorageTrieID(stateRoot, owner, common.Hash{})
|
||||
|
||||
|
|
|
|||
|
|
@ -1926,11 +1926,14 @@ func testBeaconSync(t *testing.T, protocol uint, mode SyncMode) {
|
|||
tester.newPeer("peer", protocol, chain.blocks[1:])
|
||||
|
||||
// Build the local chain segment if it's required
|
||||
// nolint:govet
|
||||
if c.local > 0 {
|
||||
// nolint:govet
|
||||
_, _ = tester.chain.InsertChain(chain.blocks[1 : c.local+1])
|
||||
}
|
||||
|
||||
if err := tester.downloader.BeaconSync(mode, chain.blocks[len(chain.blocks)-1].Header(), nil); err != nil {
|
||||
// nolint:govet
|
||||
t.Fatalf("Failed to beacon sync chain %v %v", c.name, err)
|
||||
}
|
||||
select {
|
||||
|
|
|
|||
Loading…
Reference in a new issue