mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Update blockchain_test.go
code clean: remove redundant parentheses.
This commit is contained in:
parent
71443acbd8
commit
009142570b
1 changed files with 3 additions and 3 deletions
|
|
@ -1167,7 +1167,7 @@ func testChainTxReorgs(t *testing.T, scheme string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// removed tx
|
// removed tx
|
||||||
for i, tx := range (types.Transactions{pastDrop, freshDrop}) {
|
for i, tx := range types.Transactions{pastDrop, freshDrop} {
|
||||||
if txn, _, _, _ := rawdb.ReadTransaction(db, tx.Hash()); txn != nil {
|
if txn, _, _, _ := rawdb.ReadTransaction(db, tx.Hash()); txn != nil {
|
||||||
t.Errorf("drop %d: tx %v found while shouldn't have been", i, txn)
|
t.Errorf("drop %d: tx %v found while shouldn't have been", i, txn)
|
||||||
}
|
}
|
||||||
|
|
@ -1176,7 +1176,7 @@ func testChainTxReorgs(t *testing.T, scheme string) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// added tx
|
// added tx
|
||||||
for i, tx := range (types.Transactions{pastAdd, freshAdd, futureAdd}) {
|
for i, tx := range types.Transactions{pastAdd, freshAdd, futureAdd} {
|
||||||
if txn, _, _, _ := rawdb.ReadTransaction(db, tx.Hash()); txn == nil {
|
if txn, _, _, _ := rawdb.ReadTransaction(db, tx.Hash()); txn == nil {
|
||||||
t.Errorf("add %d: expected tx to be found", i)
|
t.Errorf("add %d: expected tx to be found", i)
|
||||||
}
|
}
|
||||||
|
|
@ -1185,7 +1185,7 @@ func testChainTxReorgs(t *testing.T, scheme string) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// shared tx
|
// shared tx
|
||||||
for i, tx := range (types.Transactions{postponed, swapped}) {
|
for i, tx := range types.Transactions{postponed, swapped} {
|
||||||
if txn, _, _, _ := rawdb.ReadTransaction(db, tx.Hash()); txn == nil {
|
if txn, _, _, _ := rawdb.ReadTransaction(db, tx.Hash()); txn == nil {
|
||||||
t.Errorf("share %d: expected tx to be found", i)
|
t.Errorf("share %d: expected tx to be found", i)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue