1. 26 Sep, 2022 3 commits
  2. 23 Sep, 2022 8 commits
  3. 22 Sep, 2022 1 commit
  4. 21 Sep, 2022 4 commits
  5. 20 Sep, 2022 3 commits
  6. 19 Sep, 2022 1 commit
  7. 17 Sep, 2022 1 commit
  8. 16 Sep, 2022 4 commits
  9. 15 Sep, 2022 5 commits
  10. 14 Sep, 2022 2 commits
  11. 13 Sep, 2022 2 commits
  12. 12 Sep, 2022 2 commits
  13. 10 Sep, 2022 1 commit
    • Felix Lange's avatar
      build: upgrade to go 1.19 (#25726) · b628d727
      Felix Lange authored
      This changes the CI / release builds to use the latest Go version. It also
      upgrades golangci-lint to a newer version compatible with Go 1.19.
      
      In Go 1.19, godoc has gained official support for links and lists. The
      syntax for code blocks in doc comments has changed and now requires a
      leading tab character. gofmt adapts comments to the new syntax
      automatically, so there are a lot of comment re-formatting changes in this
      PR. We need to apply the new format in order to pass the CI lint stage with
      Go 1.19.
      
      With the linter upgrade, I have decided to disable 'gosec' - it produces
      too many false-positive warnings. The 'deadcode' and 'varcheck' linters
      have also been removed because golangci-lint warns about them being
      unmaintained. 'unused' provides similar coverage and we already have it
      enabled, so we don't lose much with this change.
      b628d727
  14. 09 Sep, 2022 3 commits
    • Martin Holst Swende's avatar
      core: place a cap on reorglogs (#25711) · 389021a5
      Martin Holst Swende authored
      This PR makes the event-sending for deleted and new logs happen in batches, to prevent OOM situation due to large reorgs. 
      Co-authored-by: 's avatarFelix Lange <fjl@twurst.com>
      389021a5
    • Nicholas's avatar
      rpc: improve error codes for internal server errors (#25678) · 610cf02c
      Nicholas authored
      This changes the error code returned by the RPC server in certain situations:
      
      - handler panic: code -32603
      - result marshaling error: code -32603
      - attempt to subscribe via HTTP: code -32001
      
      In all of the above cases, the server previously returned the default error
      code -32000.
      Co-authored-by: 's avatarNicholas Zhao <nicholas.zhao@gmail.com>
      Co-authored-by: 's avatarFelix Lange <fjl@twurst.com>
      610cf02c
    • Martin Holst Swende's avatar
      p2p/msgrate: be more lenient when calculating 'mean' (#25653) · 06151eb5
      Martin Holst Swende authored
      The p2p msgrate tracker is a thing which tries to estimate some mean round-trip times. However, it did so in a very curious way: if a node had 200 peers, it would sort their 200 respective rtt estimates, and then it would pick item number 2 as the mean. So effectively taking third fastest and calling it mean. This probably works "ok" when the number of peers are low (there are other factors too, such as ttlScaling which takes some of the edge off this) -- however when the number of peers is high, it becomes very skewed.
      
      This PR instead bases the 'mean' on the square root of the length of the list. Still pretty harsh, but a bit more lenient.
      06151eb5