fix : lint

This commit is contained in:
Shivam Sharma 2023-07-24 14:44:50 +05:30
parent e7df3cce45
commit 6528e4500b
2 changed files with 4 additions and 0 deletions

View file

@ -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{})

View file

@ -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 {