aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLeif Jurvetson <leijurv@gmail.com>2016-03-16 00:12:03 +0800
committerLeif Jurvetson <leijurv@gmail.com>2016-03-16 00:12:03 +0800
commitc7727191ae8c22a4ce0932fa7f2c88715c6ff7d0 (patch)
tree65e54ed74a5421fc1598e9f196ee84e471bc6f1a /core
parentb8f4a48ada7197a7c197a9dbbf143c47a9a93ae9 (diff)
downloadgo-tangerine-c7727191ae8c22a4ce0932fa7f2c88715c6ff7d0.tar
go-tangerine-c7727191ae8c22a4ce0932fa7f2c88715c6ff7d0.tar.gz
go-tangerine-c7727191ae8c22a4ce0932fa7f2c88715c6ff7d0.tar.bz2
go-tangerine-c7727191ae8c22a4ce0932fa7f2c88715c6ff7d0.tar.lz
go-tangerine-c7727191ae8c22a4ce0932fa7f2c88715c6ff7d0.tar.xz
go-tangerine-c7727191ae8c22a4ce0932fa7f2c88715c6ff7d0.tar.zst
go-tangerine-c7727191ae8c22a4ce0932fa7f2c88715c6ff7d0.zip
core: fixed various typos
Diffstat (limited to 'core')
-rw-r--r--core/blockchain.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/blockchain.go b/core/blockchain.go
index 284c549e3..be04b2c67 100644
--- a/core/blockchain.go
+++ b/core/blockchain.go
@@ -99,7 +99,7 @@ type BlockChain struct {
futureBlocks *lru.Cache // future blocks are blocks added for later processing
quit chan struct{} // blockchain quit channel
- running int32 // running must be called automically
+ running int32 // running must be called atomically
// procInterrupt must be atomically called
procInterrupt int32 // interrupt signaler for block processing
wg sync.WaitGroup // chain processing wait group for shutting down
@@ -792,7 +792,7 @@ func (self *BlockChain) WriteBlock(block *types.Block) (status WriteStatus, err
glog.Fatalf("failed to write block total difficulty: %v", err)
}
if err := WriteBlock(self.chainDb, block); err != nil {
- glog.Fatalf("filed to write block contents: %v", err)
+ glog.Fatalf("failed to write block contents: %v", err)
}
self.futureBlocks.Remove(block.Hash())
@@ -1134,7 +1134,7 @@ func reportBlock(block *types.Block, err error) {
//
// The verify parameter can be used to fine tune whether nonce verification
// should be done or not. The reason behind the optional check is because some
-// of the header retrieval mechanisms already need to verfy nonces, as well as
+// of the header retrieval mechanisms already need to verify nonces, as well as
// because nonces can be verified sparsely, not needing to check each.
func (self *BlockChain) InsertHeaderChain(chain []*types.Header, checkFreq int) (int, error) {
// Make sure only one thread manipulates the chain at once