Martin Holst Swende
4cd6a1458e
cmd/devp2p: fix ping/pong race in discv4 tests ( #23306 )
...
This PR modifies the post-PING-send expectations to both be laxer and stricter: it doesn't care what order the packets arrive, but also verifies that exactly one PING and one PONG is returned.
2021-08-03 11:21:39 +02:00
aaronbuchwald
82c5085399
cre/state: fix outdated statedb Prepare comment ( #23320 )
2021-08-03 09:06:58 +03:00
baptiste-b-pegasys
95bbd46eab
node, cmd/clef: remove term "whitelist" ( #23296 )
...
* node: remove term "whitelist"
* include cmd/clef
2021-08-02 15:43:01 +02:00
baptiste-b-pegasys
85afdeef37
tests: remove whitelist feature ( #23297 )
2021-07-29 20:23:37 +02:00
baptiste-b-pegasys
860184d542
p2p: remove term "whitelist" ( #23295 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
2021-07-29 17:50:18 +02:00
baptiste-b-pegasys
3526f69047
all: remove term "whitelist" in comments and log messages ( #23294 )
2021-07-29 17:36:15 +02:00
Martin Holst Swende
295bc35ecf
signer/core: move API JSON types to separate package ( #23275 )
...
This PR moves (some) account types into a standalone package, to avoid
depending on signer/core from accounts/external.
2021-07-29 16:06:44 +02:00
Evolution404
8f11d279d2
p2p/simulations: fix unlikely crash in probabilistic connect ( #23200 )
...
When the nodeCount is less than 10, it will panic with the out of bound error.
How about we just skip this round, when rand1 and rand2 are equal?
2021-07-29 16:03:50 +02:00
Sina Mahmoodi
b157bae2c9
go.mod: bump golang.org/x/text to v0.3.6 ( #23291 )
2021-07-29 15:20:45 +02:00
ucwong
64a5e125c5
go.mod: upgrade to goupnp v1.0.2 ( #23197 )
2021-07-29 15:20:15 +02:00
Marius van der Wijden
fb8ea5993f
tests: update tests/testdata to v9.0.4 (london) ( #23279 )
2021-07-29 14:05:22 +02:00
Martin Holst Swende
5c13012b56
accounts/external, internal/ethapi: fixes for London tx signing ( #23274 )
...
Ticket #23273 found a flaw where we were unable to sign legacy-transactions
using the external signer, even if we're still on non-london network. That's
fixed in this PR.
Additionally, I found that even when supplying all parameters, it was impossible
to sign a london-transaction on an unsynched node. It's a pretty common usecase
that someone wants to sign a transaction using an unsynced 'vanilla' node,
providing all necessary data. Our setDefaults, however, insisted on checking the
current block against the config. This PR therefore adds a case, so that if both
MaxPriorityFeePerGas and MaxFeePerGas are provided, we accept them as given.
OBS This PR fixes a regression -- on current master, we are unable to sign a
london-transaction unless the node is synched, which may break scenarios where
geth (or clef) is used as a cold wallet.
Fixes #23273
2021-07-29 14:00:06 +02:00
baptiste-b-pegasys
523866c2cc
all: change blacklist terms
2021-07-29 11:17:40 +03:00
ligi
56e9001a1a
README: fix default sync mode ( #23282 )
2021-07-28 19:14:46 +03:00
@edgararout
0730acc5a0
consensus/ethash: less allocation during mining ( #23199 )
2021-07-28 14:24:41 +02:00
Marius van der Wijden
2faf796d2a
internal/ethapi: fix panic in accesslist creation ( #23225 )
...
* internal/ethapi: revert + fix properly in al tracer
* internal/ethapi: use toMessage instead of creating new message
* internal/ethapi: remove ineffassign
* core: fix invalid unmarshalling, fix test
Co-authored-by: Martin Holst Swende <martin@swende.se>
2021-07-28 14:21:35 +02:00
Marius van der Wijden
3aea432b35
accounts/abi/bind: set Context in TransactOpts ( #23188 )
2021-07-27 16:24:27 +02:00
Marius van der Wijden
b20bc5c0ca
accounts/abi/bind: parse ABI only once, create metadata struct ( #22583 )
2021-07-27 16:22:21 +02:00
Martin Holst Swende
5c89ec9b98
cmd/geth: update vulnerability testdata ( #23252 )
2021-07-27 16:19:48 +02:00
lightclient
bbfa6488ac
Use hexutil.Uint
for blockCount
parameter in feeHistory
method ( #23239 )
...
* internal/ethapi/api: use hexutil.uint for blockCount parameter instead of int for feeHistory
* return hex value for oldestBlock instead of number
* return uint64 from oracle.resolveBlockRange
* eth/gasprice: fixed test
Co-authored-by: Zsolt Felfoldi <zsfelfoldi@gmail.com>
2021-07-27 05:27:28 +02:00
Felix Lange
a1f16bc74c
params: begin v1.10.7 release cycle
2021-07-22 16:45:22 +02:00
Felix Lange
576681f29b
params: release go-ethereum v1.10.6 stable
2021-07-22 16:44:28 +02:00
gary rong
370680a7a9
core/types: revert removal of legacy receipt support ( #23247 )
...
* Revert "core/types: go generate (#23177 )"
This reverts commit 00b922fc5d
.
* Revert "core/types: remove LogForStorage type (#23173 )"
This reverts commit 7522642393
.
* Revert "core/types: remove support for legacy receipt/log storage encoding (#22852 )"
This reverts commit 643fd0efc6
.
2021-07-22 15:43:51 +02:00
Marius van der Wijden
97aacd9b35
core: fix pre-check for account balance under EIP-1559 ( #23244 )
...
When processing a transaction with London fork rules, EIP-1559 mandates
checking that the sender must have sufficient balance to cover gas * gasFeeCap.
In the EIP's pseudocode, this check happens after the value transferred by the
transaction has already been deducted. However, in go-ethereum, the balance
has not yet been updated when the check happens, and therefore needs to be
added explicitly.
Co-authored-by: Martin Holst Swende <martin@swende.se>
2021-07-22 15:39:40 +02:00
Austin Roberts
2e7254e737
Update documentation
2021-07-20 10:18:29 -05:00
gary rong
f05419f0fb
les: fix eth_sendTransaction API ( #23215 )
2021-07-16 01:52:40 +02:00
aaronbuchwald
a5e3aa693c
eth/tracers: fix typo in test name ( #23218 )
2021-07-15 21:23:16 +03:00
Evolution404
89fde59a80
node: fix stopping websocket rpc.Server ( #23211 )
2021-07-15 10:15:08 +02:00
Austin Roberts
c58a596a53
Documentation!
2021-07-14 15:45:36 -05:00
Austin Roberts
7ed35c32bd
Readme updates
2021-07-14 15:21:24 -05:00
Austin Roberts
5b7da7301f
Update readme
2021-07-14 13:50:17 -05:00
Austin Roberts
328756dc00
Fix initialize function of plugin loader, update blockupdates plugin
2021-07-14 13:06:10 -05:00
Austin Roberts
16cc5314cf
Merge tag 'v1.10.5' into plugeth
2021-07-14 08:46:10 -05:00
Austin Roberts
75ad936fbb
Hooks for appending ancients, initial work on block update plugin
2021-07-14 08:33:17 -05:00
Péter Szilágyi
f0b1bddac4
params: begin v1.10.6 release cycle
2021-07-14 11:04:36 +03:00
Péter Szilágyi
33ca98ece9
params: release Geth v1.10.5, Exodus Cluster
2021-07-14 11:01:38 +03:00
gary rong
1fac96c1f9
internal/web3ext: remove unused console APIs ( #23208 )
2021-07-14 10:57:07 +03:00
Marius van der Wijden
b9e6e43722
consensus/clique: implement getSigner API method ( #22987 )
...
* clique: implement getSignerForBlock
* consensus/clique: use blockNrOrHash in getSignerForBlock
* consensus/clique: implement getSigner
* consensus/clique: fixed rlp decoding
* consensus/clique: use Author instead of getSigner
* consensus/clique: nit nit nit
* consensus/clique: nit nit nit
2021-07-13 14:40:22 +03:00
Mark
c49e065fea
internal: get pending and queued transaction by address ( #22992 )
...
* core, eth, internal, les, light: get pending and queued transaction by address
* core: tiny nitpick fixes
* light: tiny nitpick
Co-authored-by: mark <mark@amis.com>
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2021-07-13 13:40:58 +03:00
gary rong
846badc480
internal/ethapi: fix transaction APIs ( #23179 )
...
* internal/ethapi: fix transaction APIs
* internal/ethapi: fix typo
* internal/ethapi: address comments
* internal/ethapi: address comment from Peter
2021-07-13 13:40:01 +03:00
Austin Roberts
7a8bb87257
Add reorg hooks, fix hook name lookup
2021-07-12 15:46:50 -05:00
Austin Roberts
c45774b74b
Give plugins a handle to their plugin loader
...
This potentially allows plugins to invoke other plugins.
2021-07-12 14:55:45 -05:00
Austin Roberts
6e4c285ed1
Add state update hooks
2021-07-12 14:45:42 -05:00
Marius van der Wijden
8fe47b0a0d
core/state: avoid unnecessary alloc in trie prefetcher ( #23198 )
2021-07-12 21:34:20 +02:00
Austin Roberts
875e506148
Invoke plugins when blocks are added as new heads or sidechain blocks
2021-07-12 11:40:13 -05:00
Péter Szilágyi
58b0420a8a
Merge pull request #23183 from karalabe/cht-1.10.5
...
params: update CHTs for the 1.10.5 release
2021-07-12 11:25:08 +03:00
Péter Szilágyi
afd4227df8
params: update CHTs for the 1.10.5 release
2021-07-09 14:27:41 +03:00
Péter Szilágyi
9624f92ede
Merge pull request #23178 from karalabe/feeapi-fixes
...
eth/gasprice, internal/ethapi, miner: minor feehistory fixes
2021-07-09 07:47:23 +03:00
Péter Szilágyi
dea71556cc
eth/gasprice, internal/ethapi, miner: minor feehistory fixes
2021-07-08 21:50:35 +03:00
Martin Holst Swende
ff4ff30a68
core, params: define london block at 12965000 ( #23176 )
...
* core, params: define london block at 12965000
* core/forkid: fix test
2021-07-08 12:34:56 +03:00