- Feb 03, 2020
-
-
Evgeny Danilenko authored
* add context * extract chain events * run commit in goroutines * mine only on canonical * typo * linters * fmt * mark unused methods * restore stress test * test single miner * remove unsafe Trie storage * remove locks from miner * restore interrupt * remove result goroutine * remove unconfirmedBlocks * cherry-pick 04a1d475ff1a36ad8f92fec80385df18c52bdc1f * extract uncles * one miner succeeded * restore context cancel * cleanup * skip an unstable test * remove pending state * use context instead of interrupt func * calculate sealHash only once * comment out unstable test * after merge * fix after merge Co-authored-by:
ledgerwatch <akhounov@gmail.com>
-
- Feb 01, 2020
-
-
ledgerwatch authored
* Fix rewinding * Fix rewinding
-
- Jan 31, 2020
-
-
Alex Sharov authored
* add env INTERMEDIATE_TRIE_CACHE * try to use assert.New() pattern * Fix "maligned" linter warnings to reduce space consumption of structs: core/types/accounts/account.go:18:14: struct of size 136 bytes could be of size 128 bytes (maligned) type Account struct { -- trie/node.go:44:10: struct of size 80 bytes could be of size 72 bytes (maligned) duoNode struct { -- trie/resolve_set.go:28:17: struct of size 56 bytes could be of size 48 bytes (maligned) type ResolveSet struct { -- trie/resolver.go:34:15: struct of size 88 bytes could be of size 72 bytes (maligned) type Resolver struct { -- trie/visual.go:32:17: struct of size 104 bytes could be of size 96 bytes (maligned) type VisualOpts struct {
-
Alex Sharov authored
* add intermediate trie hashes bucket * update docs * use version of CompressNibbles with buf pool (less GC) but without io.ByteWriter (slow)
-
- Jan 30, 2020
-
-
ledgerwatch authored
* Trace first block * Fixes for CalcTrieRoots * Timings of the CalcTrieRoot * Fix lint * Add memory profiling * Reduce allocations in StreamHash * Fix * Fix * Fix * Optimise allocations * Reuse streams * Fixes * Fix * Unit test fix * Fix lint * Reuse hashbuilder * No loop * Reuse resolver * Fixed tests * Fix test * Fix test * Fix test * Fix witness threshold * Optimise allocations in RLP transform * Optimise allocations in RLP transform * Optimise branchHash * 100 times again * Replace ToStream with Iterator * StreamMergeIterator * No streams * Amplification * Minimise the use of hashOnly * 100 times * Reduce stack operations * Reduce appends * More optimisations * More optimisations * More optimisations * local hex * Small fix * Remove test * Fix lint * Fix lint * Fix lint * Add test for empty * Fix lint * More tests * Fix lint * Add measurement of stateless exec
-
Igor Mandrigin authored
-
Péter Szilágyi authored
-
gary rong authored
-
Péter Szilágyi authored
-
Péter Szilágyi authored
-
Péter Szilágyi authored
-
Martin Holst Swende authored
* trie/tests: add benchmarks and update trie tests * trie: update benchmark tests * trie: utilize callbacks instead of amassing lists of hashes in database ref/unref * trie: replace remaining non-callback based accesses
-
gary rong authored
* core: write chain data in atomic way * core, light: address comments * core, light: fix linter * core, light: address comments
-
Felix Lange authored
This change works around the 32k RDATA character limit per change request and fixes several issues in the deployer which prevented it from working for our production trees.
-
Felix Lange authored
This is a temporary fix for a problem which started happening when the dialer was changed to read nodes from an enode.Iterator. Before the iterator change, discovery queries would always return within a couple seconds even if there was no Internet access. Since the iterator won't return unless a node is actually found, discoverTask can take much longer. This means that the 'emergency connect' logic might not execute in time, leading to a stuck node.
-
Felix Lange authored
* p2p: wait for goroutine exit, fixes #20558 * p2p: wait for all slots on exit Co-authored-by:
Martin Holst Swende <martin@swende.se>
-
Guillaume Ballet authored
* build: upgrade golangci to 1.22.2 * .golangci.yml: don't fail on asset deadcode
-
Péter Szilágyi authored
-
Felix Lange authored
* build: put GOPATH in /tmp on launchpad * build: don't remove GOPATH from go tool environment
-
Martin Holst Swende authored
-
Felix Lange authored
-
Felix Lange authored
-
Felix Lange authored
* build: remove env.sh This removes the dirty symlink-to-self hack we've had for years. The script was added to enable building without GOPATH and did that job reliably for all this time. We can remove the workaround because modern Go supports building without GOPATH natively. * Makefile: add GO111MODULE=on to environment
-
Martin Holst Swende authored
-
Péter Szilágyi authored
-
MichaelRiabzev-StarkWare authored
* tests for tx size * alow multiple slots transactions * tests for tx size limit (32 KB) * change tx size tests to use addRemoteSync instead of validateTx (requested in pool request). * core: minor tx slotting polishes, add slot tracking metric Co-authored-by:
Michael Riabzev <RiabzevMichael@gmail.com> Co-authored-by:
Péter Szilágyi <peterke@gmail.com>
-
Péter Szilágyi authored
This reverts commit a1bc0e3c.
-
Felix Lange authored
* internal/testlog: print file+line number of log call in test log This changes the unit test logger to print the actual file and line number of the logging call instead of "testlog.go:44". Output of 'go test -v -run TestServerListen ./p2p' before this change: === RUN TestServerListen --- PASS: TestServerListen (0.00s) testlog.go:44: DEBUG[01-08|15:16:31.651] UDP listener up addr=127.0.0.1:62678 testlog.go:44: DEBUG[01-08|15:16:31.651] TCP listener up addr=127.0.0.1:62678 testlog.go:44: TRACE[01-08|15:16:31.652] Accepted connection addr=127.0.0.1:62679 And after: === RUN TestServerListen --- PASS: TestServerListen (0.00s) server.go:868: DEBUG[01-08|15:25:35.679] TCP listener up addr=127.0.0.1:62712 server.go:557: DEBUG[01-08|15:25:35.679] UDP listener up addr=127.0.0.1:62712 server.go:912: TRACE[01-08|15:25:35.680] Accepted connection addr=127.0.0.1:62713 * internal/testlog: document use of t.Helper
-
Felix Lange authored
-
Guillaume Ballet authored
-
Jonathan Gimeno authored
-
wangxiang authored
-
Marius van der Wijden authored
-
Yole authored
Update copyright from 2013-2019 to 2013-2020
-
me020523 authored
* add node.go unit test file node_test.go * add node_test.go file license and rollback trie_test.go * fix unused variable v * trie: fix license year Co-authored-by:
Péter Szilágyi <peterke@gmail.com>
-
Igor Mandrigin authored
* les: move the checkpoint oracle into its own package It's first step of refactor LES package. LES package basically can be divided into LES client and LES server. However both sides will use checkpoint package for status retrieval and verification. So this PR moves checkpoint oracle into a separate package * les: address comments
-
Kumar Anirudha authored
-
Prince Sinha authored
Fixes #19024 Fixes #19332
-
Guillaume Ballet authored
-
Chris Pacia authored
This commit intents to replicate the DialHTTPWithClient function which allows creating a RPC Client using a custom dialer but for websockets. We introduce a new DialWebsocketWithDialer function which allows the caller to instantiate a new websocket client using a custom dialer.
-