1. 14 2月, 2017 1 次提交
    • J
      params: core, core/vm, miner: 64bit gas instructions · c12f4df9
      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
      c12f4df9
  2. 13 2月, 2017 1 次提交
  3. 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
  4. 27 1月, 2017 1 次提交
  5. 26 1月, 2017 2 次提交
  6. 17 1月, 2017 2 次提交
  7. 16 1月, 2017 1 次提交
  8. 09 1月, 2017 1 次提交
  9. 07 1月, 2017 1 次提交
  10. 06 1月, 2017 3 次提交
  11. 05 1月, 2017 2 次提交
    • F
      e171bf74
    • 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
  12. 04 1月, 2017 1 次提交
  13. 20 12月, 2016 1 次提交
  14. 11 12月, 2016 1 次提交
    • B
      core: bugfix state change race condition in txpool (#3412) · 4e36b1e3
      bas-vk 提交于
      The transaction pool keeps track of the current nonce in its local pendingState. When a
      new block comes in the pendingState is reset. During the reset it fetches multiple times
      the current state through the use of the currentState callback. When a second block comes
      in during the reset its possible that the state changes during the reset. If that block
      holds transactions that are currently in the pool the local pendingState that is used to
      determine nonces can get out of sync.
      4e36b1e3
  15. 10 12月, 2016 4 次提交
  16. 08 12月, 2016 2 次提交
  17. 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
  18. 25 11月, 2016 2 次提交
  19. 16 11月, 2016 1 次提交
  20. 14 11月, 2016 3 次提交
  21. 13 11月, 2016 3 次提交
  22. 11 11月, 2016 1 次提交
  23. 09 11月, 2016 4 次提交