1. 13 2月, 2017 1 次提交
  2. 02 2月, 2017 1 次提交
    • J
      params: core, core/vm, miner: 64bit gas instructions (#3514) · 8b57c494
      Jeffrey Wilcke 提交于
      Reworked the EVM gas instructions to use 64bit integers rather than
      arbitrary size big ints. All gas operations, be it additions,
      multiplications or divisions, are checked and guarded against 64 bit
      integer overflows.
      
      In additon, most of the protocol paramaters in the params package have
      been converted to uint64 and are now constants rather than variables.
      
      * common/math: added overflow check ops
      * core: vmenv, env renamed to evm
      * eth, internal/ethapi, les: unmetered eth_call and cancel methods
      * core/vm: implemented big.Int pool for evm instructions
      * core/vm: unexported intPool methods & verification methods
      * core/vm: added memoryGasCost overflow check and test
      8b57c494
  3. 12 1月, 2017 1 次提交
  4. 07 1月, 2017 1 次提交
  5. 06 1月, 2017 1 次提交
    • F
      core/vm: move Log to core/types · 77310619
      Felix Lange 提交于
      This significantly reduces the dependency closure of ethclient, which no
      longer depends on core/vm as of this change.
      
      All uses of vm.Logs are replaced by []*types.Log. NewLog is gone too,
      the constructor simply returned a literal.
      77310619
  6. 05 1月, 2017 1 次提交
    • J
      core/vm: improved EVM run loop & instruction calling (#3378) · bbc4ea4a
      Jeffrey Wilcke 提交于
      The run loop, which previously contained custom opcode executes have been
      removed and has been simplified to a few checks.
      
      Each operation consists of 4 elements: execution function, gas cost function,
      stack validation function and memory size function. The execution function
      implements the operation's runtime behaviour, the gas cost function implements
      the operation gas costs function and greatly depends on the memory and stack,
      the stack validation function validates the stack and makes sure that enough
      items can be popped off and pushed on and the memory size function calculates
      the memory required for the operation and returns it.
      
      This commit also allows the EVM to go unmetered. This is helpful for offline
      operations such as contract calls.
      bbc4ea4a
  7. 06 12月, 2016 1 次提交
    • J
      core, core/vm: implemented a generic environment (#3348) · 3fc7c978
      Jeffrey Wilcke 提交于
      Environment is now a struct (not an interface). This
      reduces a lot of tech-debt throughout the codebase where a virtual
      machine environment had to be implemented in order to test or run it.
      
      The new environment is suitable to be used en the json tests, core
      consensus and light client.
      3fc7c978
  8. 25 11月, 2016 1 次提交
  9. 14 11月, 2016 1 次提交
  10. 13 11月, 2016 3 次提交
  11. 06 10月, 2016 2 次提交
    • F
      tests: update test files from github.com/ethereum/tests @ 45bc1d21d3c1 · 1b7b2ba2
      Felix Lange 提交于
      Two new tests are skipped because they're buggy. Making some newer
      random state tests work required implementing the 'compressed return
      value encoding'.
      1b7b2ba2
    • F
      core/state: implement reverts by journaling all changes · 1f1ea18b
      Felix Lange 提交于
      This commit replaces the deep-copy based state revert mechanism with a
      linear complexity journal. This commit also hides several internal
      StateDB methods to limit the number of ways in which calling code can
      use the journal incorrectly.
      
      As usual consultation and bug fixes to the initial implementation were
      provided by @karalabe, @obscuren and @Arachnid. Thank you!
      1f1ea18b
  12. 26 9月, 2016 1 次提交
  13. 15 4月, 2016 1 次提交
  14. 01 4月, 2016 1 次提交
    • J
      core: added basic chain configuration · f0cbebb1
      Jeffrey Wilcke 提交于
      Added chain configuration options and write out during genesis database
      insertion. If no "config" was found, nothing is written to the database.
      
      Configurations are written on a per genesis base. This means
      that any chain (which is identified by it's genesis hash) can have their
      own chain settings.
      f0cbebb1
  15. 24 3月, 2016 1 次提交
  16. 18 2月, 2016 2 次提交
  17. 17 10月, 2015 1 次提交
    • F
      core, core/state: move gas tracking out of core/state · de8d5aaa
      Felix Lange 提交于
      The amount of gas available for tx execution was tracked in the
      StateObject representing the coinbase account. This commit makes the gas
      counter a separate type in package core, which avoids unintended
      consequences of intertwining the counter with state logic.
      de8d5aaa
  18. 16 10月, 2015 1 次提交
  19. 04 10月, 2015 1 次提交
    • J
      cmd/evm, core/vm, test: refactored VM and core · 361082ec
      Jeffrey Wilcke 提交于
      * Moved `vm.Transfer` to `core` package and changed execution to call
      `env.Transfer` instead of `core.Transfer` directly.
      * core/vm: byte code VM moved to jump table instead of switch
      * Moved `vm.Transfer` to `core` package and changed execution to call
        `env.Transfer` instead of `core.Transfer` directly.
      * Byte code VM now shares the same code as the JITVM
      * Renamed Context to Contract
      * Changed initialiser of state transition & unexported methods
      * Removed the Execution object and refactor `Call`, `CallCode` &
        `Create` in to their own functions instead of being methods.
      * Removed the hard dep on the state for the VM. The VM now
        depends on a Database interface returned by the environment. In the
        process the core now depends less on the statedb by usage of the env
      * Moved `Log` from package `core/state` to package `core/vm`.
      361082ec
  20. 23 9月, 2015 1 次提交
  21. 21 9月, 2015 1 次提交
  22. 18 9月, 2015 1 次提交
  23. 12 8月, 2015 1 次提交
  24. 07 8月, 2015 1 次提交
  25. 24 7月, 2015 1 次提交
  26. 23 7月, 2015 1 次提交
  27. 07 7月, 2015 2 次提交
  28. 04 7月, 2015 1 次提交
    • J
      core, miner, tests: renamed state methods · ab16ce70
      Jeffrey Wilcke 提交于
      * Update => SyncIntermediate
      * Added SyncObjects
      
      SyncIntermediate only updates whatever has changed, but, as a side
      effect, requires much more disk space.
      
      SyncObjects will only sync whatever is required for a block and will not
      save intermediate state to disk. As drawback this requires more time
      when more txs come in.
      ab16ce70
  29. 21 6月, 2015 1 次提交
  30. 19 6月, 2015 6 次提交