aboutsummaryrefslogtreecommitdiffstats
path: root/core/blockchain_test.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-03-16 02:39:36 +0800
committerFelix Lange <fjl@twurst.com>2016-03-16 02:39:36 +0800
commit06fe6310a3ecf0be324b082ca83c015abe47fa8f (patch)
treea78847bed59a5fa7f75ff9a1705b0a6bb20d13d7 /core/blockchain_test.go
parent066d30152088188cec782bb62844550332d6b142 (diff)
parentb7bb2d8589ddfb4f893c881edb6422bacdb6e53b (diff)
downloadgo-tangerine-06fe6310a3ecf0be324b082ca83c015abe47fa8f.tar
go-tangerine-06fe6310a3ecf0be324b082ca83c015abe47fa8f.tar.gz
go-tangerine-06fe6310a3ecf0be324b082ca83c015abe47fa8f.tar.bz2
go-tangerine-06fe6310a3ecf0be324b082ca83c015abe47fa8f.tar.lz
go-tangerine-06fe6310a3ecf0be324b082ca83c015abe47fa8f.tar.xz
go-tangerine-06fe6310a3ecf0be324b082ca83c015abe47fa8f.tar.zst
go-tangerine-06fe6310a3ecf0be324b082ca83c015abe47fa8f.zip
Merge pull request #2351 from leijurv/patch-4
core: various typos
Diffstat (limited to 'core/blockchain_test.go')
-rw-r--r--core/blockchain_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/blockchain_test.go b/core/blockchain_test.go
index 310751cca..aafd7cafe 100644
--- a/core/blockchain_test.go
+++ b/core/blockchain_test.go
@@ -578,7 +578,7 @@ func testBadHashes(t *testing.T, full bool) {
}
}
-// Tests that bad hashes are detected on boot, and the chan rolled back to a
+// Tests that bad hashes are detected on boot, and the chain rolled back to a
// good state prior to the bad hash.
func TestReorgBadHeaderHashes(t *testing.T) { testReorgBadHashes(t, false) }
func TestReorgBadBlockHashes(t *testing.T) { testReorgBadHashes(t, true) }
@@ -589,7 +589,7 @@ func testReorgBadHashes(t *testing.T, full bool) {
genesis, _ := WriteTestNetGenesisBlock(db)
bc := chm(genesis, db)
- // Create a chain, import and ban aferwards
+ // Create a chain, import and ban afterwards
headers := makeHeaderChainWithDiff(genesis, []int{1, 2, 3, 4}, 10)
blocks := makeBlockChainWithDiff(genesis, []int{1, 2, 3, 4}, 10)
@@ -889,7 +889,7 @@ func TestChainTxReorgs(t *testing.T) {
var pastDrop, freshDrop *types.Transaction
// Create three transactions that will be added in the forked chain:
- // - pastAdd: transaction added before the reorganiztion is detected
+ // - pastAdd: transaction added before the reorganization is detected
// - freshAdd: transaction added at the exact block the reorg is detected
// - futureAdd: transaction added after the reorg has already finished
var pastAdd, freshAdd, futureAdd *types.Transaction
@@ -1086,7 +1086,7 @@ done:
// make sure no more events are fired
select {
case e := <-subs.Chan():
- t.Errorf("unexectped event fired: %v", e)
+ t.Errorf("unexpected event fired: %v", e)
case <-time.After(250 * time.Millisecond):
}