Manav Darji
f0d4401c51
eth, internal/cli: allow bor to run in snap sync ( #1532 )
...
This PR enables snap sync download mechanism. It allows users to use it as sync mode via setting the flag `syncmode` to `snap`. Snap sync instead of executing every block, downloads the state and chain from the p2p network trusting the peer(s) it's downloading from.
2025-05-08 11:30:46 +05:30
Manav Darji
adad83d6ac
consensus/bor: add span store abstraction for stateless verification ( #1472 )
...
Add a new abstraction called span store in bor consensus. This makes the header verification stateless as instead of fetching validator set (of a span) from genesis contract, we rely on span from heimdall itself for validator set. This doesn't change any assumptions for consensus as the data in genesis contracts is written by fetching span details from heimdall in the first place.
This helps us with multiple things such as header verification for snap sync, validating producer set against header's extra data, and using heimdall as a source of truth instead of making a contract call to genesis contract which generally leads to issues when importing side chains (as we need to use the side chain state and not canonical).
Span store is a minimal cache which maintains last 10 spans in memory. It provide simple read methods via span id and block number so that we can use it in consensus.
2025-05-07 21:34:12 +05:30
Jerry
53c0b9f82a
Fix ci ( #1530 )
2025-05-03 19:55:00 +05:30
shangchengbabaiban
956753646a
chore: fix function name in comment ( #1529 )
...
Signed-off-by: shangchengbabaiban <shuang.cui@live.cn>
2025-05-02 09:26:08 +05:30
Daniel Jones
7a5c864340
Updating packager ( #1527 )
2025-04-27 09:22:52 +02:00
marcello33
40aecb5000
no warning on package code
2025-04-14 17:13:57 +02:00
marcello33
09499853a5
fix path for logs
2025-04-10 12:48:58 -07:00
marcello33
bb7e6fa40b
ci update
2025-04-10 10:40:33 -07:00
Marcello Ardizzone
5d3df09e7d
Merge pull request #1508 from maticnetwork/mardizzone/fix-sec
...
Sec fixes
2025-04-01 10:07:41 +02:00
marcello33
750a07e5d4
fixes
2025-03-30 09:29:55 +02:00
marcello33
15d42486c6
bump x/net
2025-03-30 09:07:03 +02:00
Marcello Ardizzone
f96d451905
Merge pull request #1506 from maticnetwork/mardizzone/nil-check
...
fix nil pointer dereference on DoCall
2025-03-27 19:04:57 +01:00
marcello33
7d005ab547
fix nil pointer dereference on DoCall
2025-03-27 18:34:21 +01:00
Krishang Shah
5b8042378f
Merge pull request #1504 from maticnetwork/mardizzone/fix-mocks-gen
...
fix mocks generation and remove reflection
2025-03-26 20:11:32 +05:30
marcello33
131b413fd9
fix mocks generation and remove reflection
2025-03-26 15:18:43 +01:00
Manav Darji
8a55299877
Merge pull request #1502 from maticnetwork/manav/change-file-perms
...
(chore): change file permissions to 755 for packaging and misc scripts
2025-03-26 18:31:38 +05:30
Krishang Shah
8e61d1307b
Merge pull request #1495 from maticnetwork/krishang/cmd-enable-v5disc
...
cli,p2p: enable discv5 by default
2025-03-21 18:53:09 +05:30
Manav Darji
37736037ea
Merge pull request #1452 from maticnetwork/manav/upstream_merge_v1.14.11
...
Upstream merge v1.14.11
2025-03-21 16:52:08 +05:30
kamuikatsurgi
415f616a5b
make docs
2025-03-21 15:40:03 +05:30
kamuikatsurgi
58457ac3f9
cli,p2p: enable discv5 by default
2025-03-21 15:22:27 +05:30
Manav Darji
56065db427
Merge branch 'develop' into manav/upstream_merge_v1.14.11
2025-03-21 15:08:03 +05:30
Manav Darji
d93ed50fc8
Merge pull request #1494 from maticnetwork/p2p-fix
...
eth: dial nodes from discv5
2025-03-21 15:05:58 +05:30
Felix Lange
37a7cadc04
eth/protocols/eth: add discovery iterator to protocol ( #31185 )
...
We somehow forgot to add this in #30302 , so discv5 and DNS have actually
been disabled since then.
Fixes #31168
2025-03-21 14:24:31 +05:30
kamuikatsurgi
827251b56b
Revert: Revert "eth: dial nodes from discv5 ( #30302 )"
2025-03-21 14:24:23 +05:30
kamuikatsurgi
565e977de7
Revert squashed commit
2025-03-21 14:24:12 +05:30
Krishang Shah
99f3b70580
eth: dial nodes from discv5 ( #1492 )
...
* Revert: Revert "eth: dial nodes from discv5 (#30302 )"
* eth/protocols/eth: add discovery iterator to protocol (#31185 )
We somehow forgot to add this in #30302 , so discv5 and DNS have actually
been disabled since then.
Fixes #31168
---------
Co-authored-by: Felix Lange <fjl@twurst.com>
2025-03-21 14:13:27 +05:30
Manav Darji
754cce0629
Merge branch 'develop' into manav/upstream_merge_v1.14.11
2025-03-20 18:31:15 +05:30
Jerry
0e7ce277de
Revert "eth: dial nodes from discv5 ( #30302 )" ( #1489 )
...
This reverts commit 6eb42a6b4f .
2025-03-20 18:30:09 +05:30
Marcello Ardizzone
efbcc0ed64
Merge pull request #1488 from maticnetwork/mardizzone/genesis-contracts-fix
...
ci fix
2025-03-18 16:23:28 +01:00
marcello33
897332e908
install solc-select on e2e ci tests
2025-03-18 16:00:16 +01:00
linchizhen
a2fe0aaa2e
refactor: use t.TempDir() instead of os.MkdirTemp ( #1484 )
...
Signed-off-by: linchizhen <jiayanbing@yeah.net>
2025-03-11 06:41:40 -04:00
jj1980a
d72c039a1a
param: txs announced only ( #1467 )
2025-03-11 05:47:54 -04:00
Lucca Martins
697b68a54d
Merge pull request #1475 from MqllR/fix_bootnodes
...
fix: use single source of truth for bootnodes
2025-03-07 09:43:52 -03:00
Mael Regnery
1d87b93aa6
fix: use single source of truth for bootnodes
2025-03-07 11:32:41 +01:00
Lucca Martins
acf8d871de
Merge pull request #1464 from FlyingFog/crypto
...
update gfp12 MulScalar in crypto module.
2025-03-06 14:49:15 -03:00
Arya Lanjewar
12bd028cde
CI changes to accommodate Anvil
2025-03-05 17:39:59 +05:30
Arya Lanjewar
f767ec7f84
CI changes to accommodate Anvil
2025-03-05 16:42:28 +05:30
Arya Lanjewar
d3b4d34e37
Revert "CI changes to accommodate Anvil"
2025-03-05 16:32:29 +05:30
Arya Lanjewar
65a5f58218
Revert "CI changes to accommodate Anvil"
2025-03-05 16:22:52 +05:30
Arya Lanjewar
d5b5ae1fa0
CI changes to accommodate Anvil
2025-03-05 16:01:12 +05:30
Arya Lanjewar
86fc556609
Merge branch 'develop' into anvil-ci
2025-03-05 15:50:05 +05:30
Krishang Shah
c2531f4d03
Merge pull request #1474 from maticnetwork/krishang/remove-mumbai-from-readme
...
chore: Remove usage of Mumbai from README
2025-03-05 15:46:13 +05:30
kamuikatsurgi
3d0004abae
Remove mumbai from README
2025-03-05 13:58:44 +05:30
Krishang Shah
facb73215a
Merge pull request #1471 from maticnetwork/krishang/bor-info
...
feat: `bor_info` metric
2025-03-03 17:51:45 +05:30
Krishang Shah
cdd61bdd96
chore(ci): Fix GoVuln and formatting ( #1468 )
...
* chore: CI improvements
* revert comment deletions
* add cache for windows build
* chore
* Remove windows build check
2025-03-03 17:20:29 +05:30
kamuikatsurgi
192f6d2704
chore: improve comments
2025-03-03 17:08:58 +05:30
kamuikatsurgi
7afea05a0d
feat: bor_info metric
2025-03-03 15:06:02 +05:30
Arya Lanjewar
2085a1f85d
added contractsRepo to matic-cli config
2025-02-28 21:28:50 +05:30
Arya Lanjewar
4d609129d9
changed matic-cli branch to master
2025-02-28 17:14:55 +05:30
Arya Lanjewar
d6fa743fb6
added mnemonics to matic-cli config
2025-02-28 16:53:34 +05:30