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
Felix Lange
2b6df280de
node: fix regression in TestJWT ( #25635 )
2022-08-30 16:41:09 +02:00
Seungbae Yu
7813b675f5
node: change JWT error status to 401 Unauthorized ( #25629 )
2022-08-30 15:25:02 +02:00
Rachel Bousfield
8df8eb4e7a
ethclient: add 'finalized' and 'safe' block number support ( #25580 )
2022-08-30 14:56:39 +02:00
Marius Kjærstad
44b36a0cdd
docs: specify execution client ( #25566 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-08-30 14:48:04 +02:00
uji
6d882a51e0
build: fix ignored errors ( #25591 )
2022-08-30 14:40:15 +02:00
Sina Mahmoodi
6e6b5087f1
cmd/geth: fix legacy receipt detection for empty db ( #25609 )
2022-08-30 14:38:35 +02:00
Manav Darji
d73d6df32b
params: update meta version
2022-08-30 16:16:26 +05:30
Abirdcfly
c394c308e6
all: remove duplicate word in comments ( #25618 )
...
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2022-08-29 11:16:34 +03:00
SHIVAM SHARMA
9c370f4dfc
Merge pull request #503 from maticnetwork/shivam/sealer-gasPrice
...
internal/cli/server: update default cli values
2022-08-26 18:21:11 +05:30
Manav Darji
75f4411102
fix: rename requiredblocks flag usage ( #505 )
2022-08-26 17:59:05 +05:30
Shivam Sharma
1ac5f09518
fix : TestConfigLegacy
2022-08-26 14:08:15 +05:30
Manav Darji
eb16a3d313
update defaults in new-cli
2022-08-26 11:24:51 +05:30