1. 29 6月, 2021 1 次提交
  2. 15 6月, 2021 1 次提交
  3. 02 6月, 2021 1 次提交
    • M
      core, eth, internal, les: RPC methods and fields for EIP 1559 (#22964) · 5cff9754
      Martin Holst Swende 提交于
      * internal/ethapi: add baseFee to RPCMarshalHeader
      
      * internal/ethapi: add FeeCap, Tip and correct GasPrice to EIP-1559 RPCTransaction results
      
      * core,eth,les,internal: add support for tip estimation in gas price oracle
      
      * internal/ethapi,eth/gasprice: don't suggest tip larger than fee cap
      
      * core/types,internal: use correct eip1559 terminology for json marshalling
      
      * eth, internal/ethapi: fix rebase problems
      
      * internal/ethapi: fix rpc name of basefee
      
      * internal/ethapi: address review concerns
      
      * core, eth, internal, les: simplify gasprice oracle (#25)
      
      * core, eth, internal, les: simplify gasprice oracle
      
      * eth/gasprice: fix typo
      
      * internal/ethapi: minor tweak in tx args
      
      * internal/ethapi: calculate basefee for pending block
      
      * internal/ethapi: fix panic
      
      * internal/ethapi, eth/tracers: simplify txargs ToMessage
      
      * internal/ethapi: remove unused param
      
      * core, eth, internal: fix regressions wrt effective gas price in the evm
      
      * eth/gasprice: drop weird debug println
      
      * internal/jsre/deps: hack in 1559 gas conversions into embedded web3
      
      * internal/jsre/deps: hack basFee to decimal conversion
      
      * internal/ethapi: init feecap and tipcap for legacy txs too
      
      * eth, graphql, internal, les: fix gas price suggestion on all combos
      
      * internal/jsre/deps: handle decimal tipcap and feecap
      
      * eth, internal: minor review fixes
      
      * graphql, internal: export max fee cap RPC endpoint
      
      * internal/ethapi: fix crash in transaction_args
      
      * internal/ethapi: minor refactor to make the code safer
      Co-authored-by: NRyan Schneider <ryanleeschneider@gmail.com>
      Co-authored-by: Nlightclient@protonmail.com <lightclient@protonmail.com>
      Co-authored-by: Ngary rong <garyrong0905@gmail.com>
      Co-authored-by: NPéter Szilágyi <peterke@gmail.com>
      5cff9754
  4. 28 5月, 2021 1 次提交
  5. 19 5月, 2021 1 次提交
    • P
      eth, p2p/msgrate: move peer QoS tracking to its own package and use it for snap (#22876) · 3e795881
      Péter Szilágyi 提交于
      This change extracts the peer QoS tracking logic from eth/downloader, moving
      it into the new package p2p/msgrate. The job of msgrate.Tracker is determining
      suitable timeout values and request sizes per peer.
      
      The snap sync scheduler now uses msgrate.Tracker instead of the hard-coded 15s
      timeout. This should make the sync work better on network links with high latency.
      3e795881
  6. 10 5月, 2021 2 次提交
  7. 04 5月, 2021 1 次提交
    • F
      cmd/utils: use eth DNS tree for snap discovery (#22808) · b8040a43
      Felix Lange 提交于
      This removes auto-configuration of the snap.*.ethdisco.net DNS discovery tree.
      Since measurements have shown that > 75% of nodes in all.*.ethdisco.net support
      snap, we have decided to retire the dedicated index for snap and just use the eth
      tree instead.
      
      The dial iterators of eth and snap now use the same DNS tree in the default configuration,
      so both iterators should use the same DNS discovery client instance. This ensures that
      the record cache and rate limit are shared. Records will not be requested multiple times.
      
      While testing the change, I noticed that duplicate DNS requests do happen even
      when the client instance is shared. This is because the two iterators request the tree
      root, link tree root, and first levels of the tree in lockstep. To avoid this problem, the
      change also adds a singleflight.Group instance in the client. When one iterator
      attempts to resolve an entry which is already being resolved, the singleflight object
      waits for the existing resolve call to finish and returns the entry to both places.
      b8040a43
  8. 30 4月, 2021 2 次提交
  9. 29 4月, 2021 3 次提交
  10. 28 4月, 2021 1 次提交
  11. 27 4月, 2021 1 次提交
    • P
      eth/protocols/snap: generate storage trie from full dirty snap data (#22668) · caea6c46
      Péter Szilágyi 提交于
      * eth/protocols/snap: generate storage trie from full dirty snap data
      
      * eth/protocols/snap: get rid of some more dead code
      
      * eth/protocols/snap: less frequent logs, also log during trie generation
      
      * eth/protocols/snap: implement dirty account range stack-hashing
      
      * eth/protocols/snap: don't loop on account trie generation
      
      * eth/protocols/snap: fix account format in trie
      
      * core, eth, ethdb: glue snap packets together, but not chunks
      
      * eth/protocols/snap: print completion log for snap phase
      
      * eth/protocols/snap: extended tests
      
      * eth/protocols/snap: make testcase pass
      
      * eth/protocols/snap: fix account stacktrie commit without defer
      
      * ethdb: fix key counts on reset
      
      * eth/protocols: fix typos
      
      * eth/protocols/snap: make better use of delivered data (#44)
      
      * eth/protocols/snap: make better use of delivered data
      
      * squashme
      
      * eth/protocols/snap: reduce chunking
      
      * squashme
      
      * eth/protocols/snap: reduce chunking further
      
      * eth/protocols/snap: break out hash range calculations
      
      * eth/protocols/snap: use sort.Search instead of looping
      
      * eth/protocols/snap: prevent crash on storage response with no keys
      
      * eth/protocols/snap: nitpicks all around
      
      * eth/protocols/snap: clear heal need on 1-chunk storage completion
      
      * eth/protocols/snap: fix range chunker, add tests
      Co-authored-by: NPéter Szilágyi <peterke@gmail.com>
      
      * trie: fix test API error
      
      * eth/protocols/snap: fix some further liter issues
      
      * eth/protocols/snap: fix accidental batch reuse
      Co-authored-by: NMartin Holst Swende <martin@swende.se>
      caea6c46
  12. 22 4月, 2021 1 次提交
  13. 16 4月, 2021 2 次提交
  14. 15 4月, 2021 1 次提交
    • G
      core, eth: faster snapshot generation (#22504) · 7088f1e8
      gary rong 提交于
      * 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: Nrjl493456442 <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: NMartin Holst Swende <martin@swende.se>
      Co-authored-by: NPéter Szilágyi <peterke@gmail.com>
      7088f1e8
  15. 09 4月, 2021 1 次提交
  16. 29 3月, 2021 1 次提交
  17. 27 3月, 2021 1 次提交
  18. 26 3月, 2021 2 次提交
  19. 24 3月, 2021 1 次提交
  20. 23 3月, 2021 1 次提交
    • G
      all: add read-only option to database (#22407) · 0c70b83e
      gary rong 提交于
      * 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
  21. 19 3月, 2021 1 次提交
  22. 17 3月, 2021 1 次提交
  23. 25 2月, 2021 1 次提交
  24. 19 2月, 2021 1 次提交
    • M
      eth: implement eth66 (#22241) · 6ec15610
      Martin Holst Swende 提交于
      * 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
  25. 17 2月, 2021 1 次提交
  26. 16 2月, 2021 1 次提交
  27. 02 2月, 2021 2 次提交
  28. 25 1月, 2021 1 次提交
    • M
      eth/protocols/snap: snap sync testing (#22179) · 797b0812
      Martin Holst Swende 提交于
      * eth/protocols/snap: make timeout configurable
      
      * eth/protocols/snap: snap sync testing
      
      * eth/protocols/snap: test to trigger panic
      
      * eth/protocols/snap: fix race condition on timeouts
      
      * eth/protocols/snap: return error on cancelled sync
      
      * squashme: updates + test causing panic + properly serve accounts in order
      
      * eth/protocols/snap: revert failing storage response
      
      * eth/protocols/snap: revert on bad responses (storage, code)
      
      * eth/protocols/snap: fix account handling stall
      
      * eth/protocols/snap: fix remaining revertal-issues
      
      * eth/protocols/snap: timeouthandler for bytecode requests
      
      * eth/protocols/snap: debugging + fix log message
      
      * eth/protocols/snap: fix misspelliings in docs
      
      * eth/protocols/snap: fix race in bytecode handling
      
      * eth/protocols/snap: undo deduplication of storage roots
      
      * synctests: refactor + minify panic testcase
      
      * eth/protocols/snap: minor polishes
      
      * eth: minor polishes to make logs more useful
      
      * eth/protocols/snap: remove excessive logs from the test runs
      
      * eth/protocols/snap: stress tests with concurrency
      
      * eth/protocols/snap: further fixes to test cancel channel handling
      
      * eth/protocols/snap: extend test timeouts on CI
      Co-authored-by: NPéter Szilágyi <peterke@gmail.com>
      797b0812
  29. 17 1月, 2021 1 次提交
  30. 08 1月, 2021 1 次提交
  31. 07 1月, 2021 1 次提交
  32. 28 12月, 2020 1 次提交
  33. 14 12月, 2020 1 次提交