aboutsummaryrefslogtreecommitdiffstats
path: root/core/block_validator.go
diff options
context:
space:
mode:
authorLeif Jurvetson <leijurv@gmail.com>2016-03-16 02:08:18 +0800
committerLeif Jurvetson <leijurv@gmail.com>2016-03-16 02:08:18 +0800
commitb7bb2d8589ddfb4f893c881edb6422bacdb6e53b (patch)
tree39ab548f4995eab28d26274d0d40cfd7be036915 /core/block_validator.go
parente189fb839c688b418b43ad6533111c246c109a93 (diff)
downloaddexon-b7bb2d8589ddfb4f893c881edb6422bacdb6e53b.tar
dexon-b7bb2d8589ddfb4f893c881edb6422bacdb6e53b.tar.gz
dexon-b7bb2d8589ddfb4f893c881edb6422bacdb6e53b.tar.bz2
dexon-b7bb2d8589ddfb4f893c881edb6422bacdb6e53b.tar.lz
dexon-b7bb2d8589ddfb4f893c881edb6422bacdb6e53b.tar.xz
dexon-b7bb2d8589ddfb4f893c881edb6422bacdb6e53b.tar.zst
dexon-b7bb2d8589ddfb4f893c881edb6422bacdb6e53b.zip
core: various typos
Diffstat (limited to 'core/block_validator.go')
-rw-r--r--core/block_validator.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/block_validator.go b/core/block_validator.go
index 73c33d8dd..4d710ae3f 100644
--- a/core/block_validator.go
+++ b/core/block_validator.go
@@ -58,7 +58,7 @@ func NewBlockValidator(blockchain *BlockChain, pow pow.PoW) *BlockValidator {
// the block header's transaction and uncle roots.
//
// ValidateBlock does not validate the header's pow. The pow work validated
-// seperately so we can process them in paralel.
+// separately so we can process them in parallel.
//
// ValidateBlock also validates and makes sure that any previous state (or present)
// state that might or might not be present is checked to make sure that fast
@@ -106,7 +106,7 @@ func (v *BlockValidator) ValidateBlock(block *types.Block) error {
// ValidateState validates the various changes that happen after a state
// transition, such as amount of used gas, the receipt roots and the state root
-// itself. ValidateState returns a database batch if the validation was a succes
+// itself. ValidateState returns a database batch if the validation was a success
// otherwise nil and an error is returned.
func (v *BlockValidator) ValidateState(block, parent *types.Block, statedb *state.StateDB, receipts types.Receipts, usedGas *big.Int) (err error) {
header := block.Header()
@@ -297,7 +297,7 @@ func calcDifficultyHomestead(time, parentTime uint64, parentNumber, parentDiff *
periodCount := new(big.Int).Add(parentNumber, common.Big1)
periodCount.Div(periodCount, ExpDiffPeriod)
- // the exponential factor, commonly refered to as "the bomb"
+ // the exponential factor, commonly referred to as "the bomb"
// diff = diff + 2^(periodCount - 2)
if periodCount.Cmp(common.Big1) > 0 {
y.Sub(periodCount, common.Big2)