@@ -578,7 +578,7 @@ func testBadHashes(t *testing.T, full bool) {
578578 }
579579}
580580
581- // Tests that bad hashes are detected on boot, and the chan rolled back to a
581+ // Tests that bad hashes are detected on boot, and the chain rolled back to a
582582// good state prior to the bad hash.
583583func TestReorgBadHeaderHashes (t * testing.T ) { testReorgBadHashes (t , false ) }
584584func TestReorgBadBlockHashes (t * testing.T ) { testReorgBadHashes (t , true ) }
@@ -589,7 +589,7 @@ func testReorgBadHashes(t *testing.T, full bool) {
589589 genesis , _ := WriteTestNetGenesisBlock (db )
590590 bc := chm (genesis , db )
591591
592- // Create a chain, import and ban aferwards
592+ // Create a chain, import and ban afterwards
593593 headers := makeHeaderChainWithDiff (genesis , []int {1 , 2 , 3 , 4 }, 10 )
594594 blocks := makeBlockChainWithDiff (genesis , []int {1 , 2 , 3 , 4 }, 10 )
595595
@@ -889,7 +889,7 @@ func TestChainTxReorgs(t *testing.T) {
889889 var pastDrop , freshDrop * types.Transaction
890890
891891 // Create three transactions that will be added in the forked chain:
892- // - pastAdd: transaction added before the reorganiztion is detected
892+ // - pastAdd: transaction added before the reorganization is detected
893893 // - freshAdd: transaction added at the exact block the reorg is detected
894894 // - futureAdd: transaction added after the reorg has already finished
895895 var pastAdd , freshAdd , futureAdd * types.Transaction
@@ -1086,7 +1086,7 @@ done:
10861086 // make sure no more events are fired
10871087 select {
10881088 case e := <- subs .Chan ():
1089- t .Errorf ("unexectped event fired: %v" , e )
1089+ t .Errorf ("unexpected event fired: %v" , e )
10901090 case <- time .After (250 * time .Millisecond ):
10911091 }
10921092
0 commit comments