1. 08 Dec, 2022 1 commit
    • rjl493456442's avatar
      eth, cmd: remove syncTarget from eth config (#26330) · 890e2efc
      rjl493456442 authored
      --syncTarget is a feature for development purpose in post-merge world. Previously
      it's added into eth.Config. But it turns out that's a stupid idea.
      
      - syncTarget is a block object, which is hard to be put in config file(large)
      - syncTarget is just a dev feature, doesn't make too much sense to add it in config file
      
      So I remove it from the eth config object. And it also fixes the #26328
      890e2efc
  2. 07 Dec, 2022 4 commits
    • zhiqiangxu's avatar
      p2p/discover: improve nodesByDistance.push code (#26019) · a9dfac03
      zhiqiangxu authored
      This improves readability of function 'push'.
      
      sort.Search(N, ...) will at most return N when no match, so ix should be compared
      with N. The previous version would compare ix with N+1 in case an additional item
      was appended. No bug resulted from this comparison, but it's not easy to understand
      why.
      Co-authored-by: 's avatarFelix Lange <fjl@twurst.com>
      a9dfac03
    • Sina Mahmoodi's avatar
      core: fix state flushing for catalyst mode (#26319) · 68912887
      Sina Mahmoodi authored
      The gcproc field tracks the amount of time spent processing blocks,
      and is used to trigger a state flush to disk when a certain threshold is
      reached. After the merge, single block insertion by CL is the most
      common source of block processing time, but this time was not added
      into gcproc.
      68912887
    • Seungbae Yu's avatar
    • Sina Mahmoodi's avatar
      graphql, node, rpc: improve HTTP write timeout handling (#25457) · f20eba42
      Sina Mahmoodi authored
      Here we add special handling for sending an error response when the write timeout of the
      HTTP server is just about to expire. This is surprisingly difficult to get right, since is
      must be ensured that all output is fully flushed in time, which needs support from
      multiple levels of the RPC handler stack:
      
      The timeout response can't use chunked transfer-encoding because there is no way to write
      the final terminating chunk. net/http writes it when the topmost handler returns, but the
      timeout will already be over by the time that happens. We decided to disable chunked
      encoding by setting content-length explicitly.
      
      Gzip compression must also be disabled for timeout responses because we don't know the
      true content-length before compressing all output, i.e. compression would reintroduce
      chunked transfer-encoding.
      f20eba42
  3. 06 Dec, 2022 1 commit
    • Felix Lange's avatar
      cmd/devp2p: add --extaddr flag (#26312) · b44abf56
      Felix Lange authored
      The new flag allows configuring an explicit endpoint which is to be
      announced in the DHT. This feature was originally developed for the
      discv5 wormhole experiment (#25798), but it's useful in other contexts
      as well.
      b44abf56
  4. 05 Dec, 2022 4 commits
  5. 03 Dec, 2022 1 commit
    • Sina Mahmoodi's avatar
      core: drop legacy receipt types (#26225) · 10347c6b
      Sina Mahmoodi authored
      This PR drops the legacy receipt types, the freezer-migrate command and the startup check. The previous attempt #22852 at this failed because there were users who still had legacy receipts in their db, so it had to be reverted #23247. Since then we added a command to migrate legacy dbs #24028.
      
      As of the last hardforks all users either must have done the migration, or used the --ignore-legacy-receipts flag which will stop working now.
      10347c6b
  6. 02 Dec, 2022 1 commit
  7. 30 Nov, 2022 1 commit
  8. 28 Nov, 2022 7 commits
  9. 25 Nov, 2022 4 commits
  10. 24 Nov, 2022 4 commits
  11. 22 Nov, 2022 1 commit
  12. 21 Nov, 2022 2 commits
  13. 17 Nov, 2022 6 commits
  14. 16 Nov, 2022 3 commits