mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
core/rawdb: fix lint
This commit is contained in:
parent
a360c1df28
commit
59a0610670
1 changed files with 4 additions and 5 deletions
|
|
@ -20,10 +20,10 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"fmt"
|
"fmt"
|
||||||
"math/big"
|
|
||||||
"testing"
|
|
||||||
"os"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
"math/big"
|
||||||
|
"os"
|
||||||
|
"testing"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/core/types"
|
"github.com/ethereum/go-ethereum/core/types"
|
||||||
|
|
@ -410,7 +410,7 @@ func TestAncientStorage(t *testing.T) {
|
||||||
t.Fatalf("no td returned")
|
t.Fatalf("no td returned")
|
||||||
}
|
}
|
||||||
// Use a fake hash for data retrieval, nothing should be returned.
|
// Use a fake hash for data retrieval, nothing should be returned.
|
||||||
fakeHash := common.BytesToHash([]byte{0x01,0x02,0x03})
|
fakeHash := common.BytesToHash([]byte{0x01, 0x02, 0x03})
|
||||||
if blob := ReadHeaderRLP(db, fakeHash, number); len(blob) != 0 {
|
if blob := ReadHeaderRLP(db, fakeHash, number); len(blob) != 0 {
|
||||||
t.Fatalf("invalid header returned")
|
t.Fatalf("invalid header returned")
|
||||||
}
|
}
|
||||||
|
|
@ -424,4 +424,3 @@ func TestAncientStorage(t *testing.T) {
|
||||||
t.Fatalf("invalid td returned")
|
t.Fatalf("invalid td returned")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue