- Nov 10, 2020
-
-
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.
-
- Nov 09, 2020
-
-
Péter Szilágyi authored
consensus/ethash: fix the percentage progress report
-
Péter Szilágyi authored
core/state/snapshot: update generator marker in sync with flushes
-
Péter Szilágyi authored
travis: drop Go 1.13 builders as it's not supported any more
-
Péter Szilágyi authored
build: stop building for Ubuntu Eoan, not supported any more
-
Péter Szilágyi authored
-
Péter Szilágyi authored
-
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
-
Péter Szilágyi authored
-
Martin Holst Swende authored
-
- Nov 05, 2020
-
-
Péter Szilágyi authored
build: stop verbose output to keep travis from overflowing
-
Péter Szilágyi authored
-
- Nov 04, 2020
-
-
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:
Felix Lange <fjl@twurst.com>
-
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:
Felix Lange <fjl@twurst.com>
-
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.
-
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
-
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.
-
- Oct 30, 2020
-
-
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.
-
- Oct 29, 2020
-
-
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:
Péter Szilágyi <peterke@gmail.com>
-
- Oct 28, 2020
-
-
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
-
Gary Rong authored
* core/state: maintain one more diff layer * core/state: address comment
-
- Oct 27, 2020
-
-
Marius van der Wijden authored
* accounts/abi/bind: restore error functionality * Update accounts/abi/bind/base.go Co-authored-by:
Guillaume Ballet <gballet@gmail.com> Co-authored-by:
Guillaume Ballet <gballet@gmail.com>
-
- Oct 26, 2020
-
-
James Prestwich authored
-
- Oct 23, 2020
-
-
Péter Szilágyi authored
params: update yolov2 bootnode with elastic ip
-
Martin Holst Swende authored
-
Péter Szilágyi authored
utils, params: add yolov2 bootnode
-
Martin Holst Swende authored
-
Felix Lange authored
The old one was wrong in two ways: the first block in chain.rlp was the genesis block, and the genesis difficulty was below minimum difficulty. This also contains some other fixes to the test.
-
Martin Holst Swende authored
* core/vm, core/state: implement EIP-2929 + YOLOv2 * core/state, core/vm: fix some review concerns * core/state, core/vm: address review concerns * core/vm: address review concerns * core/vm: better documentation * core/vm: unify sload cost as fully dynamic * core/vm: fix typo * core/vm/runtime: fix compilation flaw * core/vm/runtime: fix renaming-err leftovers * core/vm: renaming * params/config: use correct yolov2 chainid for config * core, params: use a proper new genesis for yolov2 * core/state/tests: golinter nitpicks
-
- Oct 21, 2020
-
-
Kristofer Peterson authored
The version check logic did not take into account the second digit (i.e. the '4' in v1.4.0) - this one line patch corrects this.
-
hwanjo authored
-
Zsolt Felföldi authored
* les: move NodeStateMachine from clientPool to LesServer * les: new header broadcaster * les: peerCommons.headInfo always contains last announced head * les: remove clientPeerSet and serverSet * les: fixed panic * les: fixed --nodiscover option * les: disconnect all peers at ns.Stop() * les: added comments and fixed signed broadcasts * les: removed unused parameter, fixed tests
-
- Oct 20, 2020
-
-
aaronbuchwald authored
* Fix potential nil pointer error when neither block number nor hash is specified to accountRange * Update error description
-
Gary Rong authored
* core: add background indexer to waitgroup * core: make indexer stopable * core/rawdb: add unit tests * core/rawdb: fix lint * core/rawdb: fix tests * core/rawdb: fix linter
-
Marius van der Wijden authored
-
rene authored
* add interrupt counter * remove interrupt counter, allow ctrl-C to clear ONLY, ctrl-D will terminate console, stop node * format * add instructions to exit * fix tests
-
- Oct 16, 2020
-
-
Marius van der Wijden authored
* core/vm: marshall returnData as hexstring in trace logs * core/vm: marshall returnData as hexstring in trace logs
-
- Oct 15, 2020
-
-
Felix Lange authored
-
Felix Lange authored
-
- Oct 14, 2020
-
-
Felix Lange authored
This change implements the Discovery v5.1 wire protocol and also adds an interactive test suite for this protocol.
-