Commit graph

111 commits

Author SHA1 Message Date
Jerry
59bdbef42a Mainnet Delhi fork 2023-01-04 12:20:15 -08:00
Jerry
b7ed9de45b Add state pruning to new CLI 2022-12-14 15:49:43 -08:00
Arpit Temani
660677b646 Merge branch 'master' of github.com:maticnetwork/bor into arpit/master-to-qa 2022-12-14 23:26:01 +05:30
Jerry
a37af35c36 Add default values to CLI helper and docs
This commit adds default values to CLI helper and docs. When the default value of a string flag, slice string flag, or map string flag is empty, its helper message won't show any default value.
2022-12-13 23:23:10 -08:00
Arpit Temani
c807faaa94 merge current qa branch 2022-12-05 19:42:00 +05:30
Pratik Patil
57075d000d
Add support for new flags in new config.toml, which were present in old config.toml (#612)
* added HTTPTimeouts, and TrieTimeout flag in new tol, from old toml

* added RAW fields for these time.Duration flags

* updated the conversion script to support these extra 4 flags

* removed hcl and json config tests as we are only supporting toml config files

* updated toml files with cache.timeout field

* updated toml files with jsonrpc.timeouts field

* tests/bor: expect a call for latest checkpoint

* tests/bor: expect a call for latest checkpoint

* packaging/templates: update cache values for archive nodes

Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
2022-12-05 19:21:33 +05:30
Pratik Patil
e3303294b4 added ancient datadir flag and toml field, need to decide on default value and update the conversion script 2022-12-04 10:02:55 +05:30
Pratik Patil
4d06349d95
added a toml configuration file with comments describing each flag (#607)
* added a toml configuration file with comments describing each flag

* internal/cli/server: update flag description

* docs/cli: update example config and description of flags

* docs: update new-cli docs

Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
2022-12-01 09:20:17 +05:30
Arpit Temani
59dccd37c3 resolve merge conflicts 2022-11-29 13:03:49 +05:30
Arpit Temani
4b6115d9bb merge latest qa 2022-11-29 12:55:31 +05:30
Manav Darji
095ce5e1da
Update default flags (#600)
* internal/cli/server: use geth's default for txpool.pricelimit and add comments

* builder/files: update config.toml for mainnet

* packaging/templates: update defaults for mainnet and mumbai

* internal/cli/server: skip overriding cache

* packaging/templates: update cache value for mainnet

* packaging/templates: update gcmode for archive mumbai node
2022-11-25 11:26:31 -05:00
Manav Darji
137fb19d2a
metrics: handle equal to separated config flag (#596)
* metrics: handle  based config path

* internal/cli/server: add more context to logs

* use space separated flag and value in bor.service
2022-11-24 09:12:32 -05:00
Arpit Temani
ac0593d6e1 mumbai fork - 13th dewc 2022-11-22 01:20:09 +05:30
Arpit Temani
1004bbd912 merge qa to develop 2022-11-20 21:44:55 +05:30
Arpit Temani
366496f68a revert changes for delhi fork 2022-11-17 11:43:21 +05:30
Arpit Temani
d5482469d0 change 5 sec to 2 sec 2022-11-15 22:26:42 +05:30
Arpit Temani
709bbc8a3e change mumbai and mainnet blocks 2022-11-15 19:41:41 +05:30
Arpit Temani
5a9a8c5804 change hardfork to span start 2022-11-15 16:44:28 +05:30
Arpit Temani
54934761bf change mumbai block number 2022-11-15 16:28:06 +05:30
Arpit Temani
4a1653f7e3 change sprintlength for 2022-11-15 15:06:49 +05:30
Shivam Sharma
7d92be2f17 fix : jaipurFork & baseFeeChangeDenom hardfork num to bigInt 2022-11-14 17:52:55 +05:30
Shivam Sharma
f768136102 init : baseFeeChangeDenom HardFork Changes 2022-11-14 17:38:12 +05:30
Arpit Temani
b7a282792c merge develop 2022-11-13 19:05:26 +05:30
Pratik Patil
8cc0b25353 Removed vhosts for ws and replaced cors with origins (#574)
* removed vhosts for ws and added replaced cors with origins

* updated script
2022-11-03 12:56:58 -07:00
Pratik Patil
1ab225c0e4
Removed vhosts for ws and replaced cors with origins (#574)
* removed vhosts for ws and added replaced cors with origins

* updated script
2022-11-03 12:54:57 -07:00
SHIVAM SHARMA
3fdb45e5e9
Merge pull request #552 from maticnetwork/shivam/POS-784
Make TriesInMemory configurable through CLI and toml config
2022-10-25 12:22:13 +05:30
Pratik Patil
5c5c992440 Changed default value of maxpeers from 200 to 50, update docs (#555)
* changed default of maxpeers from 200 to 50

* docs: update additional notes for new-cli

* docs: update additional notes for new-cli

* small bug fix in the script to fix shopt issue

Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
2022-10-20 20:35:03 -07:00
Pratik Patil
e17ee36ebe
Changed default value of maxpeers from 200 to 50, update docs (#555)
* changed default of maxpeers from 200 to 50

* docs: update additional notes for new-cli

* docs: update additional notes for new-cli

* small bug fix in the script to fix shopt issue

Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
2022-10-21 08:54:38 +05:30
Manav Darji
a977a76f97 metrics: handle values from config file (#565)
* metrics: handle metrics flag from config in metrics.init()

* internal/cli/server: log for metrics enabling and misconfiguration
2022-10-20 15:33:00 -07:00
Manav Darji
8aab374926
metrics: handle values from config file (#565)
* metrics: handle metrics flag from config in metrics.init()

* internal/cli/server: log for metrics enabling and misconfiguration
2022-10-21 02:15:42 +05:30
Jerry
cb12a6e4d6 Force load default tracers 2022-10-20 10:04:00 -07:00
Jerry
aab72143d9 Force load default tracers 2022-10-20 09:01:04 -07:00
Arpit Temani
e39da65458 modified testcase, modified producer delay 2022-10-18 00:44:48 +05:30
Shivam Sharma
225a826e0e add : TriesInMemory flag 2022-10-17 18:00:30 +05:30
Manav Darji
083c3fead1 internal/cli: add support for bor.logs flag in new-cli (#541)
* add support for bor.logs flag in new-cli

* handle bor.withoutheimdall flag commenting in conversion script
2022-10-05 14:51:12 -07:00
Manav Darji
54f97b8598
internal/cli: add support for bor.logs flag in new-cli (#541)
* add support for bor.logs flag in new-cli

* handle bor.withoutheimdall flag commenting in conversion script
2022-10-05 23:38:19 +05:30
Pratik Patil
43e5d3aa09
PR#518 and PR#529 -> qa (#532)
* Added script to generate config.toml fromstart.sh (#518)

* added go and bash script to get config out of start.sh and updated flagset.go

* changed 'requiredblocks' flag back to 'eth.requiredblocks'

* updated script

* changed 'requiredblocks' flag back to 'eth.requiredblocks'

* updated tests, and removed requiredblocks from json and hcl

* addressed comments

* internal/cli/server: fix flag behaviour (#529)

* remove setting maxpeers to 0 for nodiscover flag

* set default prometheus and open-collector endpoint

* skip building grpc address from pprof address and port

* fix: linters

* fix and improve tests

* use loopback address for prometheus and open-collector endpoint

* add logs for prometheus and open-collector setup

* updated the script to handle prometheus-addr

* updated builder/files/config.toml

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

Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
2022-09-29 14:25:27 +05:30
Arpit Temani
f6875757bf merge develop 2022-09-27 15:04:08 +05:30
Manav Darji
457314783f
internal/cli/server: fix flag behaviour (#529)
* remove setting maxpeers to 0 for nodiscover flag

* set default prometheus and open-collector endpoint

* skip building grpc address from pprof address and port

* fix: linters

* fix and improve tests

* use loopback address for prometheus and open-collector endpoint

* add logs for prometheus and open-collector setup

* updated the script to handle prometheus-addr

* updated builder/files/config.toml

Co-authored-by: Pratik Patil <pratikspatil024@gmail.com>
2022-09-27 13:36:42 +05:30
Pratik Patil
77db80cc91
Added script to generate config.toml fromstart.sh (#518)
* added go and bash script to get config out of start.sh and updated flagset.go

* changed 'requiredblocks' flag back to 'eth.requiredblocks'

* updated script

* changed 'requiredblocks' flag back to 'eth.requiredblocks'

* updated tests, and removed requiredblocks from json and hcl

* addressed comments
2022-09-23 13:37:04 +05:30
Pratik Patil
7c6f0a67e6 updated tests, and removed requiredblocks from json and hcl 2022-09-07 16:23:44 +04:00
Pratik Patil
d2eb2df62e changed 'requiredblocks' flag back to 'eth.requiredblocks' 2022-09-07 13:53:36 +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
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
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
Shivam Sharma
632c1646a8 chg : default sealer.gasPrice from 1wei to 1Gwei 2022-08-25 12:47:54 +05:30
Shivam Sharma
8186e4d2a1 chg : sealer.gasPrice to 1 from 30Gwei 2022-08-24 14:58:38 +05:30
Shivam Sharma
057f50eb6c fix : TestConfigLegacy 2022-08-23 19:13:01 +05:30
Shivam Sharma
324187776a chg : txpool.pricelimit to 1 2022-08-23 18:35:24 +05:30