Péter Szilágyi
bdde616f23
Merge pull request #21477 from karalabe/snapshotter-shallow-generator
...
core/state/snapshot: reduce disk layer depth during generation
4 years ago
Péter Szilágyi
3ee91b9f2e
core/state/snapshot: reduce disk layer depth during generation
4 years ago
Martin Holst Swende
0f4e7c9b0d
eth: utilize sync bloom for getNodeData ( #21445 )
...
* eth/downloader, eth/handler: utilize sync bloom for getNodeData
* trie: handle if bloom is nil
* trie, downloader: check bloom nilness externally
4 years ago
Martin Holst Swende
1b5a867eec
core: do less lookups when writing fast-sync block bodies ( #21468 )
4 years ago
gary rong
87c0ba9213
core, eth, les, trie: add a prefix to contract code ( #21080 )
4 years ago
Péter Szilágyi
b68929caee
Merge pull request #21472 from holiman/fix_dltest_fail
...
eth/downloader: fix rollback issue on short chains
4 years ago
Martin Holst Swende
9f7b79af00
eth/downloader: fix rollback issue on short chains
4 years ago
Marius van der Wijden
4e54b1a45e
metrics: zero temp variable in updateMeter ( #21470 )
...
* metrics: zero temp variable in updateMeter
Previously the temp variable was not updated properly after summing it to count.
This meant we had astronomically high metrics, now we zero out the temp whenever we
sum it onto the snapshot count
* metrics: move temp variable to be aligned, unit tests
Moves the temp variable in MeterSnapshot to be 64-bit aligned because of the atomic bug.
Adds a unit test, that catches the previous bug.
4 years ago
Péter Szilágyi
a70a79b285
Merge pull request #21466 from karalabe/go1.15
...
travis, dockerfile, appveyor, build: bump to Go 1.15
4 years ago
Péter Szilágyi
15fdaf2005
travis, dockerfile, appveyor, build: bump to Go 1.15
4 years ago
Péter Szilágyi
8cbdc8638f
core: define and test chain rewind corner cases ( #21409 )
...
* core: define and test chain reparation cornercases
* core: write up a variety of set-head tests
* core, eth: unify chain rollbacks, handle all the cases
* core: make linter smile
* core: remove commented out legacy code
* core, eth/downloader: fix review comments
* core: revert a removed recovery mechanism
4 years ago
Marius van der Wijden
0bdd295cc0
core: more detailed metering for reorgs ( #21420 )
4 years ago
Martin Holst Swende
7ebc6c43ff
cmd/evm: statet8n output folder + tx hashes on trace filenames ( #21406 )
...
* t8ntool: add output basedir
* t8ntool: add txhash to trace filename
* t8ntool: don't default to '.' basedir, allow absolute paths
4 years ago
Péter Szilágyi
560d44479c
Merge pull request #21461 from karalabe/ppa-drop-disco
...
build: drop disco, enable groovy on Ubuntu PPAs
4 years ago
Péter Szilágyi
32b078d418
build: drop disco, enable groovy on Ubuntu PPAs
4 years ago
Giuseppe Bertone
2ff464b29d
core/state: fixed some comments ( #21450 )
4 years ago
Marius van der Wijden
f3bafecef7
metrics: make meter updates lock-free ( #21446 )
4 years ago
Martin Holst Swende
54add42550
cmd/geth/tests: try to fix spurious travis failure in les tests ( #21410 )
...
* cmd/geth/tests: try to fix spurious travis failure in les tests
* cmd/geth: les_test - remove extraneous option during boot
4 years ago
Péter Szilágyi
04926db204
params: begin v1.9.20 release cycle
4 years ago
Péter Szilágyi
3e0641923d
params: release Geth v1.9.19
4 years ago
Péter Szilágyi
74925e547f
Merge pull request #21437 from karalabe/cht-1.9.19
...
params: update CHTs for v1.9.19
4 years ago
Péter Szilágyi
7afdf792ab
params: update CHTs for v1.9.19
4 years ago
Martin Holst Swende
c28fd9c079
tests: add Berlin-definition identical to YOLOv1 ( #21435 )
4 years ago
Péter Szilágyi
4baa574410
Merge pull request #21434 from karalabe/ethstats-split-rwlock
...
ethstats: split read and write lock, otherwise they'll lock up
4 years ago
Péter Szilágyi
9f45d6efae
ethstats: split read and write lock, otherwise they'll lock up
4 years ago
Péter Szilágyi
cbbc54c495
Merge pull request #21433 from holiman/statsync_exiter
...
eth/downloader: allow all timers to exit
4 years ago
Martin Holst Swende
7cee2509c0
eth/downloader: allow all timers to exit
4 years ago
Péter Szilágyi
48b484c5ac
Merge pull request #21428 from holiman/ethstats_moar
...
ethstats: overwrite old errors
4 years ago
Péter Szilágyi
06125bff89
Merge pull request #21429 from holiman/timerfix
...
eth/downloader: set deliverytime on drops and timeouts too
4 years ago
Martin Holst Swende
9fea1a5cf5
eth/downloader: set deliverytime on drops and timeouts too
4 years ago
gary rong
e401f5ff10
les: close all connected les-server when shutdown ( #21426 )
...
* les: close all connected les-server when shutdown
* les: linter nitpick
Co-authored-by: Martin Holst Swende <martin@swende.se>
4 years ago
Martin Holst Swende
6a53ce29a4
ethstats: overwrite old errors
4 years ago
Péter Szilágyi
8f24097836
Merge pull request #21427 from karalabe/fix-statesync-delivery-time
...
eth/downloader: save the correct delivery time for state sync
4 years ago
Péter Szilágyi
4b9c0ea76d
eth/downloader: save the correct delivery time for state sync
4 years ago
Péter Szilágyi
3bb8a4ed3f
Merge pull request #21425 from holiman/leslock
...
les: update checktime even if check fails
4 years ago
Martin Holst Swende
983cb25a07
les: update checktime even if check fails
4 years ago
Péter Szilágyi
68754f3931
cmd/utils: grant snapshot cache to trie if disabled ( #21416 )
...
* cmd/utils: grant snapshot cache to trie if disabled
* eth: fix up default non-mainnet cache distribution
4 years ago
timcooijmans
5d4512b113
eth: use maxQueuedTxAnns for to limit the number of transactions announced ( #21419 )
4 years ago
rene
d21303f9dd
cmd/geth: fixes db unavailability for chain commands ( #21415 )
...
* chaincmd should make config nodes instead of full nodes
* add documentation for using makeConfigNode instead of makeFullNode;
* add documentation to functions
* code style
4 years ago
Péter Szilágyi
4fde0cabc1
Merge pull request #21411 from holiman/fix_codelookup
...
core/vm: avoid map lookups for accessing jumpdest analysis
4 years ago
rene
4a04127ce3
cmd/geth: fix import / export issues related to DB unavailability ( #21414 )
...
* should fix import / export issues related to DB unavailability
* document reason for makeConfigNode
* fix comment
* comment consistency
* remove comments
* lint
4 years ago
rene
2de37f28e0
downloader: add eth65 tests ( #21383 )
...
* eth65 tests
linted
* remove non-latest eth light tests
4 years ago
Robert Zaremba
5a88a7cf5b
core: use errors.Is for consensus errors check ( #21095 )
4 years ago
Felix Lange
1d25039ff5
p2p/nat: limit UPNP request concurrency ( #21390 )
...
This adds a lock around requests because some routers can't handle
concurrent requests. Requests are also rate-limited.
The Map function request a new mapping exactly when the map timeout
occurs instead of 5 minutes earlier. This should prevent duplicate mappings.
4 years ago
Martin Holst Swende
8ead45c20b
core/vm: avoid map lookups for accessing jumpdest analysis
4 years ago
Martin Holst Swende
82a9e11058
ethstats: avoid concurrent write on websocket ( #21404 )
...
Fixes #21403
4 years ago
Hao Duan
b35e4fce99
core: avoid modification of accountSet cache in tx_pool ( #21159 )
...
* core: avoid modification of accountSet cache in tx_pool
when runReorg, we may copy the dirtyAccounts' accountSet cache to promoteAddrs
in which accounts will be promoted, however, if we have reset request at the
same time, we may reuse promoteAddrs and modify the cache content which is
against the original intention of accountSet cache. So, we need to make a new
slice here to avoid modify accountSet cache.
* core: fix flatten condition + comment
Co-authored-by: Felix Lange <fjl@twurst.com>
4 years ago
Adam Schmideg
e24e05dd01
cmd/devp2p: print enode:// URL in enrdump ( #21270 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
4 years ago
Natsu Kagami
90dedea40f
signer: EIP 712, parse `bytes` and `bytesX` as hex strings + correct padding ( #21307 )
...
* Handle hex strings for bytesX types
* Add tests for parseBytes
* Improve tests
* Return nil bytes if error is non-nil
* Right-pad instead of left-pad bytes
* More tests
4 years ago
rene
c0c01612e9
node: refactor package node ( #21105 )
...
This PR significantly changes the APIs for instantiating Ethereum nodes in
a Go program. The new APIs are not backwards-compatible, but we feel that
this is made up for by the much simpler way of registering services on
node.Node. You can find more information and rationale in the design
document: https://gist.github.com/renaynay/5bec2de19fde66f4d04c535fd24f0775 .
There is also a new feature in Node's Go API: it is now possible to
register arbitrary handlers on the user-facing HTTP server. In geth, this
facility is used to enable GraphQL.
There is a single minor change relevant for geth users in this PR: The
GraphQL API is no longer available separately from the JSON-RPC HTTP
server. If you want GraphQL, you need to enable it using the
./geth --http --graphql flag combination.
The --graphql.port and --graphql.addr flags are no longer available.
4 years ago