Commit graph

240 commits

Author SHA1 Message Date
Shivam Sharma
b38c7b017e
add : cancun block for Amoy 2024-03-26 17:16:54 +05:30
Shivam Sharma
184b2d628d Merge branch 'master' into shivam/temp-master-develop 2024-03-20 14:29:04 +05:30
Manav Darji
53ba03b2c2
Finalize mainnet cancun/napoli HF block number (#1178) 2024-03-06 00:14:14 +05:30
Manav Darji
cb23b9baa3
eth, core: track block propagation (#1078)
* eth, core: track block announcement and import timings

* eth: track total delay

* eth: add more context and prefix in logs

* eth/fetcher: fix invalid tracking of received at time

* put logs behind log.enable-block-tracking flag

* fix lint

* improve logging

* add comments

* add comments
2024-03-05 22:30:51 +05:30
Shivam Sharma
01740e47de Merge branch 'v1.2.5-beta-candidate' into shivam/upstream-geth-1.13.5 2024-02-12 16:33:55 +05:30
Shivam Sharma
4008d5efe8 Merge branch 'develop' into shivam/upstream-geth-1.13.5 2024-02-08 18:00:59 +05:30
Pratik Patil
08a2608023
removed ParallelUniverseBlock from amoyTestnet (#1154) 2024-02-05 11:29:07 +05:30
VaibhavJindal
577e2b572c
Merge pull request #1147 from rex4539/typos
fix typos
2024-02-01 13:45:09 +05:30
Arpit Temani
5d34ab40d8 add cancun Block for mumbai 2024-01-30 13:31:36 +05:30
Anshal Shukla
3a9d1539bb fix: bootnode 2024-01-29 19:55:25 +05:30
Dimitris Apostolou
ce68cb17ac
fix typos 2024-01-29 09:21:47 +02:00
Pratik Patil
f1e0b1d926
Changed parallel universe HF to Cancun HF and some important fixes (#1132)
* changed parallel universe HF to napoli HF

* integration-tests: update ipc path on ci tests (#1127)

* integration-tests: update ipc path on ci tests

* added devnetBorFlags in matic-cli-config.yml

---------

Co-authored-by: Pratik Patil <pratikspatil024@gmail.com>

* Revert "integration-tests: update ipc path on ci tests (#1127)"

This reverts commit 0660fac39b.

* using cancun for block-stm metadata instead of napoli

* added a check to verify tx dependencies and test cases

* fix in snapshot.chainConfig

* removed snapshot.*params.BorConfig using snapshot.chainConfig.Bor instead

* removed unnecessary if statement in ParallelStateProcessor.Process

* addressed comment

* small fix in commitTransactions

* dependency calculation bug fix in miner/worker.go

---------

Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
Co-authored-by: Arpit Temani <temaniarpit27@gmail.com>
2024-01-23 10:52:00 +05:30
Shivam Sharma
fcd5002b6b fix : flags, FLOCK lock 2024-01-19 17:55:39 +05:30
Arpit Temani
5fc30aeaac
Revert "Consistent" 2024-01-19 17:19:12 +05:30
Shivam Sharma
65014b1f5e Merge branch 'develop' into shivam/upstream-geth-1.13.5 2024-01-19 13:56:00 +05:30
SHIVAM SHARMA
2a35bf8340
add : amoy flags and genesis (#1131)
* add : amoy flags and genesis

* minor fix

* add : amoy.json in internal/cli/server

* disable : peer check in mining for Amoy

* add : amoy genesis hash

* add amoy testnet deployment entries

* update : amoy genesis

* fix typos

* add : post london forks + burn contract

* add : amoy genesis hash

* bump : version meta to amoy (#1092)

* add : amoy bootnodes

* chg : maxpeers of amoy val to 3 from 1

* bump : version to v1.1.0-amoy-2

* add : amoychain worker restriction on peercount

---------

Co-authored-by: sreevalsanmr <sreevalsan@polygon.technology>
2024-01-19 02:01:36 +05:30
Shivam Sharma
b479b204a7 Merge branch 'develop' into shivam/upstream-geth-1.13.5 2024-01-11 17:51:59 +05:30
Shivam Sharma
8c088c7295 fix : resolve static problems 2023-12-15 13:57:19 +05:30
Pratik Patil
8b2f02419d
test all default flags added via config file (#1105) 2023-12-15 12:49:11 +05:30
Arpit Temani
7006addb59 Merge tag 'v1.1.0' of github.com:maticnetwork/bor into arpit/1.2.0 2023-11-22 11:41:34 +05:30
Pratik Patil
923c192c7d
Added cache.blocklogs (FilterLogCacheSize) flag (#1083)
* added cache.blocklogs (FilterLogCacheSize) flag

* updated docs

* minor fix

Co-authored-by: Mael Regnery <mael@mqli.fr>

---------

Co-authored-by: Mael Regnery <mael@mqli.fr>
2023-11-20 10:18:11 +05:30
Arpit Temani
384383c1eb
Merge pull request #968 from maticnetwork/arpit/pos-1731
Geth Merge v1.12.2
2023-11-10 15:11:26 +05:30
Arpit Temani
3c97a5b7a0 Revert "aded blobpool related flags"
This reverts commit 15f0c41d2c.
2023-11-10 14:37:26 +05:30
Shivam Sharma
5b5ea8cf37 add : mainnet Agra block 2023-11-09 17:25:05 +05:30
Pratik Patil
15f0c41d2c
aded blobpool related flags 2023-11-09 15:04:28 +05:30
Pratik Patil
368ae246fd
added p2p v4 discovery flag wrt geth v1.12.2 merge 2023-11-08 17:44:35 +05:30
Pratik Patil
6aed36d9d1
removed --cache.trie.journal and --cache.trie.rejournal wrt geth v1.12.2 merge 2023-11-08 17:11:54 +05:30
Léo Vincent
22a2b63df6
chore: improve bor server --help (#1063)
* chore: update `txarrivalwait` flag description

* chore: update docs

* chore: update other flags

* fix: doc generation is now deterministic

* chore: remove debug

* feat: sort options in `bor server --help`

* fix: prealloc array

* fix: lint issues

* internal/cli: remove nolint

---------

Co-authored-by: marcello33 <marcelloardizzone@hotmail.it>
Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
2023-11-07 10:57:18 +05:30
Arpit Temani
1483c960ed merge develop 2023-11-03 10:10:02 +05:30
Manav Darji
adfd428bc0
internal/cli: set default value for keystore (#1051)
* internal/cli: set default valuee for keystore

* internal/cli: add tests

* internal/cli: fix tests
2023-10-18 12:16:34 +05:30
Shivam Sharma
cefca4ff42 chg : agra mumbai hf blockNumber to 41874000 2023-10-17 14:42:36 +05:30
Arpit Temani
3d8ee19c4c merge develop 2023-10-17 11:32:30 +05:30
Arpit Temani
48f6200449 merge shanghai tests 2023-10-16 23:23:13 +05:30
Shivam Sharma
808c41d7a8 add : mumbai newBurnContract Address 2023-10-16 17:38:16 +05:30
Shivam Sharma
d65fda705f fix : indentation 2023-10-16 14:04:29 +05:30
Shivam Sharma
6ba40bd9ee fix : spelling 2023-10-16 14:02:22 +05:30
Shivam Sharma
60899e3148 add : additional agra HF configs 2023-10-16 13:57:23 +05:30
Arpit Temani
3c666fde68 merge develop 2023-10-09 15:34:18 +05:30
marcello33
53f28f2f29 Merge branch 'master' into backport/master-to-develop 2023-10-05 19:31:51 +02:00
Manav Darji
d639bb818c
Add more mainnet bootnodes (#1026)
* update mainnet bootnodes

* internal/cli/server: handle nil chain case for tests
2023-10-05 18:31:26 +05:30
Arpit Temani
08b4937cb6 fix lint 2023-09-23 16:26:23 +05:30
Arpit Temani
766a84558a fix tests 2023-09-22 15:03:56 +05:30
Manav Darji
8613ff1c06
internal/cli: add support to overwrite config.toml values via cli flags (#1008)
* internal/cli: add support to overwrite config.toml via cli flags

* fix lint and refactor

* add extensive tests for flagset

* fix type conversion for big.Int

* add more tests for coverage

* add t.parallel

* internal/cli/flagset: handle flag conversion using interface

* internal/cli/flagset: fix test
2023-09-21 12:52:59 +05:30
Arpit Temani
046030df1f merge latest develop 2023-09-20 21:56:08 +05:30
Arpit Temani
8653c83007 fix test-integration 2023-09-20 21:44:07 +05:30
Jerry
5fcd45eaf3 Add read header timeout 2023-09-15 08:17:55 -07:00
Jerry
ec6b09240e Enable prometheus in bootnode 2023-09-15 08:17:55 -07:00
Pratik Patil
3442c0336d
Merge pull request #998 from maticnetwork/v1.0.0-beta-candidate
V1.0.0 beta candidate
2023-09-12 21:41:19 +05:30
rroblak
ebc7dc231a
Add CLI flags to config LevelDB table/total sizes (#981)
* Add CLI flags to config LevelDB table/total sizes

I wired up CLI flags to allow configuring LevelDB table and total sizes:
  - `--leveldb.compaction.table.size`, LevelDB SSTable file size factor in MiB (default: 2)
  - `--leveldb.compaction.table.multiplier`, multiplier on LevelDB SSTable file size (default: 1)
  - `--leveldb.compaction.total.size`, total size factor in MiB of LevelDB levels (default: 10)
  - `--leveldb.compaction.total.multiplier`, multiplier on LevelDB total level size (default: 10)

N.B. that the default values for these configs are exactly the same as
before this changset and so Bor behavior should not change unless these
flags are deliberately overridden. Bor/Geth inherited the default values
from [the `goleveldb`
defaults](126854af5e/leveldb/opt/options.go).

We (Alchemy) found it necessary to override these configs as follows to
keep Bor archive nodes tracking the canonical chain:
  - `--leveldb.compaction.table.size=4`
  - `--leveldb.compaction.total.size=20`

These overrides double the size of LevelDB SSTable files (2 MiB -> 4
MiB) and also the total amount of data in each level (100 MiB -> 200
MiB, 1,000 MiB -> 2,000 MiB, etc.). The idea is to have LevelDB read and
write data in larger chunks while keeping the proportional frequency of
compaction operations the same as in the original defaults defined by
Dean and Ghemawat.

Without these overrides we found that our archive nodes would tend to
fall into a "LevelDB compaction loop of death" where the incoming stream
of blockchain data could not be flowed into LevelDB's structure quickly
enough, resulting in the node blocking writes for long periods of time
while LevelDB's single-threaded compaction organized the data.  Over
time the nodes would fall farther and farther behind the canonical chain
head, metaphorically dying a slow node's death.

These configs can be changed on existing node databases (resyncing is
not necessary). LevelDB appears to work correctly with SSTable files of
different sizes. Note that the database does not undergo any sort of
migration when changing these configs. Only newly-written files (due to
new data or compaction) are affected by these configs.

* Update docs

* Adjust line spacing for linter

* Replace map with `ExtraDBConfig`

* Rename `LevelDbConfig` to `ExtraDBConfig`

* Regenerate docs
2023-09-12 12:09:26 +02:00
Jerry
07d7c6c6e2
Update mumbai bootnodes 2023-09-11 11:44:36 -07:00