diff options
author | Felix Lange <fjl@twurst.com> | 2016-03-16 02:39:36 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-03-16 02:39:36 +0800 |
commit | 06fe6310a3ecf0be324b082ca83c015abe47fa8f (patch) | |
tree | a78847bed59a5fa7f75ff9a1705b0a6bb20d13d7 /core/vm/vm.go | |
parent | 066d30152088188cec782bb62844550332d6b142 (diff) | |
parent | b7bb2d8589ddfb4f893c881edb6422bacdb6e53b (diff) | |
download | dexon-06fe6310a3ecf0be324b082ca83c015abe47fa8f.tar dexon-06fe6310a3ecf0be324b082ca83c015abe47fa8f.tar.gz dexon-06fe6310a3ecf0be324b082ca83c015abe47fa8f.tar.bz2 dexon-06fe6310a3ecf0be324b082ca83c015abe47fa8f.tar.lz dexon-06fe6310a3ecf0be324b082ca83c015abe47fa8f.tar.xz dexon-06fe6310a3ecf0be324b082ca83c015abe47fa8f.tar.zst dexon-06fe6310a3ecf0be324b082ca83c015abe47fa8f.zip |
Merge pull request #2351 from leijurv/patch-4
core: various typos
Diffstat (limited to 'core/vm/vm.go')
-rw-r--r-- | core/vm/vm.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/vm/vm.go b/core/vm/vm.go index d45d136b5..95d27c64c 100644 --- a/core/vm/vm.go +++ b/core/vm/vm.go @@ -63,7 +63,7 @@ func (self *Vm) Run(contract *Contract, input []byte) (ret []byte, err error) { ) if EnableJit { // If the JIT is enabled check the status of the JIT program, - // if it doesn't exist compile a new program in a seperate + // if it doesn't exist compile a new program in a separate // goroutine or wait for compilation to finish if the JIT is // forced. switch GetProgramStatus(codehash) { @@ -80,7 +80,7 @@ func (self *Vm) Run(contract *Contract, input []byte) (ret []byte, err error) { glog.V(logger.Info).Infoln("error compiling program", err) } else { // create and compile the program. Compilation - // is done in a seperate goroutine + // is done in a separate goroutine program = NewProgram(contract.Code) go func() { err := CompileProgram(program) @@ -103,7 +103,7 @@ func (self *Vm) Run(contract *Contract, input []byte) (ret []byte, err error) { stack = newstack() // local stack statedb = self.env.Db() // current state // For optimisation reason we're using uint64 as the program counter. - // It's theoretically possible to go above 2^64. The YP defines the PC to be uint256. Pratically much less so feasible. + // It's theoretically possible to go above 2^64. The YP defines the PC to be uint256. Practically much less so feasible. pc = uint64(0) // program counter // jump evaluates and checks whether the given jump destination is a valid one @@ -271,7 +271,7 @@ func calculateGasAndSize(env Environment, contract *Contract, caller ContractRef // This checks for 3 scenario's and calculates gas accordingly // 1. From a zero-value address to a non-zero value (NEW VALUE) // 2. From a non-zero value address to a zero-value address (DELETE) - // 3. From a nen-zero to a non-zero (CHANGE) + // 3. From a non-zero to a non-zero (CHANGE) if common.EmptyHash(val) && !common.EmptyHash(common.BigToHash(y)) { // 0 => non 0 g = params.SstoreSetGas |