good morning!!!!

Skip to content
Snippets Groups Projects
  1. May 18, 2021
    • Felix Lange's avatar
      rlp: improve decoder stream implementation (#22858) · 088da24e
      Felix Lange authored
      This commit makes various cleanup changes to rlp.Stream.
      
      * rlp: shrink Stream struct
      
      This removes a lot of unused padding space in Stream by reordering the
      fields. The size of Stream changes from 120 bytes to 88 bytes. Stream
      instances are internally cached and reused using sync.Pool, so this does
      not improve performance.
      
      * rlp: simplify list stack
      
      The list stack kept track of the size of the current list context as
      well as the current offset into it. The size had to be stored in the
      stack in order to subtract it from the remaining bytes of any enclosing
      list in ListEnd. It seems that this can be implemented in a simpler
      way: just subtract the size from the enclosing list context in List instead.
      088da24e
    • Felix Lange's avatar
      p2p/discover/v4wire: use optional RLP field for EIP-868 seq (#22842) · 3e6f46ca
      Felix Lange authored
      This changes the definitions of Ping and Pong, adding an optional field
      for the sequence number. This field was previously encoded/decoded using
      the "tail" struct tag, but using "optional" is much nicer.
      3e6f46ca
    • Shane Bammel's avatar
      core/forkid: fix off-by-one bug (#22879) · 32c1ed8a
      Shane Bammel authored
      * forkid: added failing test
      
      * forkid: fixed off-by-one bug
      32c1ed8a
    • Evolution404's avatar
      b7a91663
  2. May 17, 2021
  3. May 12, 2021
  4. May 11, 2021
  5. May 10, 2021
  6. May 07, 2021
  7. May 06, 2021
  8. May 05, 2021
  9. May 04, 2021
    • Felix Lange's avatar
    • Felix Lange's avatar
      build: fix iOS framework build (#22813) · 973ad66b
      Felix Lange authored
      This fixes a regression introduced in #22804.
      973ad66b
    • Felix Lange's avatar
      go.mod: go mod tidy (#22814) · d107f90d
      Felix Lange authored
      This updates go.mod for the addition of golang.org/x/sync.
      d107f90d
    • Felix Lange's avatar
      build: improve cross compilation setup (#22804) · effaf185
      Felix Lange authored
      This PR cleans up the CI build system and fixes a couple of issues.
      
      - The go tool launcher code has been moved to internal/build. With the new
        toolchain functions, the environment of the host Go (i.e. the one that built
        ci.go) and the target Go (i.e. the toolchain downloaded by -dlgo) are isolated
        more strictly. This is important to make cross compilation and -dlgo work
        correctly in more cases.
      - The -dlgo option now skips the download and uses the host Go if the running Go
        version matches dlgoVersion exactly.
      - The 'test' command now supports -dlgo, -cc and -arch. Running unit tests with
        foreign GOARCH is occasionally useful. For example, it can be used to run
        32-bit tests on Windows. It can also be used to run darwin/amd64 tests on
        darwin/arm64 using Rosetta 2.
      - The 'aar', 'xcode' and 'xgo' commands now use a slightly different method to
        install external tools. They previously used `go get`, but this comes with the
        annoying side effect of modifying go.mod. They now use `go install` instead,
        which is the recommended way of installing tools without modifying the local
        module.
      - The old build warning about outdated Go version has been removed because we're
        much better at keeping backwards compatibility now.
      effaf185
    • Felix Lange's avatar
      cmd/utils: use eth DNS tree for snap discovery (#22808) · b8040a43
      Felix Lange authored
      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
    • Péter Szilágyi's avatar
      Merge pull request #22803 from karalabe/silence-scary-warning · 640d2c5e
      Péter Szilágyi authored
      eth: don't print db upgrade warning on db init
      640d2c5e
  10. May 03, 2021
Loading