good morning!!!!

Skip to content
Snippets Groups Projects
  1. Apr 14, 2021
    • Gary Rong's avatar
      core, eth: faster snapshot generation (#22504) · 7088f1e8
      Gary Rong authored
      
      * eth/protocols: persist received state segments
      
      * core: initial implementation
      
      * core/state/snapshot: add tests
      
      * core, eth: updates
      
      * eth/protocols/snapshot: count flat state size
      
      * core/state: add metrics
      
      * core/state/snapshot: skip unnecessary deletion
      
      * core/state/snapshot: rename
      
      * core/state/snapshot: use the global batch
      
      * core/state/snapshot: add logs and fix wiping
      
      * core/state/snapshot: fix
      
      * core/state/snapshot: save generation progress even if the batch is empty
      
      * core/state/snapshot: fixes
      
      * core/state/snapshot: fix initial account range length
      
      * core/state/snapshot: fix initial account range
      
      * eth/protocols/snap: store flat states during the healing
      
      * eth/protocols/snap: print logs
      
      * core/state/snapshot: refactor (#4)
      
      * core/state/snapshot: refactor
      
      * core/state/snapshot: tiny fix and polish
      
      Co-authored-by: default avatarrjl493456442 <garyrong0905@gmail.com>
      
      * core, eth: fixes
      
      * core, eth: fix healing writer
      
      * core, trie, eth: fix paths
      
      * eth/protocols/snap: fix encoding
      
      * eth, core: add debug log
      
      * core/state/generate: release iterator asap (#5)
      
      core/state/snapshot: less copy
      
      core/state/snapshot: revert split loop
      
      core/state/snapshot: handle storage becoming empty, improve test robustness
      
      core/state: test modified codehash
      
      core/state/snapshot: polish
      
      * core/state/snapshot: optimize stats counter
      
      * core, eth: add metric
      
      * core/state/snapshot: update comments
      
      * core/state/snapshot: improve tests
      
      * core/state/snapshot: replace secure trie with standard trie
      
      * core/state/snapshot: wrap return as the struct
      
      * core/state/snapshot: skip wiping correct states
      
      * core/state/snapshot: updates
      
      * core/state/snapshot: fixes
      
      * core/state/snapshot: fix panic due to reference flaw in closure
      
      * core/state/snapshot: fix errors in state generation logic + fix log output
      
      * core/state/snapshot: remove an error case
      
      * core/state/snapshot: fix condition-check for exhausted snap state
      
      * core/state/snapshot: use stackTrie for small tries
      
      * core/state/snapshot: don't resolve small storage tries in vain
      
      * core/state/snapshot: properly clean up storage of deleted accounts
      
      * core/state/snapshot: avoid RLP-encoding in some cases + minor nitpicks
      
      * core/state/snapshot: fix error (+testcase)
      
      * core/state/snapshot: clean up tests a bit
      
      * core/state/snapshot: work in progress on better tests
      
      * core/state/snapshot: polish code
      
      * core/state/snapshot: fix trie iteration abortion trigger
      
      * core/state/snapshot: fixes flaws
      
      * core/state/snapshot: remove panic
      
      * core/state/snapshot: fix abort
      
      * core/state/snapshot: more tests (plus failing testcase)
      
      * core/state/snapshot: more testcases + fix for failing test
      
      * core/state/snapshot: testcase for malformed data
      
      * core/state/snapshot: some test nitpicks
      
      * core/state/snapshot: improvements to logging
      
      * core/state/snapshot: testcase to demo error in abortion
      
      * core/state/snapshot: fix abortion
      
      * cmd/geth: make verify-state report the root
      
      * trie: fix failing test
      
      * core/state/snapshot: add timer metrics
      
      * core/state/snapshot: fix metrics
      
      * core/state/snapshot: udpate tests
      
      * eth/protocols/snap: write snapshot account even if code or state is needed
      
      * core/state/snapshot: fix diskmore check
      
      * core/state/snapshot: review fixes
      
      * core/state/snapshot: improve error message
      
      * cmd/geth: rename 'error' to 'err' in logs
      
      * core/state/snapshot: fix some review concerns
      
      * core/state/snapshot, eth/protocols/snap: clear snapshot marker when starting/resuming snap sync
      
      * core: add error log
      
      * core/state/snapshot: use proper timers for metrics collection
      
      * core/state/snapshot: address some review concerns
      
      * eth/protocols/snap: improved log message
      
      * eth/protocols/snap: fix heal logs to condense infos
      
      * core/state/snapshot: wait for generator termination before restarting
      
      * core/state/snapshot: revert timers to counters to track total time
      
      Co-authored-by: default avatarMartin Holst Swende <martin@swende.se>
      Co-authored-by: default avatarPéter Szilágyi <peterke@gmail.com>
      7088f1e8
    • xD AKA Rapper King Of cn background diablo & revelations's avatar
  2. Apr 09, 2021
  3. Apr 07, 2021
    • Péter Szilágyi's avatar
    • Marius van der Wijden's avatar
      core, eth, internal/ethapi: create access list RPC API (#22550) · 9d10856e
      Marius van der Wijden authored
      
      * core/vm: implement AccessListTracer
      
      * eth: implement debug.createAccessList
      
      * core/vm: fixed nil panics in accessListTracer
      
      * eth: better error messages for createAccessList
      
      * eth: some fixes on CreateAccessList
      
      * eth: allow for provided accesslists
      
      * eth: pass accesslist by value
      
      * eth: remove created acocunt from accesslist
      
      * core/vm: simplify access list tracer
      
      * core/vm: unexport accessListTracer
      
      * eth: return best guess if al iteration times out
      
      * eth: return best guess if al iteration times out
      
      * core: docstring, unexport methods
      
      * eth: typo
      
      * internal/ethapi: move createAccessList to eth package
      
      * internal/ethapi: remove reexec from createAccessList
      
      * internal/ethapi: break if al is equal to last run, not if gas is equal
      
      * internal/web3ext: fixed arguments
      
      * core/types: fixed equality check for accesslist
      
      * core/types: no hardcoded vals
      
      * core, internal: simplify access list generation, make it precise
      
      * core/vm: fix typo
      
      Co-authored-by: default avatarMartin Holst Swende <martin@swende.se>
      Co-authored-by: default avatarPéter Szilágyi <peterke@gmail.com>
      9d10856e
    • Gary Rong's avatar
      eth, les: fix tracers (#22473) · a600dab7
      Gary Rong authored
      * eth, les: fix tracer
      
      * eth: isolate live trie database in tracer
      
      * eth: fix nil
      
      * eth: fix
      
      * eth, les: add checkLive param
      
      * eth/tracer: fix
      a600dab7
  4. Apr 06, 2021
  5. Mar 31, 2021
  6. Mar 29, 2021
  7. Mar 26, 2021
  8. Mar 25, 2021
  9. Mar 24, 2021
  10. Mar 22, 2021
    • Gary Rong's avatar
      all: add read-only option to database (#22407) · 0c70b83e
      Gary Rong authored
      * all: add read-only option to database
      
      * all: fixes tests
      
      * cmd/geth: migrate flags
      
      * cmd/geth: fix the compact
      
      * cmd/geth: fix the format
      
      * cmd/geth: fix log
      
      * cmd: add chain-readonly
      
      * core: add readonly notion to freezer
      
      * core/rawdb: add log
      
      * core/rawdb: fix freezer close
      
      * cmd: fix
      
      * cmd, core: construct db
      
      * core: update tests
      0c70b83e
  11. Mar 19, 2021
  12. Mar 17, 2021
  13. Mar 15, 2021
  14. Mar 14, 2021
  15. Mar 02, 2021
  16. Feb 26, 2021
  17. 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>
      bbfb1e40
    • Gary Rong's avatar
      cmd, eth, les: enable serving light clients when non-synced (#22250) · 378e961d
      Gary Rong authored
      This PR adds a more CLI flag, so that the les-server can serve light clients even the local node is not synced yet.
      
      This functionality is needed in some testing environments(e.g. hive). After launching the les server, no more blocks will be imported so the node is always marked as "non-synced".
      378e961d
    • Péter Szilágyi's avatar
  18. Feb 23, 2021
  19. Feb 18, 2021
    • Martin Holst Swende's avatar
      eth: implement eth66 (#22241) · 6ec15610
      Martin Holst Swende authored
      * eth/protocols/eth: split up the eth protocol handlers
      
      * eth/protocols/eth: define eth-66 protocol messages
      
      * eth/protocols/eth: poc implement getblockheaders on eth/66
      
      * eth/protocols/eth: implement remaining eth-66 handlers
      
      * eth/protocols: define handler map for eth 66
      
      * eth/downloader: use protocol constants from eth package
      
      * eth/protocols/eth: add ETH66 capability
      
      * eth/downloader: tests for eth66
      
      * eth/downloader: fix error in tests
      
      * eth/protocols/eth: use eth66 for outgoing requests
      
      * eth/protocols/eth: remove unused error type
      
      * eth/protocols/eth: define protocol length
      
      * eth/protocols/eth: fix pooled tx over eth66
      
      * protocols/eth/handlers: revert behavioural change which caused tests to fail
      
      * eth/downloader: fix failing test
      
      * eth/protocols/eth: add testcases + fix flaw with header requests
      
      * eth/protocols: change comments
      
      * eth/protocols/eth: review fixes + fixed flaw in RequestOneHeader
      
      * eth/protocols: documentation
      
      * eth/protocols/eth: review concerns about types
      6ec15610
  20. Feb 17, 2021
  21. Feb 16, 2021
  22. Feb 10, 2021
  23. Feb 08, 2021
    • Gary Rong's avatar
      all: bloom-filter based pruning mechanism (#21724) · f566dd30
      Gary Rong authored
      
      * cmd, core, tests: initial state pruner
      
      core: fix db inspector
      
      cmd/geth: add verify-state
      
      cmd/geth: add verification tool
      
      core/rawdb: implement flatdb
      
      cmd, core: fix rebase
      
      core/state: use new contract code layout
      
      core/state/pruner: avoid deleting genesis state
      
      cmd/geth: add helper function
      
      core, cmd: fix extract genesis
      
      core: minor fixes
      
      contracts: remove useless
      
      core/state/snapshot: plugin stacktrie
      
      core: polish
      
      core/state/snapshot: iterate storage concurrently
      
      core/state/snapshot: fix iteration
      
      core: add comments
      
      core/state/snapshot: polish code
      
      core/state: polish
      
      core/state/snapshot: rebase
      
      core/rawdb: add comments
      
      core/rawdb: fix tests
      
      core/rawdb: improve tests
      
      core/state/snapshot: fix concurrent iteration
      
      core/state: run pruning during the recovery
      
      core, trie: implement martin's idea
      
      core, eth: delete flatdb and polish pruner
      
      trie: fix import
      
      core/state/pruner: add log
      
      core/state/pruner: fix issues
      
      core/state/pruner: don't read back
      
      core/state/pruner: fix contract code write
      
      core/state/pruner: check root node presence
      
      cmd, core: polish log
      
      core/state: use HEAD-127 as the target
      
      core/state/snapshot: improve tests
      
      cmd/geth: fix verification tool
      
      cmd/geth: use HEAD as the verification default target
      
      all: replace the bloomfilter with martin's fork
      
      cmd, core: polish code
      
      core, cmd: forcibly delete state root
      
      core/state/pruner: add hash64
      
      core/state/pruner: fix blacklist
      
      core/state: remove blacklist
      
      cmd, core: delete trie clean cache before pruning
      
      cmd, core: fix lint
      
      cmd, core: fix rebase
      
      core/state: fix the special case for clique networks
      
      core/state/snapshot: remove useless code
      
      core/state/pruner: capping the snapshot after pruning
      
      cmd, core, eth: fixes
      
      core/rawdb: update db inspector
      
      cmd/geth: polish code
      
      core/state/pruner: fsync bloom filter
      
      cmd, core: print warning log
      
      core/state/pruner: adjust the parameters for bloom filter
      
      cmd, core: create the bloom filter by size
      
      core: polish
      
      core/state/pruner: sanitize invalid bloomfilter size
      
      cmd: address comments
      
      cmd/geth: address comments
      
      cmd/geth: address comment
      
      core/state/pruner: address comments
      
      core/state/pruner: rename homedir to datadir
      
      cmd, core: address comments
      
      core/state/pruner: address comment
      
      core/state: address comments
      
      core, cmd, tests: address comments
      
      core: address comments
      
      core/state/pruner: release the iterator after each commit
      
      core/state/pruner: improve pruner
      
      cmd, core: adjust bloom paramters
      
      core/state/pruner: fix lint
      
      core/state/pruner: fix tests
      
      core: fix rebase
      
      core/state/pruner: remove atomic rename
      
      core/state/pruner: address comments
      
      all: run go mod tidy
      
      core/state/pruner: avoid false-positive for the middle state roots
      
      core/state/pruner: add checks for middle roots
      
      cmd/geth: replace crit with error
      
      * core/state/pruner: fix lint
      
      * core: drop legacy bloom filter
      
      * core/state/snapshot: improve pruner
      
      * core/state/snapshot: polish concurrent logs to report ETA vs. hashes
      
      * core/state/pruner: add progress report for pruning and compaction too
      
      * core: fix snapshot test API
      
      * core/state: fix some pruning logs
      
      * core/state/pruner: support recovering from bloom flush fail
      
      Co-authored-by: default avatarPéter Szilágyi <peterke@gmail.com>
      f566dd30
  24. Feb 05, 2021
  25. Feb 02, 2021
  26. Feb 01, 2021
  27. Jan 28, 2021
    • Sina Mahmoodi's avatar
      cmd,core,eth,params,tests: define yolov3 + enable EIP-2565 (#22213) · eb21c652
      Sina Mahmoodi authored
      Removes the yolov2 definition, adds yolov3, including EIP-2565. This PR also disables some of the erroneously generated blockchain and statetests, and adds the new genesis hash + alloc for yolov3. 
      This PR disables the CLI switches for yolo, since it's not complete until we merge support for 2930. 
      eb21c652
Loading