aboutsummaryrefslogtreecommitdiffstats
path: root/core/blockchain.go
diff options
context:
space:
mode:
authorHa ĐANG <dvietha@gmail.com>2018-07-30 19:10:48 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-07-30 19:10:48 +0800
commit2cffd4ff3c6643e374e34bccd8d68cb52d7d4c8b (patch)
tree886557e387bf8e7b7bef78bd693267d7ea455d2d /core/blockchain.go
parent7b1aa642201170627dd6f3d4d96701fdd068bf80 (diff)
downloaddexon-2cffd4ff3c6643e374e34bccd8d68cb52d7d4c8b.tar
dexon-2cffd4ff3c6643e374e34bccd8d68cb52d7d4c8b.tar.gz
dexon-2cffd4ff3c6643e374e34bccd8d68cb52d7d4c8b.tar.bz2
dexon-2cffd4ff3c6643e374e34bccd8d68cb52d7d4c8b.tar.lz
dexon-2cffd4ff3c6643e374e34bccd8d68cb52d7d4c8b.tar.xz
dexon-2cffd4ff3c6643e374e34bccd8d68cb52d7d4c8b.tar.zst
dexon-2cffd4ff3c6643e374e34bccd8d68cb52d7d4c8b.zip
core: fix some small typos on comment code (#17278)
Diffstat (limited to 'core/blockchain.go')
-rw-r--r--core/blockchain.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/blockchain.go b/core/blockchain.go
index 7b7e4e79a..62dc26125 100644
--- a/core/blockchain.go
+++ b/core/blockchain.go
@@ -1016,7 +1016,7 @@ func (bc *BlockChain) insertChain(chain types.Blocks) (int, []interface{}, []*ty
// Do a sanity check that the provided chain is actually ordered and linked
for i := 1; i < len(chain); i++ {
if chain[i].NumberU64() != chain[i-1].NumberU64()+1 || chain[i].ParentHash() != chain[i-1].Hash() {
- // Chain broke ancestry, log a messge (programming error) and skip insertion
+ // Chain broke ancestry, log a message (programming error) and skip insertion
log.Error("Non contiguous block insert", "number", chain[i].Number(), "hash", chain[i].Hash(),
"parent", chain[i].ParentHash(), "prevnumber", chain[i-1].Number(), "prevhash", chain[i-1].Hash())