Marius van der Wijden
de971cc845
eth: added trace_call to trace on top of arbitrary blocks ( #21338 )
...
* eth: Added TraceTransactionPending
* eth: Implement Trace_Call, remove traceTxPending
* eth: debug_call -> debug_traceCall, recompute tx environment if pruned
* eth: fix nil panic
* eth: improve block retrieving logic in tracers
* internal/web3ext: add debug_traceCall to console
4 years ago
Péter Szilágyi
f86324edb7
Merge pull request #21504 from karalabe/trie-path-sync
...
core, eth, trie: prepare trie sync for path based operation
4 years ago
Péter Szilágyi
eeaf191633
core, eth, trie: prepare trie sync for path based operation
4 years ago
Martin Holst Swende
3010f9fc75
eth/downloader: change intial download size ( #21366 )
...
This changes how the downloader works, a little bit. Previously, when block sync started,
we immediately started filling up to 8192 blocks. Usually this is fine, blocks are small
in the early numbers. The threshold then is lowered as we measure the size of the blocks
that are filled.
However, if the node is shut down and restarts syncing while we're in a heavy segment,
that might be bad. This PR introduces a more conservative initial threshold of 2K blocks
instead.
4 years ago
ucwong
d90bbce954
go.mod : update goja dependency ( #21432 )
4 years ago
Giuseppe Bertone
5cdb476dd1
"Downloader queue stats" is now provided once per minute ( #21455 )
...
* "Downloader queue stats" is now a DEBUG information
I think this info is more a DEBUG related information then an INFO. If it must remains an INFO, maybe it can be slow down to one time every 5 minutes or so.
* Update queue.go
"Downloader queue stats" information is now provided once every minute instead of once every 10 seconds.
4 years ago
Hanjiang Yu
ff23e265cd
internal: fix personal.sign() ( #21503 )
4 years ago
Fuyang Deng
12d8570322
accounts/abi: fix a bug in getTypeSize method ( #21501 )
...
* accounts/abi: fix a bug in getTypeSize method
e.g. for "Tuple[2]" type, the element of the array is a tuple type and the size of the tuple may not be 32.
* accounts/abi: add unit test of getTypeSize method
4 years ago
Felix Lange
5883afb3ef
rpc: fix issue with null JSON-RPC messages ( #21497 )
4 years ago
libotony
05280a7ae3
eth/tracers: revert reason in call_tracer + error for failed internal calls ( #21387 )
...
* tests: add testdata of call tracer
* eth/tracers: return revert reason in call_tracer
* eth/tracers: regenerate assets
* eth/tracers: add error message even if no exec occurrs, fixes #21438
Co-authored-by: Martin Holst Swende <martin@swende.se>
4 years ago
Péter Szilágyi
d97e0063d5
Merge pull request #21491 from karalabe/state-sync-leak-fix
...
core/state, eth, trie: stabilize memory use, fix memory leak
4 years ago
ucwong
856307d8bb
go.mod | goleveldb latest update ( #21448 )
...
* go.mod | goleveldb latest update
* go.mod update
* leveldb options
* go.mod: double check
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
4 years ago
Marius van der Wijden
16d7eae1c8
eth: updated comments ( #21490 )
4 years ago
Péter Szilágyi
d8da0b3d81
core/state, eth, trie: stabilize memory use, fix memory leak
4 years ago
Marius van der Wijden
92b12ee6c6
accounts/abi/bind/backends: Disallow AdjustTime for non-empty blocks ( #21334 )
...
* accounts/abi/bind/backends: Disallow timeshift for non-empty blocks
* accounts/abi/bind/backends: added tests for adjust time
* accounts/abi/bind/simulated: added comments, fixed test for AdjustTime
* accounts/abi/bind/backends: updated comment
4 years ago
Felix Lange
fc20680b95
params: begin v1.9.21 release cycle
4 years ago
Felix Lange
979fc96899
params: release Geth v1.9.20
4 years ago
Péter Szilágyi
63a9d4b2ae
Merge pull request #21486 from karalabe/cht-1.9.20
...
params: update CHTs for v1.9.20 release
4 years ago
Péter Szilágyi
ce5f94920d
params: update CHTs for v1.9.20 release
4 years ago
Shude Li
341f451083
graphql: add support for retrieving the chain id ( #21451 )
4 years ago
Péter Szilágyi
d13b8e5570
Merge pull request #21483 from karalabe/freezer-truncate-silent
...
core/rawdb: only complain loudly if truncating many items
4 years ago
Péter Szilágyi
5655dce3b8
core/rawdb: only complain loudly if truncating many items
4 years ago
timcooijmans
7b5107b73f
p2p/discover: avoid dropping unverified nodes when table is almost empty ( #21396 )
...
This change improves discovery behavior in small networks. Very small
networks would often fail to bootstrap because all member nodes were
dropping table content due to findnode failure. The check is now changed
to avoid dropping nodes on findnode failure when their bucket is almost
empty. It also relaxes the liveness check requirement for FINDNODE/v4
response nodes, returning unverified nodes as results when there aren't
any verified nodes yet.
The "findnode failed" log now reports whether the node was dropped
instead of the number of results. The value of the "results" was
always zero by definition.
Co-authored-by: Felix Lange <fjl@twurst.com>
4 years ago
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