Commit graph

15236 commits

Author SHA1 Message Date
rjl493456442
39fb82bcfb
eth: fix flaky test, don't attach empty slots/proofs (#24885)
* eth/protocols/snap: don't include empty snapshot slot slice

This PR fixes the snapshot storage serving handler. In snap protocol
the response is capped by the response size. Server can cutdown the
response if the accumulated byte size exceeds the local hard limit.

It means we can meet a special scenario that there is no storage slot
included for a requested account, but we attach the proof for this
account by mistake.

So in the prover side, when it meets a empty storage response but with
a valid proof proves there are some more slots left in the trie, then
requestor will reject this response and disconnect with server.

In this PR, if there is no storage slot served for the requested account,
then no proof should be attached as well.

* eth/protocols/snap: loosen restrictions for flaky tests

* eth/catalyst: fix flaky test in catalyst
2022-05-17 11:19:51 +03:00
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>
2022-05-17 09:21:43 +02:00
Jerry
8de6903eee Implement and enable 'unlock' flag 2022-05-16 14:57:26 -07:00
Martin Holst Swende
af806168b6
cmd/geth: update vulnerabilities.json testdata (#24856) 2022-05-16 13:41:36 +02:00
Håvard Anda Estensen
07508ac0e9
all: replace uses of ioutil with io and os (#24869) 2022-05-16 11:59:35 +02:00
s7v7nislands
330e53fbb9
core/asm: use strings.Builder and fix godoc issues (#24861) 2022-05-16 11:39:07 +02:00
Péter Szilágyi
fcbc05ccb6
Merge pull request #24884 from karalabe/deprecate-rinkeby
cmd/utils: add deprecation warning for Rinkeby
2022-05-16 11:10:55 +03:00
Evgeny Danienko
91559f3955 run on forked branches 2022-05-16 10:47:33 +03:00
Evgeny Danienko
30dd11a183 run on forked branches 2022-05-16 10:35:57 +03:00
Evgeny Danienko
52647fcd88 run on forked branches 2022-05-16 10:12:09 +03:00
Péter Szilágyi
0a55b9731c
cmd/utils: add deprecation warning for Rinkeby 2022-05-16 08:29:38 +03:00
Marius van der Wijden
4f80f7806e
params: set ropsten TTD for TheMerge (#24876) 2022-05-16 07:32:56 +03:00
Ryan Schneider
ae7d834bc7
internal/ethapi: add debug_getRawReceipts RPC method (#24773)
Adds a method to retrieve all the binary encoded receipts from a block
2022-05-14 22:33:41 +02:00
Evgeny Danienko
e787097874 restore codecov 2022-05-13 18:41:27 +03:00
Evgeny Danienko
95bfcdc5f4 macos tests 2022-05-13 10:06:11 +03:00
Evgeny Danienko
5a3eb08a57 where to run3 2022-05-13 09:38:43 +03:00
Evgeny Danienko
a8a9229c34 where to run2 2022-05-13 09:37:23 +03:00
Evgeny Danienko
276e82b16c where to run1 2022-05-13 09:36:40 +03:00
Evgeny Danienko
3268c143cd where to run 2022-05-13 09:36:02 +03:00
Evgeny Danienko
485762a28d where to run 2022-05-13 09:35:31 +03:00
Evgeny Danienko
81ede2f6d2 where to run 2022-05-13 09:25:37 +03:00
Evgeny Danienko
39d943d22e stable tests 2022-05-13 09:11:17 +03:00
Martin Holst Swende
97f308a98f
core/vm: for tracing, do not report post-op memory 2022-05-12 21:20:40 +02:00
Sina Mahmoodi
440c9fcf75
graphql: fix long literal passed in a variable (#24864) 2022-05-12 21:10:08 +02:00
Jerry
30641c06b1
Merge pull request #396 from cffls/v0.3.0-dev
Set default user to ubuntu in bor.service
2022-05-12 11:54:02 -07:00
Evgeny Danilenko
b05c336a83
fmt 2022-05-12 18:52:40 +03:00
Evgeny Danienko
a57d21166a leaks 2022-05-12 18:27:03 +03:00
Evgeny Danienko
594c9ab23f vs master 2022-05-12 18:04:04 +03:00
Evgeny Danienko
f0f113c0fc run versus origin/master 2022-05-12 15:25:59 +03:00
Manav Darji
bae9c4400b add unit tests for IsValidChain function 2022-05-12 14:49:48 +05:30
Jerry
9838fefd3a Set default user to ubuntu in bor.service 2022-05-11 14:02:13 -07:00
Evgeny Danienko
ca19e0182d fix 2022-05-11 17:11:59 +03:00
Evgeny Danienko
2bac6ce45f remove shuffle for e2e 2022-05-11 17:09:36 +03:00
Evgeny Danienko
e36a54d600 goleak 2022-05-11 16:43:43 +03:00
Evgeny Danienko
7c6357ecf6 group concurrency 2022-05-11 16:18:56 +03:00
Evgeny Danienko
b2b327eaf4 ignore cmd tests 2022-05-11 15:47:18 +03:00
Evgeny Danienko
5458ac01cd fix 2022-05-11 15:41:02 +03:00
Evgeny Danienko
348f91e9f4 more time for tests for data races 2022-05-11 15:31:10 +03:00
Evgeny Danienko
6a598b4e93 revert 2022-05-11 15:27:18 +03:00
Evgeny Danienko
cd4b40fffd test without linters 2022-05-11 15:26:55 +03:00
Evgeny Danienko
834c7741b4 only new issues 2022-05-11 15:21:21 +03:00
Evgeny Danienko
64ad2f9eb1 update linter list 2022-05-11 14:40:15 +03:00
Manav Darji
a6ec55bb31 fix tests and format 2022-05-11 17:09:28 +05:30
Evgeny Danienko
15900477fb linters 2022-05-11 14:05:02 +03:00
Qian Bin
e0a1fd5fdc
core/vm: optimize Memory.Set32 (#24847)
* core/vm: remove unnecessary memset for Memory.Set32

* core/vm: optimize Memory.Set32
2022-05-11 11:00:29 +02:00
Evgeny Danienko
3c2510a5af move integration ci 2022-05-11 11:22:17 +03:00
Evgeny Danienko
b43ebd5f96 fix build 2022-05-11 10:53:35 +03:00
Evgeny Danienko
63cd7a3273 move integration ci 2022-05-11 10:33:44 +03:00
Evgeny Danienko
ee5b7c04aa integration tag 2022-05-11 10:31:41 +03:00
Evgeny Danienko
5192fd7d8d split units and integration. step 1 2022-05-11 10:26:10 +03:00