- 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.
-
Martin Holst Swende authored
-
Gary Rong authored
-
- Oct 13, 2020
-
-
Marius van der Wijden authored
* accounts/keystore: add timeout to test to prevent failure on travis The TestWalletNotifications test sporadically fails on travis. This is because we shutdown the event collection before all events are received. Adding a small timeout (10 milliseconds) allows the collector to be scheduled and to consume all pending events before we shut it down. * accounts/keystore: added newlines back in * accounts/keystore: properly fix the walletNotifications test
-
Martin Holst Swende authored
* miner: exit loop when downloader Done or Failed Following the logic of the comment at the method, this fixes a regression introduced at 7cf56d6f , which would allow external parties to DoS with blocks, preventing mining progress. Signed-off-by:
meows <b5c6@protonmail.com> * miner: remove ineff assign (lint) Signed-off-by:
meows <b5c6@protonmail.com> * miner: update test re downloader events Signed-off-by:
meows <b5c6@protonmail.com> * Revert "miner: remove ineff assign (lint)" This reverts commit eaefcd34ab4862ebc936fb8a07578aa2744bc058. * Revert "miner: exit loop when downloader Done or Failed" This reverts commit 23abd34265aa246c38fc390bb72572ad6ae9fe3b. * miner: add test showing imprecise TestMiner Signed-off-by:
meows <b5c6@protonmail.com> * miner: fix waitForMiningState precision This helper function would return an affirmation on the first positive match on a desired bool. This was imprecise; it return false positives by not waiting initially for an 'updated' value. This fix causes TestMiner_2 to fail, which is expected. Signed-off-by:
meows <b5c6@protonmail.com> * miner: remove TestMiner_2 demonstrating broken test This test demonstrated the imprecision of the test helper function waitForMiningState. This function has been fixed with 6d365c2851, and this test test may now be removed. Signed-off-by:
meows <b5c6@protonmail.com> * miner: fix test regarding downloader event/mining expectations See comment for logic. Signed-off-by:
meows <b5c6@protonmail.com> * miner: add test describing expectations for downloader/mining events We expect that once the downloader emits a DoneEvent, signaling a successful sync, that subsequent StartEvents are not longer permitted to stop the miner. This prevents a security vulnerability where forced syncs via fake high blocks would stall mining operation. Signed-off-by:
meows <b5c6@protonmail.com> * miner: use 'canStop' state to fix downloader event handling - Break downloader event handling into event separating Done and Failed events. We need to treat these cases differently since a DoneEvent should prevent the miner from being stopped on subsequent downloader Start events. - Use canStop state to handle the one-off case when a downloader first succeeds. Signed-off-by:
meows <b5c6@protonmail.com> * miner: improve comment wording Signed-off-by:
meows <b5c6@protonmail.com> * miner: start mining on downloader events iff not already mining Signed-off-by:
meows <b5c6@protonmail.com> * miner: refactor miner update logic w/r/t downloader events This makes mining pause/start logic regarding downloader events more explicit. Instead of eternally handling downloader events after the first done event, the subscription is closed when downloader events are no longer actionable. Signed-off-by:
meows <b5c6@protonmail.com> * miner: fix handling downloader events on subcription closed Signed-off-by:
meows <b5c6@protonmail.com> * miner: (lint:gosimple) use range over chan instead of for/select Signed-off-by:
meows <b5c6@protonmail.com> * miner: refactor update loop to remove race condition The go routine handling the downloader events handling vars in parallel with the parent routine, causing a race condition. This change, though ugly, remove the condition while still allowing the downloader event subscription to be closed when the miner has no further use for it (ie DoneEvent). * miner: alternate fix for miner-flaw Co-authored-by:
meows <b5c6@protonmail.com>
-
Giuseppe Bertone authored
-
Martin Holst Swende authored
* peer: return localAddr instead of name to prevent spam We currently use the name (which can be freely set by the peer) in several log messages. This enables malicious actors to write spam into your geth log. This commit returns the localAddr instead of the freely settable name. * p2p: reduce usage of peer.Name in warn messages * eth, p2p: use truncated names * Update peer.go Co-authored-by:
Marius van der Wijden <m.vanderwijden@live.de> Co-authored-by:
Felix Lange <fjl@twurst.com>
-
mr_franklin authored
* imporve some web3-ext apis * Update web3ext.go Co-authored-by:
Felix Lange <fjl@twurst.com>
-
Martin Holst Swende authored
-
mr_franklin authored
-
mr_franklin authored
-
Hanjiang Yu authored
-
- Oct 12, 2020
-
-
mr_franklin authored
-
Gary Rong authored
* trie: polish commit function * trie: fix typo
-
- Oct 09, 2020
-
-
Martin Holst Swende authored
-
Marius van der Wijden authored
-
Gary Rong authored
* eth/downloader: fix data race around the ancientlimit * eth/downloader: initialize the ancientlimit as 0
-
- Oct 08, 2020
-
-
Guillaume Ballet authored
* core/vm: dedup config check * review feedback: reuse buffer
-
Felix Lange authored
For some reason, using the shared hash causes a cryptographic incompatibility when using Go 1.15. I noticed this during the development of Discovery v5.1 when I added test vector verification. The go library commit that broke this is golang/go@97240d5, but the way we used HKDF is slightly dodgy anyway and it's not a regression.
-
Martin Holst Swende authored
* signer/core: don't mismatch reject and zero accounts, fixes #21674 * signer/core: docs
-
- Oct 07, 2020
-
-
Felix Lange authored
This makes it accept the "upgrade,keep-alive" header value, which apparently is a thing.
-
rene authored
This fixes issues with the protocol handshake and status exchange and adds support for responding to GetBlockHeaders requests.
-
- Oct 06, 2020
-
-
Martin Holst Swende authored
* core/types: tests for bloom * core/types: refactored bloom filter for receipts, added tests core/types: replaced old bloom implementation core/types: change interface of bloom add+test * core/types: refactor bloom * core/types: minor tweak on LogsBloom Co-authored-by:
Marius van der Wijden <m.vanderwijden@live.de>
-
Martin Holst Swende authored
* core/bloombits: add benchmark * core/bloombits: optimize inserts
-