core: fix broken tests due to API changes + linter

This commit is contained in:
Péter Szilágyi
2020-02-24 13:26:34 +02:00
parent 19099421dc
commit 06d4470b41
18 changed files with 55 additions and 182 deletions

View File

@ -67,14 +67,11 @@ func (ti *testIterator) Seek(common.Hash) {
func (ti *testIterator) Next() bool {
ti.values = ti.values[1:]
if len(ti.values) == 0 {
return false
}
return true
return len(ti.values) > 0
}
func (ti *testIterator) Error() error {
panic("implement me")
return nil
}
func (ti *testIterator) Hash() common.Hash {
@ -82,7 +79,7 @@ func (ti *testIterator) Hash() common.Hash {
}
func (ti *testIterator) Account() []byte {
panic("implement me")
return nil
}
func (ti *testIterator) Release() {}