Martin Holst Swende
e458b4248b
trie, core/state: fix review concerns
2020-01-29 09:38:04 +01:00
Martin Holst Swende
075e7552a5
trie: rename pure_committer/hasher to committer/hasher
2020-01-29 09:38:03 +01:00
Martin Holst Swende
a2085bf678
trie: deprecate hasher.go, make proof framework use new hasher
2020-01-29 09:38:03 +01:00
Martin Holst Swende
ad914810cf
trie: fix misspell+lint
2020-01-29 09:38:03 +01:00
Martin Holst Swende
ed1e0c3dc7
trie: start deprecating old hasher
2020-01-29 09:38:03 +01:00
Martin Holst Swende
b809acc9b0
trie: review feedback, mainly docs + minor changes
2020-01-29 09:38:02 +01:00
Martin Holst Swende
d76431b8df
core/state, trie: avoid unnecessary storage trie load+commit
2020-01-29 09:38:02 +01:00
Martin Holst Swende
853a69141a
trie: linter nitpicks
2020-01-29 09:38:02 +01:00
Martin Holst Swende
3a34e93c6c
core/state: minor optimization in state onleaf allocation
2020-01-29 09:38:01 +01:00
Martin Holst Swende
0c86a2c5a6
trie: use dedicated committer/hasher
2020-01-29 09:38:01 +01:00
Martin Holst Swende
ad1117ad71
trie: implement dedicated committer and hasher
2020-01-29 09:38:01 +01:00
Martin Holst Swende
1ed51e97a3
trie: make db insert use size instead of full data
2020-01-29 09:37:39 +01:00
Felix Lange
a903912b96
rpc: check module availability at startup ( #20597 )
...
Fixes #20467
Co-authored-by: meowsbits <45600330+meowsbits@users.noreply.github.com>
2020-01-28 10:37:08 +01:00
Zhou Zhiyao
44c365c3e2
rpc: reset writeConn when conn is closed on readErr ( #20414 )
...
This change makes the client attempt to reconnect when a write fails.
We already had reconnect support, but the reconnect would previously
happen on the next call after an error. Being more eager leads to a
smoother experience overall.
2020-01-27 14:03:15 +01:00
Guillaume Ballet
7b68975a00
console, internal/jsre: use github.com/dop251/goja ( #20470 )
...
This replaces the JavaScript interpreter used by the console with goja,
which is actively maintained and a lot faster than otto. Clef still uses otto
and eth/tracers still uses duktape, so we are currently dependent on three
different JS interpreters. We're looking to replace the remaining uses of otto
soon though.
2020-01-27 11:50:48 +01:00
Guillaume Ballet
60deeb103e
cmd/evm: accept --input for disasm command ( #20548 )
2020-01-27 10:05:21 +01:00
Martin Holst Swende
0b284f6c6c
cmd/geth/retesteth: use canon head instead of keeping alternate count ( #20572 )
2020-01-23 20:55:56 +01:00
Guillaume Ballet
8a5c81349e
eth: fix comment typo in handler.go ( #20575 )
2020-01-23 16:08:06 +01:00
Martin Holst Swende
33c56ebc67
cmd: implement abidump ( #19958 )
...
* abidump: implement abi dump command
* cmd/abidump: add license
2020-01-21 15:51:36 +01:00
Felix Lange
31baf3a9af
log, internal/debug: delete RotatingFileHandler ( #20586 )
...
* log: delete RotatingFileHandler
We added this for the dashboard, which is gone now. The
handler never really worked well and had data race and file
handling issues.
* internal/debug: remove unused RotatingFileHandler setup code
2020-01-21 14:57:33 +02:00
Péter Szilágyi
ad2fc7c6a6
params: begin Geth v1.9.11 release cycle
2020-01-20 12:32:47 +02:00
Péter Szilágyi
58cf5686ea
params: release Geth v1.9.10
2020-01-20 12:27:51 +02:00
Péter Szilágyi
b4aa4a6965
Merge pull request #20580 from karalabe/cht-1.9.10
...
params: update CHTs for v1.9.10 release
2020-01-20 11:18:37 +02:00
gary rong
b88b4632c2
core: fix chain indexer unit test ( #20506 )
2020-01-20 10:38:08 +02:00
Péter Szilágyi
1f1cefc036
params: update CHTs for v1.9.10 release
2020-01-20 10:28:49 +02:00
Péter Szilágyi
4c8fcd93da
Merge pull request #20579 from karalabe/android-go-1.13.6
...
travis: bump Android builder to Go 1.13.6
2020-01-20 00:55:00 +02:00
Péter Szilágyi
fcc84c38dd
travis: bump Android builder to Go 1.13.6
2020-01-20 00:54:20 +02:00
Péter Szilágyi
6d200efe72
Merge pull request #20578 from karalabe/win-go-1.13.6
...
appveyor: bump Go to 1.13.6 on Windows
2020-01-20 00:53:13 +02:00
Péter Szilágyi
92956e2930
appveyor: bump Go to 1.13.6 on Windows
2020-01-20 00:50:59 +02:00
Martin Holst Swende
9b09c0fc83
* trie: utilize callbacks instead of amassing lists in ref/unref ( #20529 )
...
* 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
2020-01-17 13:59:45 +02:00
gary rong
770316dc20
core, light: write chain data in atomic way ( #20287 )
...
* core: write chain data in atomic way
* core, light: address comments
* core, light: fix linter
* core, light: address comments
2020-01-17 12:49:32 +02:00
Felix Lange
0af96d2556
cmd/devp2p: submit Route53 changes in batches ( #20524 )
...
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.
2020-01-17 11:32:29 +01:00
Felix Lange
d5acc5ed9e
p2p: ensure Server.loop is ticking even if discovery hangs ( #20573 )
...
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.
2020-01-17 12:29:16 +02:00
Felix Lange
fcafa0baa5
p2p: wait for listener goroutines on shutdown ( #20569 )
...
* p2p: wait for goroutine exit, fixes #20558
* p2p: wait for all slots on exit
Co-authored-by: Martin Holst Swende <martin@swende.se>
2020-01-16 14:10:15 +02:00
Guillaume Ballet
1ee754b056
build: upgrade golangci to 1.22.2 ( #20566 )
...
* build: upgrade golangci to 1.22.2
* .golangci.yml: don't fail on asset deadcode
2020-01-16 14:09:38 +02:00
Péter Szilágyi
b3b8d36995
Merge pull request #20570 from karalabe/ppa-focal-go-1.13.6
...
travis, build: enable Ubuntu Focal and Go 1.13.6 on PPA
2020-01-16 14:09:00 +02:00
Péter Szilágyi
9b32f592dc
travis, build: enable Ubuntu Focal and Go 1.13.6 on PPA
2020-01-16 13:28:32 +02:00
Felix Lange
3e97b04a3d
build: put GOPATH in /tmp on launchpad ( #20564 )
...
* build: put GOPATH in /tmp on launchpad
* build: don't remove GOPATH from go tool environment
2020-01-16 13:03:41 +02:00
Martin Holst Swende
f20c8d495a
eth: increase timeout to fix a spurious travis test failure ( #20560 )
2020-01-15 15:30:50 +01:00
Felix Lange
8704e8a8fc
build: fix makefile HOME reference ( #20562 )
2020-01-15 12:38:35 +02:00
Felix Lange
94e8418939
build: attempt to fix debian build failure without GOPATH ( #20561 )
2020-01-15 11:37:31 +02:00
Felix Lange
feda78e052
build: remove env.sh ( #20541 )
...
* 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
2020-01-14 14:13:14 +02:00
Péter Szilágyi
8592a57553
Merge pull request #20555 from holiman/cripple_txsize
...
core: set max tx size down to 2 slots (64KB)
2020-01-14 13:18:22 +02:00
Martin Holst Swende
b2de0bd87b
core: set max tx size down to 2 slots (64KB)
2020-01-14 11:49:36 +01:00
Péter Szilágyi
e9e69d6e29
Merge pull request #20546 from karalabe/validate-block-broadcast
...
eth: check propagated block malformation on receiption
2020-01-13 15:19:14 +02:00
Péter Szilágyi
a90cc66f3c
eth: check propagated block malformation on receiption
2020-01-13 14:23:54 +02:00
MichaelRiabzev-StarkWare
8bd37a1d91
core: count tx size in slots, bump max size ot 4x32KB ( #20352 )
...
* 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>
2020-01-10 11:40:03 +02:00
Péter Szilágyi
b5c4ea56b8
Merge pull request #20540 from holiman/verbose_panic
...
core/state: add more verbosity to panic
2020-01-10 11:36:21 +02:00
Martin Holst Swende
fc392395fb
core/state: add more verbosity to panic
2020-01-10 10:12:32 +01:00
Péter Szilágyi
b211742e5f
Revert "eth: refactor creation of EthAPIBackend ( #20476 )" ( #20536 )
...
This reverts commit a1bc0e3cb6 .
2020-01-09 13:26:37 +02:00