gary rong
378e961d85
cmd, eth, les: enable serving light clients when non-synced ( #22250 )
...
This PR adds a more CLI flag, so that the les-server can serve light clients even the local node is not synced yet.
This functionality is needed in some testing environments(e.g. hive). After launching the les server, no more blocks will be imported so the node is always marked as "non-synced".
4 years ago
Péter Szilágyi
96d9306413
Merge pull request #22381 from karalabe/lower-error-log
...
eth/protocols/snap: lower abortion and resumption logs to debug
4 years ago
Péter Szilágyi
b2b5c82aca
eth/protocols/snap: lower abortion and resumption logs to debug
4 years ago
rene
8e547eecd5
cmd/utils: remove deprecated command line flags ( #22263 )
...
This removes support for all deprecated flags except --rpc*.
4 years ago
Péter Szilágyi
f54dc4ab3d
travis: manually install Android since Travis is stale ( #22373 )
4 years ago
Péter Szilágyi
bf5b379b13
Merge pull request #22369 from karalabe/android-bionic-builder
...
travis: bump builders to Bionic
4 years ago
Péter Szilágyi
70afe15f68
travis: bump builders to Bionic
4 years ago
Péter Szilágyi
b502c86662
Merge pull request #22368 from karalabe/ndk-bump
...
travis: bump Android NDK version
4 years ago
Péter Szilágyi
c9aa267049
travis: bump Android NDK version
4 years ago
Péter Szilágyi
cdb6a84339
Merge pull request #22350 from karalabe/disable-preimage-collection
...
cmd/utils: disable caching preimages by default
4 years ago
Péter Szilágyi
4ee8d2d305
travis, appveyor, build, Dockerfile: bump Go to 1.16 ( #22351 )
...
* travis, appveyor, build: bump Go to 1.16
* accounts/abi/bind: fix up Go mod files for Go 1.16
4 years ago
Péter Szilágyi
2743fb0429
Dockerfile: bump to Go 1.16 base images
4 years ago
Péter Szilágyi
2d1a0e9b03
accounts/abi/bind: fix up Go mod files for Go 1.16
4 years ago
Marius van der Wijden
142fbcfd6f
internal/ethapi: reject non-replay-protected txs over RPC ( #22339 )
...
This PR prevents users from submitting transactions without EIP-155 enabled. This behaviour can be overridden by specifying the flag --rpc.allow-unprotected-txs=true.
4 years ago
Martin Holst Swende
c4a2b682ff
cmd/geth: add db commands stats, compact, put, get, delete ( #22014 )
...
This PR introduces:
- db.put to put a value into the database
- db.get to read a value from the database
- db.delete to delete a value from the database
- db.stats to check compaction info from the database
- db.compact to trigger a db compaction
It also moves inspectdb to db.inspect.
4 years ago
gary rong
3ecfdccd9a
les: clean up server handler ( #22357 )
4 years ago
Felföldi Zsolt
8f03e3b107
tests/fuzzers/les: add fuzzer for les server handler ( #22282 )
...
* les: refactored server handler
* tests/fuzzers/les: add fuzzer for les server handler
* tests, les: update les fuzzer
tests: update les fuzzer
tests/fuzzer/les: release resources
tests/fuzzer/les: pre-initialize all resources
* les: refactored server handler and fuzzer
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
4 years ago
Felföldi Zsolt
8647233a8e
les: fix balance expiration ( #22343 )
...
* les/lespay/server: fix balance expiration and add test
* les: move client balances to a new db
* les: rename lespayDb to lesDb
4 years ago
Péter Szilágyi
c5023e1dc5
travis, appveyor, build: bump Go to 1.16
4 years ago
Péter Szilágyi
ca76db6116
cmd/utils: disable caching preimages by default
4 years ago
Felföldi Zsolt
c027507e03
les: renamed lespay to vflux ( #22347 )
4 years ago
Felix Lange
d36276d85e
p2p/dnsdisc: fix hot-spin when all trees are empty ( #22313 )
...
In the random sync algorithm used by the DNS node iterator, we first pick a random
tree and then perform one sync action on that tree. This happens in a loop until any
node is found. If no trees contain any nodes, the iterator will enter a hot loop spinning
at 100% CPU.
The fix is complicated. The iterator now checks if a meaningful sync action can
be performed on any tree. If there is nothing to do, it waits for the next root record
recheck time to arrive and then tries again.
Fixes #22306
4 years ago
Martin Holst Swende
6ec1561044
eth: implement eth66 ( #22241 )
...
* eth/protocols/eth: split up the eth protocol handlers
* eth/protocols/eth: define eth-66 protocol messages
* eth/protocols/eth: poc implement getblockheaders on eth/66
* eth/protocols/eth: implement remaining eth-66 handlers
* eth/protocols: define handler map for eth 66
* eth/downloader: use protocol constants from eth package
* eth/protocols/eth: add ETH66 capability
* eth/downloader: tests for eth66
* eth/downloader: fix error in tests
* eth/protocols/eth: use eth66 for outgoing requests
* eth/protocols/eth: remove unused error type
* eth/protocols/eth: define protocol length
* eth/protocols/eth: fix pooled tx over eth66
* protocols/eth/handlers: revert behavioural change which caused tests to fail
* eth/downloader: fix failing test
* eth/protocols/eth: add testcases + fix flaw with header requests
* eth/protocols: change comments
* eth/protocols/eth: review fixes + fixed flaw in RequestOneHeader
* eth/protocols: documentation
* eth/protocols/eth: review concerns about types
4 years ago
Martin Holst Swende
b1835b3855
node: always show websocket url in logs ( #22307 )
4 years ago
Or Neeman
9ec32a9e7b
rlp: handle case of normal EOF in Stream.readFull ( #22336 )
...
io.Reader may return n > 0 and io.EOF at the end of the input stream.
readFull did not handle this correctly, looking only at the error. This fixes
it to check for n == len(buf) as well.
4 years ago
Martin Holst Swende
52e5c38aa5
core/state: copy the snap when copying the state ( #22340 )
...
* core/state: copy the snap when copying the state
* core/state: deep-copy snap stuff during state Copy
4 years ago
Martin Holst Swende
e01096f531
eth/handler, broadcast: optimize tx broadcast mechanism ( #22176 )
...
This PR optimizes the broadcast loop. Instead of iterating twice through a given set of transactions to weed out which peers have and which do not have a tx, to send/announce transactions, we do it only once.
4 years ago
Péter Szilágyi
1489c3f494
Merge pull request #22334 from karalabe/fix-snap-cancel
...
eth: fix snap sync cancellation
4 years ago
rene
f9445e93bb
cmd/devp2p/internal/ethtest: use shared message types ( #22315 )
...
This updates the eth protocol test suite to use the message type
definitions of the 'production' protocol implementation in eth/protocols/eth.
4 years ago
Péter Szilágyi
bfdff4c5b8
eth: fix snap sync cancellation
4 years ago
Péter Szilágyi
6291fc9230
Merge pull request #22331 from karalabe/enforce-min-snap-difflayers
...
core/state/snapshot: ensure Cap retains a min number of layers
4 years ago
Péter Szilágyi
9ec3329899
core/state/snapshot: ensure Cap retains a min number of layers
4 years ago
Péter Szilágyi
915c614959
Merge pull request #22332 from karalabe/fix-fastsync-restart-bloom-crash
...
trie: fix bloom crash on fast sync restart
4 years ago
Guillaume Ballet
f4fcd4f506
rpc: increase the number of subscriptions in storm test ( #22316 )
4 years ago
Péter Szilágyi
e991bdae24
trie: fix bloom crash on fast sync restart
4 years ago
Alex Mazalov
77787802fe
cmd/geth: fix js unclean shutdown ( #22302 )
4 years ago
Guillaume Ballet
08c878acd2
cmd/utils: add workaround for FreeBSD statfs quirk ( #22310 )
...
Make geth build on FreeBSD, fixes #22309 .
4 years ago
Felföldi Zsolt
7d1b711c7d
les: enable les/4 and add tests ( #22321 )
4 years ago
Péter Szilágyi
2fc465a7be
Merge pull request #22319 from karalabe/fix-defer-leak
...
core: fix temp memory blowup caused by defers holding on to state
4 years ago
Péter Szilágyi
ef227c5f42
core: fix temp memory blowup caused by defers holding on to state
4 years ago
rene
111abdcfbd
cmd/devp2p: fix documentation for eth-test ( #22298 )
4 years ago
Péter Szilágyi
1bbc8a1944
Merge pull request #22293 from karalabe/txunindex-1year
...
cmd/utils, eth/ethconfig: unindex txs older than ~1 year
4 years ago
Péter Szilágyi
409b16e5ab
cmd/utils, eth/ethconfig: unindex txs older than ~1 year
4 years ago
Marius van der Wijden
cb3c7e4319
accounts/abi/bind: fixed unpacking error ( #22230 )
...
There was a dormant error with structured inputs that failed unpacking.
This commit fixes the error by switching casting to the better abi.ConvertType function.
It also adds a test for calling a view function that returns a struct
4 years ago
Sina Mahmoodi
27786671d2
internal/debug: add switch to format logs with json ( #22207 )
...
adds a flag --log.json which if enabled makes the client format logs with JSON.
4 years ago
Péter Szilágyi
2fdba3aacb
Merge pull request #22294 from holiman/pruner_compact_fix
...
core/state/pruner: fix compaction range error
4 years ago
Martin Holst Swende
74dbc20260
core/state/pruner: fix compaction range error
4 years ago
Péter Szilágyi
944d901436
Merge pull request #22291 from karalabe/fix-pruner-compaction
...
core/state/pruner: fix compaction after pruning
4 years ago
Péter Szilágyi
2728672c28
core/state/pruner: fix compaction after pruning
4 years ago
Péter Szilágyi
123e934e72
Merge pull request #22288 from karalabe/1.10.unstable
...
params: just to make snapshots a bit more official
4 years ago