good morning!!!!

Skip to content
Snippets Groups Projects
  1. Dec 16, 2020
  2. Dec 14, 2020
  3. Dec 12, 2020
  4. Dec 11, 2020
  5. Dec 10, 2020
  6. Dec 09, 2020
  7. Dec 08, 2020
    • Thomas Jay Rush's avatar
      Remove unwanted files (#1394) · 84304b2a
      Thomas Jay Rush authored
      84304b2a
    • ledgerwatch's avatar
      State cache switching writes to reads during commit (#1368) · 5ea590c1
      ledgerwatch authored
      
      * State cache init
      
      * More code
      
      * Fix lint
      
      * More tests
      
      * More tests
      
      * More tests
      
      * Fix test
      
      * Transformations
      
      * remove writeQueue, before fixing the tests
      
      * Fix tests
      
      * Add more tests, incarnation to the code items
      
      * Fix lint
      
      * Fix lint
      
      * Remove shards prototype, add incarnation to the state reader code
      
      * Clean up and replace cache in call_traces stage
      
      * fix flaky test
      
      * Save changes
      
      * Readers to use addrHash, writes - addresses
      
      * Fix lint
      
      * Fix lint
      
      * More accurate tracking of size
      
      * Optimise for smaller write batches
      
      * Attempt to integrate state cache into Execution stage
      
      * cacheSize to default flags
      
      * Print correct cache sizes and batch sizes
      
      * cacheSize in the integration
      
      * Fix tests
      
      * Fix lint
      
      * Remove print
      
      * Fix exec stage
      
      * Fix test
      
      * Refresh sequence on write
      
      * No double increment
      
      * heap.Remove
      
      * Try to fix alignment
      
      * Refactoring, adding hashItems
      
      * More changes
      
      * Fix compile errors
      
      * Fix lint
      
      * Wrapping cached reader
      
      * Wrap writer into cached writer
      
      * Turn state cache off by default
      
      * Fix plain state writer
      
      * Fix for code/storage mixup
      
      * Fix tests
      
      * Fix clique test
      
      * Better fix for the tests
      
      * Add test and fix some more
      
      * Fix compile error|
      
      * More functions
      
      * Fixes
      
      * Fix for the tests
      
      * sepatate DeletedFlag and AbsentFlag
      
      * Minor fixes
      
      * Test refactoring
      
      * More changes
      
      * Fix some tests
      
      * More test fixes
      
      * More test fixes
      
      * Fix lint
      
      * Move blockchain_test to be able to use stagedsync
      
      * More fixes
      
      * Fixes and cleanup
      
      * Fix tests in turbo/stages
      
      * Fix lint
      
      * Fix lint
      
      * Intemediate
      
      * Fix tests
      
      * Intemediate
      
      * More fixes
      
      * Compilation fixes
      
      * More fixes
      
      * Fix compile errors
      
      * More test fixes
      
      * More fixes
      
      * More test fixes
      
      * Fix compile error
      
      * Fixes
      
      * Fix
      
      * Fix
      
      * More fixes
      
      * Fixes
      
      * More fixes and cleanup
      
      * Further fix
      
      * Check gas used and bloom with header
      
      Co-authored-by: default avatarAlexey Sharp <alexeysharp@Alexeys-iMac.local>
      5ea590c1
  8. Dec 04, 2020
  9. Dec 03, 2020
    • Igor Mandrigin's avatar
      post-rebase fixes · 63ec2ec9
      Igor Mandrigin authored
      63ec2ec9
    • Péter Szilágyi's avatar
      params: release Geth v1.9.24 with Go 1.15.5 (#21842) · dd29778f
      Péter Szilágyi authored
      # Conflicts:
      #	build/checksums.txt
      #	build/ci.go
      #	params/version.go
      dd29778f
    • Felix Lange's avatar
    • Felix Lange's avatar
      build: fix regressions with the -dlgo change (#21831) · 4baf97ed
      Felix Lange authored
      This fixes cross-build and mobile framework failures.
      It also disables the mac test builder because it was failing
      all the time in hard to understand ways and we can't afford
      it anymore under Travis CI's new pricing.
      # Conflicts:
      #	build/ci.go
      4baf97ed
    • Slava Karpenko's avatar
      consensus/ethash: use 64bit indexes for the DAG generation (#21793) · 26db7c6c
      Slava Karpenko authored
      
      * Bit boundary fix for the DAG generation routine
      
      * Fix unnecessary conversion warnings
      
      Co-authored-by: default avatarSergey Pavlov <spavlov@gmail.com>
      26db7c6c
    • Felix Lange's avatar
      build: add -dlgo flag in ci.go (#21824) · 8812a675
      Felix Lange authored
      This new flag downloads a known version of Go and builds with it. This
      is meant for environments where we can't easily upgrade the installed Go
      version.
      
      * .travis.yml: remove install step for PR test builders
      
      We added this step originally to avoid re-building everything
      for every test. go test has become much smarter in recent go
      releases, so we no longer need to install anything here.
      # Conflicts:
      #	build/checksums.txt
      #	build/ci.go
      #	internal/build/util.go
      8812a675
    • Marius van der Wijden's avatar
      fuzzers: removed fuzzbuzz configuration (#21813) · 2dc90786
      Marius van der Wijden authored
      We decided to move our fuzzing efforts to oss-fuzz since fuzzbuzz is still early access.
      2dc90786
    • Martin Holst Swende's avatar
    • gary rong's avatar
      p2p/simulations/adapters/exec: fix some issues (#21801) · a8cbb48d
      gary rong authored
      - Remove the ws:// prefix from the status endpoint since
        the ws:// is already included in the stack.WSEndpoint().
      - Don't register the services again in the node start.
        Registration is already done in the initialization stage.
      - Expose admin namespace via websocket.
        This namespace is necessary for connecting the peers via websocket.
      - Offer logging relevant options for exec adapter.
        It's really painful to mix all log output in the single console. So
        this PR offers two additional options for exec adapter in this case
        testers can config the log output(e.g. file output) and log level
        for each p2p node.
      a8cbb48d
    • Péter Szilágyi's avatar
      build: stop building for Ubuntu Eoan, not supported any more · 7fc5fb3c
      Péter Szilágyi authored
      # Conflicts:
      #	build/ci.go
      7fc5fb3c
    • Péter Szilágyi's avatar
    • Martin Holst Swende's avatar
      trie, tests/fuzzers: implement a stacktrie fuzzer + stacktrie fixes (#21799) · 9534c2d3
      Martin Holst Swende authored
      * trie: fix error in stacktrie not committing small roots
      
      * fuzzers: make trie-fuzzer use correct returnvalues
      
      * trie: improved tests
      
      * tests/fuzzers: fuzzer for stacktrie vs regular trie
      
      * test/fuzzers: make stacktrie fuzzer use 32-byte keys
      
      * trie: fix error in stacktrie with small nodes
      
      * trie: add (skipped) testcase for stacktrie
      
      * tests/fuzzers: address review comments for stacktrie fuzzer
      
      * trie: fix docs in stacktrie
      # Conflicts:
      #	tests/fuzzers/trie/trie-fuzzer.go
      #	trie/stacktrie.go
      #	trie/stacktrie_test.go
      #	trie/trie_test.go
      9534c2d3
    • Péter Szilágyi's avatar
      core/state/snapshot: update generator marker in sync with flushes · 233570c5
      Péter Szilágyi authored
      # Conflicts:
      #	core/state/snapshot/generate.go
      #	core/state/snapshot/journal.go
      #	core/state/snapshot/snapshot.go
      233570c5
    • Martin Holst Swende's avatar
    • Péter Szilágyi's avatar
      build: stop verbose output to keep travis from overflowing · ec6f485f
      Péter Szilágyi authored
      # Conflicts:
      #	build/ci.go
      ec6f485f
    • Martin Holst Swende's avatar
      core/types, rlp: optimize derivesha (#21728) · 288f9bd4
      Martin Holst Swende authored
      
      This PR contains a minor optimization in derivesha, by exposing the RLP
      int-encoding and making use of it to write integers directly to a
      buffer (an RLP integer is known to never require more than 9 bytes
      total). rlp.AppendUint64 might be useful in other places too.
      
      The code assumes, just as before, that the hasher (a trie) will copy the
      key internally, which it does when doing keybytesToHex(key).
      
      Co-authored-by: default avatarFelix Lange <fjl@twurst.com>
      # Conflicts:
      #	core/types/derive_sha.go
      288f9bd4
    • rene's avatar
      cmd/devp2p/internal/ethtest: add correct chain files and improve test output (#21782) · 040dcebf
      rene authored
      
      This PR replaces the old test genesis.json and chain.rlp files in the testdata
      directory for the eth protocol test suite, and also adds documentation for
      running the eth test suite locally.
      
      It also improves the test output text and adds more timeouts.
      
      Co-authored-by: default avatarFelix Lange <fjl@twurst.com>
      # Conflicts:
      #	cmd/devp2p/internal/ethtest/suite.go
      040dcebf
    • Felix Lange's avatar
      cmd/devp2p, internal/utesting: implement TAP output (#21760) · 6dee5bbd
      Felix Lange authored
      TAP is a text format for test results. Parsers for it are available in many languages,
      making it easy to consume. I want TAP output from our protocol tests because the
      Hive wrapper around them needs to know about the test names and their individual
      results and logs. It would also be possible to just write this info as JSON, but I don't
      want to invent a new format.
      
      This also improves the normal console output for tests (when running without --tap).
      It now prints -- RUN lines before any output from the test, and indents the log output
      by one space.
      # Conflicts:
      #	cmd/devp2p/discv4cmd.go
      #	cmd/devp2p/discv5cmd.go
      #	cmd/devp2p/rlpxcmd.go
      6dee5bbd
    • gary rong's avatar
      core/state/snapshot: fix journal recovery from generating old journal (#21775) · d474b21f
      gary rong authored
      * core/state/snapshot: print warning if failed to resolve journal
      
      * core/state/snapshot: fix snapshot recovery
      
      When we meet the snapshot journal consisted with:
      - disk layer generator with new-format
      - diff layer journal with old-format
      
      The base layer should be returned without error.
      The broken diff layer can be reconstructed later
      but we definitely don't want to reconstruct the
      huge diff layer.
      
      * core: add tests
      # Conflicts:
      #	core/state/snapshot/journal.go
      d474b21f
    • Marius van der Wijden's avatar
      common: remove ToHex and ToHexArray (#21610) · 4f2558be
      Marius van der Wijden authored
      ToHex was deprecated a couple years ago. The last remaining use
      was in ToHexArray, which itself only had a single call site.
      
      This just moves ToHexArray near its only remaining call site and
      implements it using hexutil.Encode. This changes the default behaviour
      of ToHexArray and with it the behaviour of eth_getProof. Previously we
      encoded an empty slice as 0, now the empty slice is encoded as 0x.
      # Conflicts:
      #	common/bytes.go
      #	internal/ethapi/api.go
      4f2558be
    • gary rong's avatar
      les, p2p/simulations/adapters: fix issues found while simulating les (#21761) · 0a48344d
      gary rong authored
      This adds a few tiny fixes for les and the p2p simulation framework:
      
      LES Parts
      
      - Keep the LES-SERVER connection even it's non-synced
      
        We had this idea to reject the connections in LES protocol if the les-server itself is
        not synced. However, in LES protocol we will also receive the connection from another
        les-server. In this case even the local node is not synced yet, we should keep the tcp
        connection for other protocols(e.g. eth protocol).
      
      - Don't count "invalid message" for non-existing GetBlockHeadersMsg request
      
        In the eth syncing mechanism (full sync, fast sync, light sync), it will try to fetch
        some non-existent blocks or headers(to ensure we indeed download all the missing chain).
        In this case, it's possible that the les-server will receive the request for
        non-existent headers. So don't count it as the "invalid message" for scheduling
        dropping.
      
      - Copy the announce object in the closure
      
        Before the les-server pushes the latest headers to all connected clients, it will create
        a closure and queue it in the underlying request scheduler. In some scenarios it's
        problematic. E.g, in private networks, the block can be mined very fast. So before the
        first closure is executed, we may already update the latest_announce object. So actually
        the "announce" object we want to send is replaced.
      
        The downsize is the client will receive two announces with the same td and then drop the
        server.
      
      P2P Simulation Framework
      
      - Don't double register the protocol services in p2p-simulation "Start".
      
        The protocols upon the devp2p are registered in the "New node stage". So don't reigster
        them again when starting a node in the p2p simulation framework
      
      - Add one more new config field "ExternalSigner", in order to use clef service in the
        framework.
      
      # Conflicts:
      #	les/server_handler.go
      0a48344d
    • gary rong's avatar
      core: improve snapshot journal recovery (#21594) · 89b2ff60
      gary rong authored
      
      * core/state/snapshot: introduce snapshot journal version
      
      * core: update the disk layer in an atomic way
      
      * core: persist the disk layer generator periodically
      
      * core/state/snapshot: improve logging
      
      * core/state/snapshot: forcibly ensure the legacy snapshot is matched
      
      * core/state/snapshot: add debug logs
      
      * core, tests: fix tests and special recovery case
      
      * core: polish
      
      * core: add more blockchain tests for snapshot recovery
      
      * core/state: fix comment
      
      * core: add recovery flag for snapshot
      
      * core: add restart after start-after-crash tests
      
      * core/rawdb: fix imports
      
      * core: fix tests
      
      * core: remove log
      
      * core/state/snapshot: fix snapshot
      
      * core: avoid callbacks in SetHead
      
      * core: fix setHead cornercase where the threshold root has state
      
      * core: small docs for the test cases
      
      Co-authored-by: default avatarPéter Szilágyi <peterke@gmail.com>
      # Conflicts:
      #	core/blockchain.go
      #	core/blockchain_repair_test.go
      #	core/blockchain_sethead_test.go
      #	core/rawdb/accessors_snapshot.go
      #	core/rawdb/schema.go
      #	core/state/snapshot/disklayer_test.go
      #	core/state/snapshot/generate.go
      #	core/state/snapshot/journal.go
      #	core/state/snapshot/snapshot.go
      #	tests/state_test_util.go
      89b2ff60
    • gary rong's avatar
      core/state: disable snapshot iteration if it's not fully constructed (#21682) · ee91b3e5
      gary rong authored
      * core/state/snapshot: add diskRoot function
      
      * core/state/snapshot: disable iteration if the snapshot is generating
      
      * core/state/snapshot: simplify the function
      
      * core/state: panic for undefined layer
      # Conflicts:
      #	core/state/snapshot/snapshot.go
      ee91b3e5
Loading