Kitten King
cc3ef1e4f4
cmd, crypto, eth, internals: fix Typos ( #19868 )
2019-07-22 10:34:33 +03:00
Christian Muehlhaeuser
5183483c53
core/state, p2p/discover, trie, whisper: avoid unnecessary conversions ( #19870 )
...
No need to convert these types.
2019-07-22 10:30:09 +03:00
Kurkó Mihály
a1f8549262
p2p: add ENR to PeerInfo ( #19816 )
2019-07-19 11:25:43 +02:00
Péter Szilágyi
e8c9579fb7
Merge pull request #19856 from karalabe/chaindb-property-fix
...
internal/ethapi: fix debug.chaindbProperty
2019-07-18 16:36:14 +03:00
Péter Szilágyi
433cb564e9
internal/ethapi: fix debug.chaindbProperty
2019-07-18 16:15:09 +03:00
Péter Szilágyi
8485f7cc7b
Merge pull request #19854 from karalabe/genesis-commit-check
...
core: check error before accessing potentially nil block
2019-07-18 16:03:36 +03:00
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