Péter Szilágyi
61a20cb56d
core: check error before accessing potentially nil block
2019-07-18 15:26:22 +03:00
Felix Lange
f088c650a5
all: replace t.Log(); t.FailNow() with t.Fatal() ( #19849 )
2019-07-18 15:21:24 +03:00
Guillaume Ballet
9466b9eec5
signer/core: fix reference issue in key derivation ( #19827 )
...
* signer/core: fix reference issue in key derivation
* Review feedback
2019-07-18 15:17:32 +03:00
大彬
4ac04ae0fe
all: replace fmt.Print* calls with t.Log* in tests ( #19670 )
2019-07-17 13:20:24 +02:00
gary rong
8f80cafa10
core: fix write concurrency in txpool ( #19835 )
...
* core: fix write coucurrency in txpool
* core: add rlock for pendingState read access
* core: address comments
2019-07-17 13:39:41 +03:00
David Chase
31a1f164d9
common/bitutil: use result of TestBytes to prevent dead code elimination ( #19846 )
...
Gollvm has very aggressive dead code elimination that completely
removes one of these two benchmarks. To prevent this, use the
result of the benchmark (a boolean), and to be "fair", make the
transformation to both benchmarks.
To be reliably assured of not removing the code, "use" means
assigning to an exported global. Non-exported globals and
//go:noinline functions are possibly subject to this optimization.
2019-07-17 10:23:43 +02:00
jwasinger
6bd896a97f
eth: add debug_accountRange ( #17438 )
...
This adds the debug_accountRange method which returns all accounts in
the state for a given block and transaction index.
2019-07-13 15:48:55 +02:00
cdetrio
49a7ee460e
eth: fix storageRangeAt for empty blocks ( #18076 )
2019-07-12 17:43:07 +02:00
gary rong
252150918c
cmd, eth: fix dump config issue ( #19825 )
...
* eth: fix error when dump config with nil checkpoint
* cmd/utils: ignore default datadir if it's already set.
2019-07-11 14:37:08 +03:00
Péter Szilágyi
72029f0f88
params: begin Geth v1.9.1 release cycle
2019-07-10 10:42:44 +03:00
Péter Szilágyi
52f2461774
params: release Geth v1.9.0
2019-07-10 10:41:15 +03:00
Péter Szilágyi
54d0eeb494
Merge pull request #19818 from rjl493456442/encap-les
...
cmd: encapsulate les relative cli options
2019-07-10 09:29:14 +03:00
Péter Szilágyi
c705aac826
cmd, eth, les: make les flags conform to dotted style
2019-07-10 09:12:07 +03:00
rjl493456442
c6a9616cfd
cmd: encapsulate les relative cli options
2019-07-10 08:32:26 +03:00
Péter Szilágyi
8c4bc4f7ef
Merge pull request #19814 from karalabe/ulc-fixup
...
cmd, eth, les: fix up ultra light config integration
2019-07-10 08:31:35 +03:00
Péter Szilágyi
e970d60d37
Merge pull request #19815 from karalabe/go-1.12.7
...
appveyor: bump builder to Go 1.12.7
2019-07-09 21:04:31 +03:00
Péter Szilágyi
2808bc68b9
appveyor: bump builder to Go 1.12.7
2019-07-09 21:03:37 +03:00
Péter Szilágyi
213690cdfd
cmd, eth, les: fix up ultra light config integration
2019-07-09 20:34:42 +03:00
Sheldon
7527215a68
core/state: fix random test args ( #19255 )
2019-07-09 10:32:27 +02:00
Péter Szilágyi
8c249cb82f
Merge pull request #19810 from karalabe/txpool-noncer
...
core: kill off managed state, use own tiny noncer for txpool
2019-07-09 11:02:13 +03:00
Péter Szilágyi
a966425a1d
core: kill off managed state, use own tiny noncer for txpool
2019-07-09 10:42:09 +03:00
Péter Szilágyi
5873c01c3d
Merge pull request #19807 from karalabe/cht
...
params: bump all CHTs, deploy all checkpoint oracles
2019-07-09 02:19:49 +03:00
Péter Szilágyi
1bed5afd92
params: bump all CHTs, deploy all checkpoint oracles
2019-07-09 02:05:01 +03:00
gary rong
16e313699f
cmd/puppeth: integrate blockscout ( #18261 )
...
* cmd/puppeth: integrate blockscout
* cmd/puppeth: expose debug namespace for blockscout
* cmd/puppeth: fix dbdir
* cmd/puppeth: run explorer in archive mode
* cmd/puppeth: ensure node is synced
* cmd/puppeth: fix explorer docker alignment + drop unneeded exec
* cmd/puppeth: polish up config saving and reloading
* cmd/puppeth: check both web and p2p port for explorer service
2019-07-08 20:49:11 +03:00
Felix Lange
fa538ee7ed
p2p/discover: improve randomness of ReadRandomNodes ( #19799 )
...
Make it select from all live nodes instead of selecting the heads of
random buckets.
2019-07-08 18:58:03 +03:00
Péter Szilágyi
983f92368b
core/forkid: implement the forkid EIP, announce via ENR ( #19738 )
...
* eth: chain config (genesis + fork) ENR entry
* core/forkid, eth: protocol independent fork ID, update to CRC32 spec
* core/forkid, eth: make forkid a struct, next uint64, enr struct, RLP
* core/forkid: change forkhash rlp encoding from int to [4]byte
* eth: fixup eth entry a bit and update it every block
* eth: fix lint
* eth: fix crash in ethclient tests
2019-07-08 18:53:47 +03:00
Felix Lange
cc0f0e27a6
p2p: remove "cap" enr entry ( #19800 )
...
This entry was an experiment, but we're moving on to the
entry-per-protocol instead.
2019-07-08 18:41:41 +03:00
gary rong
22060611fb
cmd/abigen: refactor command line interface ( #19797 )
...
* cmd, common: refactor abigen command line interface
* cmd/abigen: address comment
2019-07-08 14:59:07 +02:00
Martin Holst Swende
cdfe9a3a2a
eth, les: add sanity checks for unbounded block fields ( #19573 )
...
This PR adds some hardening in the lower levels of the protocol stack, to bail early on invalid data. Primarily, attacks that this PR protects against are on the "annoyance"-level, which would otherwise write a couple of megabytes of data into the log output, which is a bit resource intensive.
2019-07-08 11:42:22 +02:00
Guillaume Ballet
5bc9ccfa0a
accounts/abi/bind: link dependent libs in deploy ( #19718 )
...
* accounts, abigen: link dependent libs in deploy
* abigen: add java generation
* bind: Fix unit tests
* abigen: add unit test
* Fix CI
* Post-rebase fixes
* Fix rebase issue
* accounts/abi: Gary's review feedback
* accounts/abi: More Gary feedback
* accounts/abi: minor fixes
2019-07-08 10:27:05 +02:00
Martin Holst Swende
f2eb3b1c56
core: lessen mem-spike during 1.8->1.9 conversion ( #19610 )
...
* core/blockchain: lessen mem-spike during 1.8->1.9 conversion
* core/blockchain.go: make levedb->freezer conversion gradually
* core/blockchain: write the batch
2019-07-08 11:24:16 +03:00
Martin Holst Swende
7fd82a0e3e
p2p: add address info to peer event reporting ( #19716 )
2019-07-05 20:27:13 +02:00
Guillaume Ballet
dcc4adfcd7
cmd/geth: wrong memory size sanitizing on OpenBSD ( #19793 )
2019-07-05 13:13:21 +03:00
Guillaume Ballet
d9c75cd10e
accounts/abi/bind: fix typo in comments ( #19791 )
2019-07-04 10:00:34 +02:00
gary rong
6814797173
accounts, cmd, contracts, les: integrate clef for transaction signing ( #19783 )
...
* accounts, cmd, contracts, les: integrate clef for transaction signing
* accounts, cmd/checkpoint-admin, signer/core: minor fixups
2019-07-03 22:54:59 +03:00
gary rong
59a3198382
les: remove half-finished priority pool APIs ( #19780 )
...
* les: remove half-finish APIs
* les: remove half-finish APIs
2019-07-03 21:23:06 +03:00
Guillaume Ballet
8d2cf028a5
vendor: update karalabe/usb to fix CGO=0 builds ( #19790 )
2019-07-03 18:22:27 +03:00
gary rong
5f5de49cd9
accounts/abi: enable struct golang binding generation ( #18491 )
...
* accounts/abi, cmd/abigen: support tuple
accounts/abi/bind, cmd/abigen: add objc back
accounts/abi/bind: use byte[24] as function indicator
accounts/abi/bind: resolve struct slice or array
accounts/abi/bind: remove sort logic
accounts: fix issues in abi
* accounts/abi: address comment
2019-07-03 12:17:43 +02:00
gary rong
ca6c8c2af4
core: fix receipt insertion ( #19764 )
2019-07-03 11:19:15 +03:00
gary rong
802074cba9
core: fix chain indexer ( #19786 )
...
This PR fixes an issue in chain indexer. Currently chain indexer will
validate whether the stored data is canonical by comparing section head
and canonical hash. But the header of the checkpoint may not exist in
the database. We should skip validation for sections below the
checkpoint.
2019-07-03 11:18:48 +03:00
Felföldi Zsolt
32273df0ea
core: fix chain indexer reorg bug ( #19748 )
...
* core: fix chain indexer reorg bug
* core: prevent reverting valid section when reorg happens
2019-07-02 15:30:32 +03:00
Péter Szilágyi
de6facb966
Merge pull request #19784 from karalabe/fix-constantinople-fix
...
cmd, eth, les, param: drop --override.constantinople
2019-07-02 14:59:28 +03:00
Péter Szilágyi
22411919da
cmd, eth, les, param: drop --override.constantinople
2019-07-02 14:14:59 +03:00
Péter Szilágyi
a0943b8932
cmd/clef, signer: refresh tutorial, fix noticed issues ( #19774 )
...
* cmd/clef, signer: refresh tutorial, fix noticed issues
* cmd/clef, signer: support removing stored keys (delpw + rules)
* cmd/clef: polishes + Geth integration in the tutorial
2019-07-02 14:01:47 +03:00
Guillaume Ballet
6bf5555c4f
accounts/abi/bind: Accept function ptr parameter ( #19755 )
...
* accounts/abi/bind: Accept function ptr parameter
They are translated as [24]byte
* Add Java template version
* accounts/abi/bind: fix merge issue
* Fix CI
2019-07-02 09:52:58 +02:00
zer0to0ne
0b26a826e9
accounts/abi: Fix method overwritten by same name methods. ( #17099 )
...
* accounts/abi: Fix method overwritten by same name methods.
* accounts/abi: Fix method overwritten by same name methods.
* accounts/abi: avoid possible name conflict
Co-authored-by: Guillaume Ballet <gballet@gmail.com>
2019-07-01 16:51:21 +02:00
gary rong
f7cdea2bdc
all: on-chain oracle checkpoint syncing ( #19543 )
...
* all: implement simple checkpoint syncing
cmd, les, node: remove callback mechanism
cmd, node: remove callback definition
les: simplify the registrar
les: expose checkpoint rpc services in the light client
les, light: don't store untrusted receipt
cmd, contracts, les: discard stale checkpoint
cmd, contracts/registrar: loose restriction of registeration
cmd, contracts: add replay-protection
all: off-chain multi-signature contract
params: deploy checkpoint contract for rinkeby
cmd/registrar: add raw signing mode for registrar
cmd/registrar, contracts/registrar, les: fixed messages
* cmd/registrar, contracts/registrar: fix lints
* accounts/abi/bind, les: address comments
* cmd, contracts, les, light, params: minor checkpoint sync cleanups
* cmd, eth, les, light: move checkpoint config to config file
* cmd, eth, les, params: address comments
* eth, les, params: address comments
* cmd: polish up the checkpoint admin CLI
* cmd, contracts, params: deploy new version contract
* cmd/checkpoint-admin: add another flag for clef mode signing
* cmd, contracts, les: rename and regen checkpoint oracle with abigen
2019-06-28 10:34:02 +03:00
Matthew Halpern
702f52fb99
les: prefer nil slices over zero-length slices ( #19081 )
2019-06-27 12:03:56 +03:00
gary rong
6069b1a5f5
mobile: fix mobile interface ( #19180 )
...
* mobile: fix mobile interface
* mobile, accounts: generate correct java binding
* accounts: fix java type binding
* mobile: support integer slice
* accounts/abi/bind, cmd/abigen: implement java binding tests
2019-06-27 11:48:13 +03:00
gary rong
fd072c2fd1
eth: fix sync bloom panic ( #19757 )
...
* eth: fix sync bloom panic
* eth: delete useless test cases
2019-06-26 11:00:21 +03:00