Commit graph

11632 commits

Author SHA1 Message Date
rene
aab171f8c6
Matches the startup process of websocket server to that of http server for consistency (#8) 2020-03-30 13:58:34 +02:00
rene
a08ccfe8e6
graphql works with new http server setup (#7) 2020-03-30 13:05:52 +02:00
renaynay
2538a69a98
Merge branch 'master' into multiplex-ws-rpc 2020-03-30 10:37:24 +02:00
renaynay
ef49e55800
Merge branch 'master' of github.com:ethereum/go-ethereum 2020-03-30 10:37:07 +02:00
renaynay
142b5f7f33
some docs 2020-03-30 09:37:11 +02:00
Ha ĐANG
5d7e5b00be
eth/filters: fix typo on unindexedLogs function's comment (#20827) 2020-03-27 16:33:14 +01:00
gary rong
62cd943c7b
les: fix dead lock (#20828) 2020-03-27 17:21:58 +02:00
Felix Lange
d6c5f2417c
eth: improve shutdown synchronization (#20695)
* eth: improve shutdown synchronization

Most goroutines started by eth.Ethereum didn't have any shutdown sync at
all, which lead to weird error messages when quitting the client.

This change improves the clean shutdown path by stopping all internal
components in dependency order and waiting for them to actually be
stopped before shutdown is considered done. In particular, we now stop
everything related to peers before stopping 'resident' parts such as
core.BlockChain.

* eth: rewrite sync controller

* eth: remove sync start debug message

* eth: notify chainSyncer about new peers after handshake

* eth: move downloader.Cancel call into chainSyncer

* eth: make post-sync block broadcast synchronous

* eth: add comments

* core: change blockchain stop message

* eth: change closeBloomHandler channel type
2020-03-27 15:03:20 +02:00
renaynay
2321f64d69
Merge branch 'master' into multiplex-ws-rpc 2020-03-27 14:02:58 +01:00
renaynay
460599415a
Merge branch 'master' of github.com:ethereum/go-ethereum 2020-03-27 14:02:36 +01:00
rene
d7851e6359
graphql, node, rpc: fix typos in comments (#20824) 2020-03-27 13:52:53 +01:00
renaynay
04bae1d42f
Merge branch 'master' into multiplex-ws-rpc 2020-03-27 09:28:15 +01:00
renaynay
c8c18ba7a4
fixed a typo in graphql service 2020-03-27 09:28:12 +01:00
renaynay
ba2c128228
Merge branch 'master' of github.com:ethereum/go-ethereum 2020-03-27 09:27:33 +01:00
Felix Lange
d3c1e654f0
cmd/devp2p: be very correct about route53 change splitting (#20820)
Turns out the way RDATA limits work is documented after all,
I just didn't search right. The trick to make it work is to
count UPSERTs twice.

This also adds an additional check to ensure TTL changes are
applied on existing records.
2020-03-26 23:55:33 +01:00
Felix Lange
87a411b839
cmd/devp2p: lower route53 change limit again (#20819) 2020-03-26 17:39:56 +02:00
renaynay
440ccbea31
Merge branch 'master' of github.com:ethereum/go-ethereum 2020-03-26 16:29:18 +01:00
Felix Lange
1583e7d274
cmd/devp2p: tweak DNS TTLs (#20801)
* cmd/devp2p: tweak DNS TTLs

* cmd/devp2p: bump treeNodeTTL to four weeks
2020-03-26 13:51:50 +02:00
Péter Szilágyi
4690912ac9
Merge pull request #20816 from karalabe/disable-gosigar-ios
metrics: disable CPU stats (gosigar) on iOS
2020-03-26 13:15:43 +02:00
Péter Szilágyi
42e02ac03b
metrics: disable CPU stats (gosigar) on iOS 2020-03-26 11:24:58 +02:00
renaynay
a305f5a08c
removing unnecessary function 2020-03-25 19:14:33 +01:00
renaynay
3de74d2213
fixed some errors related to crashing travis build 2020-03-25 16:30:51 +01:00
rene
3131d6e5bc
Merge pull request #4 from renaynay/node-handles-handler-creation
move handler creation from pkg rpc to node
2020-03-25 15:55:30 +01:00
renaynay
a87383b3b0
fixed merge conflict 2020-03-25 15:50:05 +01:00
renaynay
8766f6ac81
removing some unnecessary whitespace 2020-03-25 15:31:08 +01:00
renaynay
74cd4f2fd0
dont overwrite registering apis 2020-03-25 15:28:09 +01:00
renaynay
eced2dbd98
remove gzip file 2020-03-25 14:59:58 +01:00
renaynay
8adb2f2b1c
updating retesteth.go to remove adding the ws handler 2020-03-25 14:50:55 +01:00
renaynay
339ba89ed2
move handler creation to pkg node, remove deprecated function 2020-03-25 14:44:59 +01:00
rene
631488c081
Merge pull request #2 from renaynay/handler-stack
Shifted handler stack creation to pkg node from pkg rpc
2020-03-24 22:32:16 +01:00
rene
307f70b2c7
Merge pull request #3 from renaynay/handle-ws-only-if-specified
pass nil ws handler if not specified
2020-03-24 22:24:54 +01:00
renaynay
5eb0146774
moved whitelist generation and api registration into separate method 2020-03-24 22:20:05 +01:00
renaynay
fdff70c14c
fixed some TODOs 2020-03-24 21:48:00 +01:00
renaynay
62bb958471
fixed retesteth 2020-03-24 21:37:48 +01:00
renaynay
46eb11c667
handler stack creation moved from rpc to node pkg 2020-03-24 21:28:18 +01:00
renaynay
6becdde07b
added space 2020-03-24 20:58:11 +01:00
renaynay
e13d78db52
dirty functional implementation, some tests broken, some commented out 2020-03-24 20:24:22 +01:00
renaynay
991237abdb
Merge branch 'master' of github.com:ethereum/go-ethereum 2020-03-24 13:52:13 +01:00
Martin Holst Swende
39f502329f
internal/ethapi: don't set sender-balance to maxuint, fixes #16999 (#20783)
Prior to this change, eth_call changed the balance of the sender account in the
EVM environment to 2^256 wei to cover the gas cost of the call execution.
We've had this behavior for a long time even though it's super confusing.

This commit sets the default call gasprice to zero instead of updating the balance,
which is better because it makes eth_call semantics less surprising. Removing
the built-in balance assignment also makes balance overrides work as expected.
2020-03-23 18:21:23 +01:00
Martin Holst Swende
0734c4b820
node, cmd/clef: report actual port used for http rpc (#20789) 2020-03-23 16:26:56 +01:00
renaynay
aef6981630
Merge branch 'master' of github.com:ethereum/go-ethereum 2020-03-23 15:16:20 +01:00
meowsbits
a75c0610b7
core/blockchain: simplify atomic store after writeBlockWithState (#20798)
Signed-off-by: meows <b5c6@protonmail.com>
2020-03-23 15:05:15 +01:00
renaynay
a3204eecbb
Merge branch 'master' of github.com:ethereum/go-ethereum 2020-03-23 12:17:11 +01:00
Péter Szilágyi
613af7ceea
Merge pull request #20152 from karalabe/snapshot-5
Dynamic state snapshots
2020-03-23 12:57:31 +02:00
Martin Holst Swende
074efe6c8d
core: fix two snapshot iterator flaws, decollide snap storage prefix
* core/state/snapshot/iterator: fix two disk iterator flaws

* core/rawdb: change SnapshotStoragePrefix to avoid prefix collision with preimagePrefix
2020-03-23 12:34:27 +02:00
meowsbits
93ffb85b3d
rpc: dont log an error if user configures --rpcapi=rpc... (#20776)
This just prevents a false negative ERROR warning when, for some unknown
reason, a user attempts to turn on the module rpc even though it's already going
to be on.
2020-03-21 15:28:27 +01:00
Guillaume Ballet
e943f07a85
whisper/whisperv6: delete failing tests (#20788)
These tests occasionally fail on Travis.
2020-03-20 09:37:53 +01:00
Péter Szilágyi
0e6ea9199c
Merge pull request #20781 from karalabe/fix-clique-console-apis
internal/web3ext: fix clique console apis to work on missing arguments
2020-03-19 10:06:44 +02:00
Péter Szilágyi
36e93d2dd8
Merge pull request #20779 from meowsbits/patch-3
core/rawdb: fix freezer table test error check
2020-03-18 16:30:58 +02:00
Péter Szilágyi
e6ca1958d3
internal/web3ext: fix clique console apis to work on missing arguments 2020-03-18 15:23:16 +02:00