Martin Holst Swende
9055cc14ec
core/vm, core/state/snapshot: remove unused code ( #23956 )
...
* core/state/snapshot: remove wiper functionality
* core/vm: remove unused 'unofficial' opcodes
3 years ago
Martin Holst Swende
ad7c90c198
cmd/devp2p/internal/v4test: fix false-positive hive test ( #23966 )
...
This PR fixes two problems in devp2p tests (and through them, hive).
- Make the output more detailed about what is returned (always print packet kind).
- Allow Ping response to unsolicited findnode.
Without this PR, nethermind fails a hive protocol test, and I misinterpreted the result (NethermindEth/nethermind#3617 ). Ergo, the output was not fool-proof.
3 years ago
Sina Mahmoodi
66ee9422f5
consensus/clique: fix block number unmarshal ( #23961 )
...
* clique: fix block number unmarshal
* clique: rename
3 years ago
Péter Szilágyi
8151dd67e1
params: begin v1.10.14 release cycle
3 years ago
Péter Szilágyi
7a0c19f813
params: release Geth v1.10.13
3 years ago
lightclient
0a7672fc9a
cmd/evm: rename t8n args to improve clarity when tracing ( #23934 )
...
* cmd/evm: rename t8n args to improve clarity when tracing
* cmd/evm: add back removed tracing flags and note that they are deprecated
* cmd/evm: add warning when using deprecated flag
3 years ago
Péter Szilágyi
7322b2590c
Merge pull request #23960 from karalabe/verify-range-deletion
...
trie: reject deletions when verifying range proofs
3 years ago
Péter Szilágyi
743769f48e
trie: reject deletions when verifying range proofs
3 years ago
Serhat Şevki Dinçer
d15e423562
p2p/enode: store local port number as uint16 ( #23926 )
3 years ago
Martin Holst Swende
347c37b362
core/rawdb: use AncientRange when initializing leveldb from freezer ( #23612 )
...
* core/rawdb: utilize AncientRange when initiating from freezer
* core/rawdb: remove debug sanity check
3 years ago
Péter Szilágyi
50e07a1e16
Merge pull request #23928 from holiman/no_iota
...
core/vm: don't use iota for opcode definitions
3 years ago
lightclient
23f69c6db0
cmd/evm: add support for signing transactions in the unprotected format ( #23937 )
...
* cmd/evm: add support for signing transactions in the unprotected format
* cmd/evm: simplify signing of unprotected txs
3 years ago
Péter Szilágyi
17f1c2dc0f
Merge pull request #23949 from karalabe/fix-repair-heuristic
...
core, eth/downloader: fix resetting below freezer threshold
3 years ago
Péter Szilágyi
d9c13d407f
core, eth/downloader: fix resetting below freezer threshold
3 years ago
lightclient
441c7f2b0f
cmd/evm: add b11r tool ( #23843 )
...
evm block-builder (a.k.a b11r) is a utility to help assemble blocks, for use during the test-creation process.
3 years ago
Paweł Bylica
5d4bcbc14f
trie: more tests for stacktrie ( #23936 )
3 years ago
lightclient
6f2c3f2114
cmd/geth: add ancient flag to db inspect ( #23946 )
3 years ago
Anatole
e0761432a4
eth: fix typo in comment ( #23941 )
3 years ago
Martin Holst Swende
e761255ba7
cmd/evm: make t9n intrinsicGas output hex, fixes #23883 ( #23889 )
3 years ago
courtier
c52def7f11
eth/gasprice: sanitize max header and block history ( #23886 )
...
Fixes #23452
3 years ago
Martin Holst Swende
ab31fbbde1
core/vm: don't use iota for opcode definitions
3 years ago
Lee Bousfield
16341e0563
ethclient: fix tx sender cache miss detection ( #23877 )
...
This fixes a bug in TransactionSender where it would return the
zero address for transactions where the sender address wasn't
cached already.
Co-authored-by: Felix Lange <fjl@twurst.com>
3 years ago
lightclient
fa96718512
cmd/evm: rename t8n result to match types.Header (ReceiptRoot->ReceiptsRoot) ( #23924 )
3 years ago
Jesse Tane
33f2813809
cmd/geth: add flag --dev.gaslimit for dev mode ( #23686 )
...
* cmd, core: add flag --dev.gaslimit to allow configuring initial block gas limit in dev mode
* core: use provided gaslimit
Co-authored-by: Martin Holst Swende <martin@swende.se>
3 years ago
Martin Holst Swende
b7a6409cc1
core/rawdb: better error message in freezer ( #23901 )
...
* core/rawdb: better error message in freezer
* Apply suggestions from code review
3 years ago
Sina Mahmoodi
05acc272b5
eth/tracers: make native 4byte default, remove js version ( #23916 )
3 years ago
lightclient
b0b708bf23
cmd/evm: add `gasUsed` to t8n `result` ( #23919 )
...
* cmd/evm: add gas used accumulator to t8n result
* cmd/evm: update t8n tests to include gas used field
3 years ago
Joshua Colvin
abc74a5ffe
accounts/abi/bind/backends: fix race condition in simulated backend ( #23898 )
...
Now that `SimulatedBackend.SuggestGasPrice` inspects member values, a lock needs to be added to prevent a race condition.
3 years ago
Ward Bradt
e9294a7fe9
eth/tracers: add golang 4byte tracer ( #23882 )
...
* native 4byte tracer
* Update eth/tracers/native/4byte.go
Co-authored-by: Martin Holst Swende <martin@swende.se>
* Update eth/tracers/native/4byte.go
Co-authored-by: Martin Holst Swende <martin@swende.se>
* goimports
* eth/tracers: make 4byte tracer not care about create
Co-authored-by: Martin Holst Swende <martin@swende.se>
3 years ago
meowsbits
5358e491f3
cmd/devp2p: update TTL max for Cloudflare ( #23885 )
...
This was apparently recently changed by Cloudflare, and
began returning an error: 'TTL must be between 60 and 86400
seconds, or 1 for Automatic'
Date: 2021-11-10 15:25:20-08:00
Signed-off-by: meows <b5c6@protonmail.com>
3 years ago
Sina Mahmoodi
c57df9ca28
core/rawdb: add slow path for getting legacy logs ( #23879 )
...
* eth/tracers: add slow path for getting legacy logs
* core/rawdb: fix test
3 years ago
Andrei Maiboroda
f32feeb260
core/vm: implement EIP-2681: Limit account nonce to 2^64-1 ( #23853 )
...
This retroactively implements requirements or EIP-2681 for the account nonce upper limit.
3 years ago
Péter Szilágyi
e185a8c818
Merge pull request #23880 from eltociear/patch-3
...
p2p: fix typo in v4wire.go
3 years ago
Ikko Ashimine
fb7da82dde
p2p: fix typo in v4wire.go
...
Neigbors -> Neighbors
3 years ago
Martin Holst Swende
0efed7f58b
cmd/devp2p/internal/ethtest: clarify protocol version in tests ( #23872 )
...
Debugging recent geth failures in hive, it took a while to realize that it's because
geth doesn't support eth/65 any longer. This PR makes such failures a bit more
easy to figure out.
3 years ago
Martin Holst Swende
6b9c77f060
eth/tracers: package restructuring ( #23857 )
...
* eth/tracers: restructure tracer package
* core/vm/runtime: load js tracers
* eth/tracers: mv bigint js code to own file
* eth/tracers: add method docs for native tracers
* eth/tracers: minor doc fix
* core,eth: cancel evm on nativecalltracer stop
* core/vm: fix failing test
Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
3 years ago
Felix Lange
9489853321
core: check effective tip in txpool pricelimit validation ( #23855 )
...
The price limit is supposed to exclude transactions with too low fee
amount. Before EIP-1559, it was sufficient to check the limit against
the gas price of the transaction. After 1559, it is more complicated
because the concept of 'transaction gas price' does not really exist.
When mining, the price limit is used to exclude transactions below a
certain effective fee amount. This change makes it apply the same check
earlier, in tx validation. Transactions below the specified fee amount
cannot enter the pool.
Fixes #23837
3 years ago
Péter Szilágyi
ad11691daf
params: begin v1.10.13 release cycle
3 years ago
Péter Szilágyi
6c4dc6c388
params: release Geth v1.10.12
3 years ago
Sina Mahmoodi
787a3b185c
eth/tracers: make native calltracer default ( #23867 )
3 years ago
Péter Szilágyi
851256e856
Merge pull request #23869 from karalabe/cht-1.10.12-ropsten
...
params: update Ropsten CHT too
3 years ago
Péter Szilágyi
c4fff0f56e
params: update Ropsten CHT too
3 years ago
Péter Szilágyi
aa2727f82c
Merge pull request #23868 from karalabe/cht-1.10.12
...
params: update CHTs for the 1.10.12 release
3 years ago
Péter Szilágyi
e61b8cb1f8
params: update CHTs for the 1.10.12 release
3 years ago
Martin Holst Swende
e1c000b0dd
cmd/geth: add support for sepolia testnet ( #23730 )
...
* cmd/geth: add support for sepolia testnet
* core: last details on sepolia genesis
* params: fix sepolia hash + reduce testing code
* Update params/bootnodes.go
* cmd/geth: fix attach path for sepolia
* params: update bootnodes
* params: fix
* core: fix docstring
* params: add sepolia CHT
3 years ago
Felföldi Zsolt
8be8ba450e
les/vflux: fixed panic and data races ( #23865 )
...
* les/vflux/server: fix BalanceOperation
* les/vflux/client: fixed data races
3 years ago
Martin Holst Swende
476fb565ce
miner, consensus/clique: avoid memory leak during block stasis ( #23861 )
...
This PR fixes a problem which arises on clique networks when there is a network stall. Previously, the worker packages were tracked, even if the sealing engine decided not to seal the block (due to clique rules about recent signing). These tracked-but-not-sealed blocks kept building up in memory.
This PR changes the situation so the sealing engine instead returns an error, and the worker can thus un-track the package.
3 years ago
Sina Mahmoodi
8d7e6062ec
eth/tracers: support for golang tracers + add golang callTracer ( #23708 )
...
* eth/tracers: add basic native loader
* eth/tracers: add GetResult to tracer interface
* eth/tracers: add native call tracer
* eth/tracers: fix call tracer json result
* eth/tracers: minor fix
* eth/tracers: fix
* eth/tracers: fix benchTracer
* eth/tracers: test native call tracer
* eth/tracers: fix
* eth/tracers: rm extra make
Co-authored-by: Martin Holst Swende <martin@swende.se>
* eth/tracers: rm extra make
* eth/tracers: make callFrame private
* eth/tracers: clean-up and comments
* eth/tracers: add license
* eth/tracers: rework the model a bit
* eth/tracers: move tracecall tests to subpackage
* cmd/geth: load native tracers
* eth/tracers: minor fix
* eth/tracers: impl stop
* eth/tracers: add native noop tracer
* renamings
Co-authored-by: Martin Holst Swende <martin@swende.se>
* eth/tracers: more renamings
* eth/tracers: make jstracer non-exported, avoid cast
* eth/tracers, core/vm: rename vm.Tracer to vm.EVMLogger for clarity
* eth/tracers: minor comment fix
* eth/tracers/testing: lint nitpicks
* core,eth: cancel evm on nativecalltracer stop
* Revert "core,eth: cancel evm on nativecalltracer stop"
This reverts commit 01bb908790
.
* eth/tracers: linter nits
* eth/tracers: fix output on err
Co-authored-by: Martin Holst Swende <martin@swende.se>
3 years ago
Martin Holst Swende
3bbeb94c1c
eth: make traceChain avoid OOM on long-running tracing ( #23736 )
...
This PR changes long-running chain tracing, so that it at some points releases the memory trie db, and switch over to a fresh disk-backed trie.
3 years ago
Felix Lange
53b94f135a
rpc: linear time batch response matching ( #23856 )
...
This avoids quadratic time complexity in the lookup of the batch element
corresponding to an RPC response. Unfortunately, the new approach
requires additional memory for the mapping from ID to index.
Fixes #22805
3 years ago