Pratik Patil
7c6f0a67e6
updated tests, and removed requiredblocks from json and hcl
2022-09-07 16:23:44 +04:00
Marius van der Wijden
d30e39b2f8
core/vm: rename RANDOM to PREVRANDAO ( #25691 )
...
See: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-4399.md
> This EIP supplants the semantics of the return value of existing DIFFICULTY (0x44) opcode and renames the opcode to PREVRANDAO (0x44).
2022-09-07 13:09:52 +02:00
Pratik Patil
d2eb2df62e
changed 'requiredblocks' flag back to 'eth.requiredblocks'
2022-09-07 13:53:36 +04:00
rjl493456442
a32a02f237
params: update chts ( #25707 )
2022-09-07 11:48:34 +02:00
rjl493456442
5ddedd2f83
core, light, trie: remove DiskDB function from trie database ( #25690 )
2022-09-07 09:08:56 +02:00
Jerry
15f64ee58f
Remove orphaned containers when shutdown devnet
...
This will potentially resolve "ERROR: network docker_default has active endpoints" problem
2022-09-06 19:17:04 +04:00
Péter Szilágyi
d408cb6fba
Merge pull request #25694 from karalabe/concurrent-heal-check
...
trie: check childrens' existence concurrently for snap heal
2022-09-06 15:49:13 +03:00
Péter Szilágyi
a9ec2ab2e6
trie: check childrens' existence concurrently for snap heal
2022-09-06 12:57:03 +03:00
SHIVAM SHARMA
85890fec7c
Merge pull request #507 from maticnetwork/shiva/pos-730
...
add : TestValidatorWentOffline
2022-09-05 17:00:43 +04:00
Arpit Temani
e5b8af5626
fix testcases
2022-09-05 16:17:50 +04:00
Felix Lange
731885809c
eth/tracers/js: improve integer types in log object ( #25668 )
...
All fields related to gas must be represented as uint64. Depth is
internally tracked as int, so it makes sense to also store it as int.
2022-09-05 14:06:16 +02:00
Arpit Temani
5ef98afb7b
merge base branch
2022-09-05 15:43:57 +04:00
Evgeny Danienko
2fd85f6ec8
the source of randomness
2022-09-05 12:47:59 +04:00
Arpit Temani
91108cec4b
Merge branch 'shiva/pos-730' of github.com:maticnetwork/bor into arpit/pos-655
2022-09-05 11:52:09 +04:00
Evgeny Danienko
a4eb03eed1
linters
2022-09-05 11:51:18 +04:00
Arpit Temani
18546fee20
Merge branch 'shiva/pos-730' of github.com:maticnetwork/bor into shiva/pos-730
2022-09-05 11:50:20 +04:00
Arpit Temani
624e6bb26f
Merge branch 'develop' of github.com:maticnetwork/bor into shiva/pos-730
2022-09-05 11:50:05 +04:00
Evgeny Danienko
5f9d15665c
merge
2022-09-05 11:46:45 +04:00
Arpit Temani
debb38853d
fix ci, lint
2022-09-05 11:40:04 +04:00
Evgeny Danienko
7136ca61e0
linters
2022-09-05 11:33:42 +04:00
Arpit Temani
55a9ecec41
fix ci
2022-09-05 11:03:56 +04:00
Evgeny Danienko
e5fcab70d2
use crypto rand
2022-09-05 10:58:43 +04:00
Evgeny Danienko
9d975fb833
lint
2022-09-05 10:53:22 +04:00
Evgeny Danienko
c0a4b0fbb5
fix flacky test
2022-09-05 10:50:00 +04:00
Arpit Temani
06858386bf
Merge branch 'shiva/pos-730' of github.com:maticnetwork/bor into arpit/pos-655
2022-09-05 10:43:17 +04:00
Arpit Temani
c6c2e74919
Merge branch 'develop' of github.com:maticnetwork/bor into arpit/pos-655
2022-09-05 10:36:52 +04:00
Evgeny Danilenko
714aef422b
Property based tests on TxPool: pending, locals ( #466 )
...
* initial
* measure
* initial test
* block size debug
* current progress
* debug
* progress
* debug
* it works
* todo
* linters
* clean up
* check for nonce gaps
* clean up
* cr
* cr
* cr
* check tx pool on an error
* stats
* params
* introduce config
* min-max accounts
* debug
* debug
* update
* debug
* skip
2022-09-03 11:20:24 +03:00
Amir Hossein
4b9c307d26
trie: fix unhandled error in test ( #25628 )
2022-09-02 18:07:55 +02:00
Seungbae Yu
0d68b6bf10
trie: fix typo in comment ( #25667 )
2022-09-02 17:48:26 +02:00
Seungbae Yu
38e002f464
rpc: check that "version" is "2.0" in request objects ( #25570 )
...
The JSON-RPC spec requires the "version" field to be exactly "2.0",
so we should verify that. This change is not backwards-compatible with
sloppy client implementations, but I decided to go ahead with it anyway
because the failure will be caught via the returned error.
2022-09-02 17:47:29 +02:00
protolambda
90711efb0a
node, rpc: add JWT auth support in client ( #24911 )
...
This adds a generic mechanism for 'dial options' in the RPC client,
and also implements a specific dial option for the JWT authentication
mechanism used by the engine API. Some real tests for the server-side
authentication handling are also added.
Co-authored-by: Joshua Gutow <jgutow@optimism.io>
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-09-02 17:40:41 +02:00
Martin Holst Swende
7f2890a9be
eth/fetcher: throttle peers which deliver many invalid transactions ( #25573 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-09-02 17:28:33 +02:00
Sina Mahmoodi
d6a12bc7b8
eth/tracers/js: fill in log.refund field ( #25661 )
...
For some reason, an accessor method for this field exists in JS, but
the value was never actually assigned.
2022-09-02 17:08:25 +02:00
xternet
198fa956f4
README.md: improve grammar ( #25646 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-09-02 16:58:20 +02:00
Jakub Freebit
d2027accdc
mobile: register filter APIs ( #25642 )
...
This fixes a regression introduced in PR #25459 .
2022-09-02 16:53:58 +02:00
Shivam Sharma
9ac97e03fc
chg : minor changes
2022-09-02 13:58:00 +05:30
Péter Szilágyi
511bf8f188
Merge pull request #25651 from holiman/fix_snapqueue
...
eth/protocols/snap: fix problems due to idle-but-busy peers
2022-09-01 12:38:34 +03:00
rjl493456442
d46184c969
core/state: filter out nil trie for copy ( #25575 )
2022-09-01 09:34:32 +02:00
Martin Holst Swende
d79bd2f0f6
trie: better error reporting ( #25645 )
2022-09-01 08:41:10 +02:00
Manav Darji
7bb7bacd50
Merge pull request #503 from maticnetwork/shivam/sealer-gasPrice ( #506 )
...
internal/cli/server: update default cli values
Co-authored-by: SHIVAM SHARMA <shivam691999@gmail.com>
2022-09-01 11:07:49 +05:30
Marius van der Wijden
95a2c221d4
eth/catalyst: prevent division by zero ( #25654 )
...
eth/catalyst: prevent diff by zero
2022-08-31 21:29:39 +03:00
rjl493456442
3f79afb599
trie: cleanup stateTrie ( #25640 )
...
It's a trivial PR to hide the error log when the trie node is not found in the database. The idea for this change is for all TryXXX functions, the error is already returned and we don't need to fire a log explicitly.
Recently there are a few tickets #25613 #25589 reporting that the trie nodes are missing because of debug.SetHead. The root cause is after resetting, the chain rewinds to a historical point and re-imports the blocks on top.
Since the node is already synced and started to accept transactions previously, these transactions are still kept in the txpool and verified by txpool with a live state. This live state is constructed based on the live trie database, which is changed fast by node referencing and de-referencing.
Unfortunately, when we construct a live state(like the state in txpool), we don't reference the state we have. The blockchain will garbage collect the intermediate version nodes in another thread which leads the broken live state.
The best solution for this is to forcibly obtain a reference for all live states we create and call release function once it's used up. But it might end up with more junks persisted into disk. Will try to find an elegant solution later in the following PR.
2022-08-31 18:18:18 +02:00
Martin Holst Swende
dafa40e7a7
eth/protocols/snap: fix problems due to idle-but-busy peers
2022-08-31 17:58:18 +02:00
aaronbuchwald
3d68bb03c3
trie: fix grammar in comment ( #25648 )
2022-08-31 16:26:39 +02:00
Sina Mahmoodi
8cfcb41e57
graphql: return correct logs for tx ( #25612 )
...
* graphql: fix tx logs
* minor
* Use optimized search for selecting tx logs
2022-08-31 16:14:53 +02:00
Shivam Sharma
a2dc545fac
rm : interrupt + sleep
2022-08-31 19:34:38 +05:30
Shivam Sharma
5067c6cdeb
add : TestValidatorWentOffline
2022-08-31 19:05:36 +05:30
Jakub Freebit
279afd7947
mobile: close node on error ( #25643 )
2022-08-31 13:31:16 +03:00
Martin Holst Swende
362256ebff
eth/catalyst: adjust eta for themerge ( #25601 )
...
* eth/catalyst: adjust eta for themerge
* squash
* squash
* eth/catalyst: address review concerns
2022-08-31 13:28:35 +03:00
rjl493456442
d10c280309
all: move genesis initialization to blockchain ( #25523 )
...
* all: move genesis initialization to blockchain
* core: add one more check
* core: fix tests
2022-08-30 18:22:28 +02:00