Commit Graph

12823 Commits

Author SHA1 Message Date
ledgerwatch
5aab794c9b
Headers poc 4 - intermediate changes (#1125)
* Process BlockHeadersMsg

* Print invalidations

* Print reason for parent-child mismatch

* Fix off by one error

* Fix ExtendDown

* Replace tipLimiter with an LRU cache

* Retrieve 256 headers at a time

* Hard coding of tips, process new block hashes

* extract headers

* Write hard-coded headers into a file

* Add total difficulty

* Insert hard coded headers

* Log i

* Initiate download from hard-coded anchors

* Print the state of anchors

* Add hard-coded headers as tips

* Spare the peers

* Refine LRU caching of tips

* Print length of anchor trees

* Limit requests to 192 headers

* range error fix

* Print better, retain at least one tip in the LRU cache

* Skip duplicate line ends

* Throttle requests, display peer name

* Back off, intermediate tip queue

* Print block header timestamp

* Better logging

* Log less

* More logging of evictions

* Fix queue push

* Fix queue pop

* Exclude duplicate tips

* Fix tips logging

* Fix moving

* Add port flag

* Check headers

* Print extra

* Add mixDigest to serialisation

* Fix difficulty in hard-coded headers

* Avoid duplicate header requests

* Update peer characteristics on NewBlockMsg

* Remove backoff when peer responds

* Fix tests

* Fix lint

* Fix lint
2020-09-20 10:47:24 +01:00
Giulio rebuffo
d33302c2be
Mutual TLS authentication (for now without verifying the Common Name) (#1113)
* added tls auth

* added client side

* put --tls

* fixed flag

* Add key/cert generation instructions, turn off Common Name verification

* Add CLI arguments and Warning

* Lint

* Update the doc about Internal IP

Co-authored-by: Alexey Akhunov <akhounov@gmail.com>
2020-09-19 15:16:04 +01:00
ledgerwatch
64e1a8fbd4
Fix chaindata option in RPCdaemon (#1123) 2020-09-18 11:23:35 +01:00
Igor Mandrigin
be2100766c begin 2020.09.04 release cycle 2020-09-17 14:27:55 +02:00
Igor Mandrigin
f956550671 update skip_analysis 2020-09-17 14:24:04 +02:00
Alex Sharov
a112183ceb
fix logidx (#1122)
* fix logidx

* derive fields already dose set index

* start from zero
2020-09-17 13:19:11 +02:00
Thomas Jay Rush
f596a631af
1075 RPC additions and cleanup of README (#1117)
* Rewrite of README for clarity and expanding implementation table

* Small cleanups for web3_api.go

* Changed GetReceipts function to non-export (getRecipts) and cleaned up comments

* Added a comment for GetLogsByHash

* Add support for eth_protocolVersion and eth_chainId

* Adding comments and re-ordering fields to agree with Parity's ordering

* Added support for eth_listening. Moved net_version to same file as others

* Setup for adding eth_gasPrice
2020-09-15 17:44:28 +01:00
Igor Mandrigin
4f77472717
Expose TX instead of DB (#1118) 2020-09-15 16:36:35 +02:00
Igor Mandrigin
53557c3137
Update flags.go (#1116) 2020-09-14 15:48:08 +02:00
Igor Mandrigin
adf52465e3
move ./trie to ./turbo/trie (#1114)
Useful for minimizing merge conflicts when rebasing new geth
2020-09-14 11:33:39 +01:00
Thomas Jay Rush
e5f8073d75
1084 various rpc fixes (#1111)
* Fixes issue #1110 - eth_getStorageAt returning inconsistent values

* Adds support for various eth_getUncle calls

* Adding a couple of comments

* Adding support for eth_getTransactionCount

* Cleaning up README's

* Cleaning up README for rpcdaemon

Co-authored-by: tjayrush <jrush@greathill.com>
2020-09-14 07:59:07 +01:00
Alex Sharov
3a4eb3db3e
Fix metrics conflict with pporf (#1112) 2020-09-14 12:05:35 +07:00
Thomas Jay Rush
065e658f42
Corrects incorrect return from eth_getCode for non-contract accounts (#1109) 2020-09-13 07:06:39 +01:00
ledgerwatch
a98469c6cd
Remove changeset processing in FindHistory (#1105) 2020-09-12 08:24:13 +01:00
ledgerwatch
5d89a7e61b
Add files via upload 2020-09-12 07:30:10 +01:00
ledgerwatch
ad1d9dfdd9
Add files via upload 2020-09-12 07:26:36 +01:00
Thomas Jay Rush
752793264b
Fixes issue #1103 (#1106) 2020-09-12 06:33:07 +01:00
ledgerwatch
0f24a01677
Close the ticker (#1104) 2020-09-11 21:44:24 +01:00
Giulio rebuffo
23d89c0941
Added TLS handshake to RPCDaemon (#1089)
* added eth_getStorageAt

* used uint32

* now its 256

* incarnation

* added TLS handshake

* code minified

* lint

* minified client

* Update flags.go

Co-authored-by: Alexey Akhunov <akhounov@gmail.com>
2020-09-11 21:17:37 +01:00
Thomas Jay Rush
fdb82d87f1
1070 eth get code (#1100)
* Fixing issue #1070 Add eth_getCode

* Adding eth_getCode to README
2020-09-11 20:20:00 +01:00
Igor Mandrigin
eca39e12f2
Fix reproducible builds (#1099) 2020-09-11 18:42:33 +02:00
Igor Mandrigin
5339ca0968
Merge pull request #1102 from ledgerwatch/geth-1.9.21
Geth 1.9.21
2020-09-11 17:42:02 +01:00
Igor Mandrigin
997b995191 linters3 2020-09-11 18:15:33 +02:00
Igor Mandrigin
49d84c33b9 linters2 2020-09-11 18:14:24 +02:00
Igor Mandrigin
eb226f9de3 linter1 2020-09-11 18:12:39 +02:00
Igor Mandrigin
fca3684095 fix tests (simulated_backend) 2020-09-11 18:02:55 +02:00
Igor Mandrigin
9bc57439be fix tests (downloader) 2020-09-11 17:36:59 +02:00
Igor Mandrigin
17d0b20a94 compile fixes 2020-09-11 16:53:34 +02:00
Igor Mandrigin
6aa334f672 post-merge fixups 2020-09-11 16:46:24 +02:00
Igor Mandrigin
dc9460bbaf fixups 2020-09-11 16:45:11 +02:00
Péter Szilágyi
20ec4436e2 params: release Geth v1.9.21
# Conflicts:
#	params/version.go
2020-09-11 16:30:35 +02:00
Péter Szilágyi
329badfa76 params: update CHTs for v1.9.21 release 2020-09-11 16:30:00 +02:00
Guillaume Ballet
27ec5da6c2 .github: remove whisper from CODEOWNERS (#21527) 2020-09-11 16:29:50 +02:00
Martin Holst Swende
4565650f1e accounts/usbwallet, signer/core: show accounts from ledger legacy derivation paths (#21517)
* accounts/usbwallet, signer/core: un-hide accounts from ledger legacy derivation paths

* Update accounts/usbwallet/wallet.go

* Update signer/core/api.go

* Update signer/core/api.go
2020-09-11 16:29:31 +02:00
Guillaume Ballet
3c28a21d80 whisper: remove whisper (#21487)
* whisper: remove whisper

* Update cmd/geth/config.go

Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>

* cmd/geth: warn on enabling whisper + remove more whisper deps

* mobile: remove all whisper references

Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
Co-authored-by: Martin Holst Swende <martin@swende.se>
# Conflicts:
#	cmd/geth/config.go
#	cmd/geth/consolecmd_test.go
#	cmd/geth/usage.go
#	cmd/utils/flags.go
#	mobile/geth.go
#	mobile/types.go
2020-09-11 16:29:21 +02:00
Osoro Bironga
a953a7f330 accounts: abi/bid/backends; cleaned doc errors, camelCase refactors and anonymous variable assignments (#21514)
Co-authored-by: Osoro Bironga <osoro@doctaroo.com>
# Conflicts:
#	accounts/abi/bind/backends/simulated.go
#	accounts/abi/bind/backends/simulated_test.go
2020-09-11 16:26:59 +02:00
Marius van der Wijden
369c868f9b 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
# Conflicts:
#	eth/api.go
#	eth/api_tracer.go
2020-09-11 16:25:13 +02:00
Péter Szilágyi
451f2a59ac core, eth, trie: prepare trie sync for path based operation
# Conflicts:
#	core/state/sync_test.go
#	eth/downloader/statesync.go
#	trie/secure_trie.go
#	trie/sync.go
#	trie/sync_test.go
#	trie/trie.go
2020-09-11 16:23:03 +02:00
Martin Holst Swende
ea8fe080b3 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.

# Conflicts:
#	eth/downloader/downloader.go
#	eth/downloader/downloader_test.go
#	eth/downloader/testchain_test.go
2020-09-11 16:22:10 +02:00
ucwong
2587671b2f go.mod : update goja dependency (#21432) 2020-09-11 16:06:07 +02:00
Giuseppe Bertone
b2f258f55f "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.
2020-09-11 16:05:59 +02:00
Hanjiang Yu
125f37532f internal: fix personal.sign() (#21503) 2020-09-11 16:05:42 +02:00
Fuyang Deng
e71b99ae9a 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
2020-09-11 16:05:31 +02:00
Felix Lange
3e48b6e444 rpc: fix issue with null JSON-RPC messages (#21497) 2020-09-11 16:04:59 +02:00
libotony
3825fcaf73 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>
2020-09-11 16:04:51 +02:00
Marius van der Wijden
4b8f938436 eth: updated comments (#21490)
# Conflicts:
#	eth/api.go
2020-09-11 16:04:25 +02:00
Péter Szilágyi
313c969c3e core/state, eth, trie: stabilize memory use, fix memory leak
# Conflicts:
#	core/state/statedb.go
#	core/state/sync.go
#	eth/downloader/downloader.go
#	trie/committer.go
#	trie/sync.go
#	trie/trie.go
#	trie/trie_test.go
2020-09-11 16:01:27 +02:00
Marius van der Wijden
2765d0b939 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
# Conflicts:
#	accounts/abi/bind/backends/simulated.go
2020-09-11 15:59:35 +02:00
Felix Lange
13a3578f88 params: begin v1.9.21 release cycle
# Conflicts:
#	params/version.go
2020-09-11 15:57:18 +02:00
Igor Mandrigin
b570d027e7 add to-merge 2020-09-11 15:56:34 +02:00