Commit graph

222 commits

Author SHA1 Message Date
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
Jerry
d75081df72
Update mainnet bootnodes 2023-09-11 11:09:52 -07:00
Arpit Temani
986486bb37 merge develop 2023-09-04 14:14:19 +05:30
Manav Darji
c7561dbb62
rename db.engine key for config files (#969) 2023-08-22 21:11:43 +05:30
Arpit Temani
d3c5bc9b45 fix build 2023-08-21 17:48:09 +05:30
Anshal Shukla
18dd5dc643 Update docs and add default config 2023-08-17 11:38:21 +05:30
Anshal Shukla
d342e654f3 add db.engine flag 2023-08-16 10:46:57 +05:30
Manav Darji
cfef444909 add rpc.enabledeprecatedpersonal flag 2023-08-01 15:21:09 +05:30
Shivam Sharma
811c90f549 Merge branch 'develop' into mardizzone/upstream-merge 2023-07-24 14:19:30 +05:30
marcello33
f3ffacf2d7 dev: fix: most of wsl lint issues 2023-06-15 15:48:26 +02:00
marcello33
131d7b221f dev: fix: solve more lint issues 2023-06-15 14:54:08 +02:00
marcello33
218917076c dev: fix: more wsl lint issues 2023-06-15 13:06:10 +02:00
marcello33
3af5e435c7 dev: fix: some wsl lint issues 2023-06-15 12:27:20 +02:00
marcello33
1c106dc251 dev: add: merge develop in upstream-merge 2023-06-13 12:37:20 +02:00
marcello33
d3f6da90e1 dev: chg: more regression changes for bor after merge 2023-06-12 19:35:40 +02:00
Pratik Patil
4d23e6de33
added IndoreBlock for Mumbai chain (#892) 2023-06-07 20:17:26 +05:30
Pratik Patil
c33d12e8a0
Merge branch 'develop' of https://github.com/maticnetwork/bor into qa-copy-psp 2023-05-31 11:49:42 +05:30
SHIVAM SHARMA
5c91264143
internal/cli/server :: chg : default OpenCollectorEndpoint to empty string (#872)
* chg : default OpenCollectorEndpoint to empty string

* chg : opencollector-endpoint defaults in configs
2023-05-22 15:28:03 +05:30
Jerry
c7f2701023
Enable parallel evm by default 2023-05-16 14:15:53 -07:00