Qian Bin
fe5a26733c
core/vm: reduce overhead in instructions-benchmark ( #24860 )
...
* core/vm: reduce footprint of OP benchmark
* core/vm: for opBenchmark, add code to detect inputs mutation
* Update core/vm/instructions_test.go
Co-authored-by: Martin Holst Swende <martin@swende.se>
* core/vm: opBenchmark, stop timer before sanity-test code
Co-authored-by: Martin Holst Swende <martin@swende.se>
3 years ago
Martin Holst Swende
af806168b6
cmd/geth: update vulnerabilities.json testdata ( #24856 )
3 years ago
Håvard Anda Estensen
07508ac0e9
all: replace uses of ioutil with io and os ( #24869 )
3 years ago
s7v7nislands
330e53fbb9
core/asm: use strings.Builder and fix godoc issues ( #24861 )
3 years ago
Péter Szilágyi
fcbc05ccb6
Merge pull request #24884 from karalabe/deprecate-rinkeby
...
cmd/utils: add deprecation warning for Rinkeby
3 years ago
Péter Szilágyi
0a55b9731c
cmd/utils: add deprecation warning for Rinkeby
3 years ago
Marius van der Wijden
4f80f7806e
params: set ropsten TTD for TheMerge ( #24876 )
3 years ago
Ryan Schneider
ae7d834bc7
internal/ethapi: add debug_getRawReceipts RPC method ( #24773 )
...
Adds a method to retrieve all the binary encoded receipts from a block
3 years ago
Martin Holst Swende
97f308a98f
core/vm: for tracing, do not report post-op memory
3 years ago
Sina Mahmoodi
440c9fcf75
graphql: fix long literal passed in a variable ( #24864 )
3 years ago
Qian Bin
e0a1fd5fdc
core/vm: optimize Memory.Set32 ( #24847 )
...
* core/vm: remove unnecessary memset for Memory.Set32
* core/vm: optimize Memory.Set32
3 years ago
Felipe Strozberg
f5ff022dbc
ethclient: add PeerCount method ( #24849 )
...
* adding peer count function
* Update ethclient.go
Co-authored-by: Felix Lange <fjl@twurst.com>
3 years ago
s7v7nislands
539bbd6349
core/vm: separate opcode group for 0x20 range ( #24850 )
3 years ago
s7v7nislands
24c590cbec
core/vm: clean up some dead functions ( #24851 )
3 years ago
||= nil
8a008ee0e6
cmd/geth: print info banner for --dev mode ( #24759 )
...
Co-authored-by: nedifi <nedifi@users.noreply.github.com>
Co-authored-by: Felix Lange <fjl@twurst.com>
3 years ago
Martin Holst Swende
646503208e
eth/protocols/snap: sort trienode heal requests by path ( #24779 )
...
* sort snap trienode heal requests
* eth/protocols/snap: remove debug code
* eth/protocols/snap: simplify sort, generate pathsets later
* eth/protocols/snap: review concern
* eth/protocols/snap: renamings
* eth/protocols/snap: add comments in Merge
* eth/protocols/snap: remove variable 'last' in Merge
* eth/protocols/snap: fix lint flaws in test
Co-authored-by: Felix Lange <fjl@twurst.com>
3 years ago
aaronbuchwald
52eb87d87c
core/vm: update benchmark to use Errorf instead of Sprintf ( #24845 )
3 years ago
Martin Holst Swende
91751cbaa7
signer/fourbyte: remove offending signatures ( #24842 )
3 years ago
Sina Mahmoodi
5b46f1d1eb
internal: drop TestSignCliqueBlock ( #24837 )
3 years ago
s7v7nislands
7caa2d8163
all: replace strings.Replace with string.ReplaceAll ( #24835 )
3 years ago
Marius van der Wijden
86d5477079
core/state/snapshot: fix race condition ( #24685 )
...
Fixes three race conditions found through fuzzing by David Theodore
3 years ago
Rachel Franks
345b1fb827
abi: fix checks when all fields are indexed ( #24792 )
...
This PR fixes abi checks in the edge case where all arguments are indexed
3 years ago
Martin Holst Swende
1b26991bec
signer/fourbyte: import new signatures ( #22865 )
3 years ago
Martin Holst Swende
7175f82495
eth/fetcher: avoid hang in tests (partial fix for #23331 ) ( #23351 )
...
* eth/fetcher: fix test to avoid hanging. Partial fix for #23331
* eth/filters: avoid dangling goroutines
* eth/fetcher: revert closing of proceed
3 years ago
Alex Beregszaszi
3b967d16ca
core/vm: implement EIP-3855: PUSH0 instruction ( #24039 )
...
* core/vm: Implement PUSH0
* Move PUSH0 to enable3855
* Add method doc
3 years ago
rjl493456442
1941c5e6c9
core/rawdb: untie freezer and ancient chain data ( #24684 )
...
Previously freezer has only been used for storing ancient chain data, while obviously it can be used more. This PR unties the chain data and freezer, keep the minimal freezer structure and move all other logic (like incrementally freezing block data) into a separate structure called ChainFreezer.
This PR also extends the database interface by adding a new ancient store function AncientDatadir which can return the root directory of ancient store. The ancient root directory can be used when we want to open some other ancient-stores (e.g. reverse diff freezer).
3 years ago
Mateusz Morusiewicz
cef1a86df2
miner: discard interrupted blocks ( #24638 )
...
During mining, when a new head arrives and interrupts the block building, the block being built should not be commited (but discarded). Committing the interrupted block introduces unnecessary delay, and possibly causes miner to mine on the previous head, which could result in higher uncle rate.
3 years ago
Ikko Ashimine
33d7a469f6
p2p/simulations: fix typo in network_test.go ( #24824 )
3 years ago
ImanSharaf
ca8e2f1ecf
p2p/simulations: escape mockerType value from request ( #24822 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
3 years ago
EXEC
256aae0bfa
eth/filters: remove explicit continue label in filterLogs ( #24795 )
...
The loop label can be removed because this 'continue' statement
is not in a nested loop.
3 years ago
s7v7nislands
1c90d97c1e
eth/protocols/eth: fix godoc comments ( #24810 )
...
Co-authored-by: Martin Holst Swende <martin@swende.se>
3 years ago
rjl493456442
7f6f01d46f
core: recover state when beacon sets canonical head if it's missing ( #24613 )
...
* core: recover the state in SetChainHead if the head state is missing
* core: disable test logging
* core: address comment from martin
* core: improve log level in case state is recovered
* core, eth, les, light: rename SetChainHead to SetCanonical
3 years ago
milesvant
11b56ace2a
core: fix WriteBlockAndSetHead documentation ( #24818 )
3 years ago
Péter Szilágyi
992151fa6d
Merge pull request #24817 from karalabe/fix-PC-regression
...
cmd, eth: fix required blocks regression
3 years ago
Péter Szilágyi
ecae8e4f65
cmd, eth: fix required blocks regression
3 years ago
Péter Szilágyi
0a9e384cd5
Merge pull request #24813 from holiman/jammy
...
build: ppa build for jammy (ubuntu 22.04)
3 years ago
Sina Mahmoodi
b3af0a5538
cmd/geth: fix init genesis for dev ( #24693 )
...
* cmd/geth: fix init genesis for dev
* use ancient flag for init genesis cmd
3 years ago
EXEC
d6b77f661c
eth/filters: fix code comment ( #24799 )
3 years ago
Sina Mahmoodi
d73df893a6
graphql: add rawReceipt field to transaction type ( #24738 )
...
* graphql: add tx receiptsRLP field
* use MarshalBinary
Co-authored-by: Ryan Schneider <ryanleeschneider@gmail.com>
* update schema
Co-authored-by: Ryan Schneider <ryanleeschneider@gmail.com>
* rename to rawReceipt
* indent fix
Co-authored-by: Ryan Schneider <ryanleeschneider@gmail.com>
3 years ago
Martin Holst Swende
c164aed1d1
build: ppa build for jammy (ubuntu 22.04)
3 years ago
Evgeny Kolyakov
8d84a701a5
build: fix formatted logs ( #24807 )
...
Changed `log.Fatal` to `log.Fatalf()` as it has a parameter...
3 years ago
Martin Holst Swende
53304ff6c7
cmd/utils: double limit on free-disk monitor ( #24781 )
...
This PR doubles the limit on which to trigger automatic shutdown, and also changes the timer to run once every 30s instead of 60s.
3 years ago
EXEC
6b60d68344
docker: speed up docker image build ( #24796 )
...
This PR improves the docker build speed for repeated builds where go.mod and go.sum do no change, by placing the downloaded dependencies in a lower layer
3 years ago
nujabes403
c153bd40d7
accounts: fix typo in comments ( #24805 )
3 years ago
rjl493456442
344d6f95cf
cmd: group network and db path flags together ( #24698 )
...
This PR groups all built-in network flags together and list them in the command as a whole.
And all database path flags(datadir, ancient) are also grouped, since usually these two are
used together.
3 years ago
Martin Holst Swende
5157d4540a
cmd/evm: make evm t8n handle post-merge transitions ( #24546 )
...
This adds the ability to run --state.fork=Merged, and have post-merge rules apply. When doing so, it also requires the input env to contain currentRandom, and enforces the currentDifficulty to be omitted or zero.
3 years ago
Martin Holst Swende
559a174899
cmd/clef: fixups to the python clef poc ( #24440 )
...
This PR fixes up the example python clef wrapper. The poc is intended to demonstrate how to wite a UI for clef, and had severely bitrotted.
With these changes, it "works" in the sense that all the built-in tests triggers the intended python callbacks (no errors about method not found). It does not "work" in the sense that the wrapper can be used as an actual UI. It will auto-reject any signing requests, for example.
3 years ago
hero5512
f94e23ca66
eth/filters: remove unused struct fields ( #24782 )
3 years ago
Joshua Gutow
84041e8f31
ethclient/gethclient: return storage proofs in GetProof ( #24697 )
...
Storage proofs were being unmarshalled from the RPC form to the go struct, but were not being included in the final returned struct.
3 years ago
s7v7nislands
5a584c2133
all: use common.FileExist for checking file existence ( #24748 )
3 years ago