mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
core/txpool: fix test
This commit is contained in:
parent
8f16e534f8
commit
b937cfef3a
1 changed files with 6 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ func TestLimboLegacyMigration(t *testing.T) {
|
||||||
store.Close()
|
store.Close()
|
||||||
|
|
||||||
// Open the limbo, which should migrate the legacy entry.
|
// Open the limbo, which should migrate the legacy entry.
|
||||||
l, err := newLimbo(new(params.ChainConfig), dir)
|
l, _, err := newLimbo(new(params.ChainConfig), dir)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("failed to open limbo: %v", err)
|
t.Fatalf("failed to open limbo: %v", err)
|
||||||
}
|
}
|
||||||
|
|
@ -66,7 +66,11 @@ func TestLimboLegacyMigration(t *testing.T) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("failed to pull migrated tx: %v", err)
|
t.Fatalf("failed to pull migrated tx: %v", err)
|
||||||
}
|
}
|
||||||
if got := ptx.ToTx().Hash(); got != tx.Hash() {
|
ptxTx, err := ptx.toTx()
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
if got := ptxTx.Hash(); got != tx.Hash() {
|
||||||
t.Fatalf("migrated tx hash mismatch: got %x, want %x", got, tx.Hash())
|
t.Fatalf("migrated tx hash mismatch: got %x, want %x", got, tx.Hash())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue