good morning!!!!

Skip to content
Snippets Groups Projects
  1. Feb 25, 2021
    • lightclient's avatar
      all: add support for EIP-2718, EIP-2930 transactions (#21502) · bbfb1e40
      lightclient authored
      
      This adds support for EIP-2718 typed transactions as well as EIP-2930
      access list transactions (tx type 1). These EIPs are scheduled for the
      Berlin fork.
      
      There very few changes to existing APIs in core/types, and several new APIs
      to deal with access list transactions. In particular, there are two new
      constructor functions for transactions: types.NewTx and types.SignNewTx.
      Since the canonical encoding of typed transactions is not RLP-compatible,
      Transaction now has new methods for encoding and decoding: MarshalBinary
      and UnmarshalBinary.
      
      The existing EIP-155 signer does not support the new transaction types.
      All code dealing with transaction signatures should be updated to use the
      newer EIP-2930 signer. To make this easier for future updates, we have
      added new constructor functions for types.Signer: types.LatestSigner and
      types.LatestSignerForChainID. 
      
      This change also adds support for the YoloV3 testnet.
      
      Co-authored-by: default avatarMartin Holst Swende <martin@swende.se>
      Co-authored-by: default avatarFelix Lange <fjl@twurst.com>
      Co-authored-by: default avatarRyan Schneider <ryanleeschneider@gmail.com>
      Unverified
      bbfb1e40
  2. Feb 02, 2021
  3. Jan 28, 2021
  4. Nov 25, 2020
  5. Nov 13, 2020
  6. Oct 23, 2020
    • Martin Holst Swende's avatar
      all: implement EIP-2929 (gas cost increases for state access opcodes) + yolo-v2 (#21509) · 6487c002
      Martin Holst Swende authored
      * core/vm, core/state: implement EIP-2929 + YOLOv2
      
      * core/state, core/vm: fix some review concerns
      
      * core/state, core/vm: address review concerns
      
      * core/vm: address review concerns
      
      * core/vm: better documentation
      
      * core/vm: unify sload cost as fully dynamic
      
      * core/vm: fix typo
      
      * core/vm/runtime: fix compilation flaw
      
      * core/vm/runtime: fix renaming-err leftovers
      
      * core/vm: renaming
      
      * params/config: use correct yolov2 chainid for config
      
      * core, params: use a proper new genesis for yolov2
      
      * core/state/tests: golinter nitpicks
      Unverified
      6487c002
  7. Aug 21, 2020
  8. Aug 19, 2020
  9. Jul 16, 2020
    • Martin Holst Swende's avatar
      core/vm: less allocations for various call variants (#21222) · 29569375
      Martin Holst Swende authored
      
      * core/vm/runtime/tests: add more benchmarks
      
      * core/vm: initial work on improving alloc count for calls to precompiles
      
      name                                  old time/op    new time/op    delta
      SimpleLoop/identity-precompile-10M-6     117ms ±75%      43ms ± 1%  -63.09%  (p=0.008 n=5+5)
      SimpleLoop/loop-10M-6                   79.6ms ± 4%    70.5ms ± 1%  -11.42%  (p=0.008 n=5+5)
      
      name                                  old alloc/op   new alloc/op   delta
      SimpleLoop/identity-precompile-10M-6    24.4MB ± 0%     4.9MB ± 0%  -79.94%  (p=0.008 n=5+5)
      SimpleLoop/loop-10M-6                   13.2kB ± 0%    13.2kB ± 0%     ~     (p=0.357 n=5+5)
      
      name                                  old allocs/op  new allocs/op  delta
      SimpleLoop/identity-precompile-10M-6      382k ± 0%      153k ± 0%  -59.99%  (p=0.000 n=5+4)
      SimpleLoop/loop-10M-6                     40.0 ± 0%      40.0 ± 0%     ~     (all equal)
      
      * core/vm: don't allocate big.int for touch
      
      name                                  old time/op    new time/op    delta
      SimpleLoop/identity-precompile-10M-6    43.3ms ± 1%    42.4ms ± 7%     ~     (p=0.151 n=5+5)
      SimpleLoop/loop-10M-6                   70.5ms ± 1%    76.7ms ± 1%   +8.67%  (p=0.008 n=5+5)
      
      name                                  old alloc/op   new alloc/op   delta
      SimpleLoop/identity-precompile-10M-6    4.90MB ± 0%    2.46MB ± 0%  -49.83%  (p=0.008 n=5+5)
      SimpleLoop/loop-10M-6                   13.2kB ± 0%    13.2kB ± 1%     ~     (p=0.571 n=5+5)
      
      name                                  old allocs/op  new allocs/op  delta
      SimpleLoop/identity-precompile-10M-6      153k ± 0%       76k ± 0%  -49.98%  (p=0.029 n=4+4)
      SimpleLoop/loop-10M-6                     40.0 ± 0%      40.0 ± 0%     ~     (all equal)
      
      * core/vm: reduce allocs in staticcall
      
      name                                  old time/op    new time/op    delta
      SimpleLoop/identity-precompile-10M-6    42.4ms ± 7%    37.5ms ± 6%  -11.68%  (p=0.008 n=5+5)
      SimpleLoop/loop-10M-6                   76.7ms ± 1%    69.1ms ± 1%   -9.82%  (p=0.008 n=5+5)
      
      name                                  old alloc/op   new alloc/op   delta
      SimpleLoop/identity-precompile-10M-6    2.46MB ± 0%    0.02MB ± 0%  -99.35%  (p=0.008 n=5+5)
      SimpleLoop/loop-10M-6                   13.2kB ± 1%    13.2kB ± 0%     ~     (p=0.143 n=5+5)
      
      name                                  old allocs/op  new allocs/op  delta
      SimpleLoop/identity-precompile-10M-6     76.4k ± 0%      0.1k ± 0%     ~     (p=0.079 n=4+5)
      SimpleLoop/loop-10M-6                     40.0 ± 0%      40.0 ± 0%     ~     (all equal)
      
      * trie: better use of hasher keccakState
      
      * core/state/statedb: reduce allocations in getDeletedStateObject
      
      * core/vm: reduce allocations in all call derivates
      
      * core/vm: reduce allocations in call variants
      
      - Make returnstack `uint32`
      - Use a `sync.Pool` of `stack`s
      
      * core/vm: fix tests
      
      * core/vm: goimports
      
      * core/vm: tracer fix + staticcall gas fix
      
      * core/vm: add back snapshot to staticcall
      
      * core/vm: review concerns + make returnstack pooled + enable returndata in traces
      
      * core/vm: fix some test tracer method signatures
      
      * core/vm: run gencodec, minor comment polish
      
      Co-authored-by: default avatarPéter Szilágyi <peterke@gmail.com>
      Unverified
      29569375
  10. Jul 14, 2020
  11. Jun 30, 2020
  12. May 04, 2020
  13. Apr 01, 2020
    • Paweł Bylica's avatar
      cmd/evm: Rework execution stats (#20792) · d56dc038
      Paweł Bylica authored
      - Dump stats also for --bench flag.
      - From memory stats only show number and size of allocations. This is what `test -bench` shows. I doubt others like number of GC runs are any useful, but can be added if requested.
      - Now the mem stats are for single execution in case of --bench.
      Unverified
      d56dc038
  14. Mar 03, 2020
  15. Feb 25, 2020
  16. Jan 27, 2020
  17. Dec 18, 2019
  18. Nov 26, 2019
  19. Nov 17, 2019
  20. Oct 28, 2019
  21. Sep 13, 2019
  22. Jun 25, 2019
  23. Jun 24, 2019
  24. May 08, 2019
  25. Mar 14, 2019
  26. Mar 06, 2019
  27. Jan 16, 2019
  28. Dec 10, 2018
  29. Nov 29, 2018
  30. Oct 23, 2018
  31. Oct 04, 2018
  32. Sep 20, 2018
  33. Sep 14, 2018
  34. Aug 01, 2018
  35. Jul 31, 2018
  36. May 09, 2018
  37. May 02, 2018
  38. Apr 10, 2018
    • Felix Lange's avatar
      common: delete StringToAddress, StringToHash (#16436) · c7ab3e55
      Felix Lange authored
      * common: delete StringToAddress, StringToHash
      
      These functions are confusing because they don't parse hex, but use the
      bytes of the string. This change removes them, replacing all uses of
      StringToAddress(s) by BytesToAddress([]byte(s)).
      
      * eth/filters: remove incorrect use of common.BytesToAddress
      c7ab3e55
  39. Apr 06, 2018
Loading