Commit graph

13643 commits

Author SHA1 Message Date
Will Button
08ec50a846
change bor_dir and add bor user for v0.3.0 release 2022-11-23 09:43:34 -07:00
Jerry
b1f4196fa8
Merge pull request #575 from cffls/qa
Removed vhosts for ws and replaced cors with origins (#574)
2022-11-03 22:47:34 -07:00
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
Jerry
cabd736df9
Merge pull request #572 from cffls/qa
Add state sync transaction to debug_trace functions.
2022-11-02 12:44:37 -07:00
Jerry
0bc9f60756 Remove context from ApplyMessage 2022-11-01 17:00:41 -07:00
Shivam Sharma
2ec9e7b540 add : lint 2022-11-01 16:57:48 -07:00
Shivam Sharma
3a0cedc4b1 chg : standardTraceBlockToFile fix 2022-11-01 16:57:48 -07:00
Shivam Sharma
5e574bf129 chg : fix derference error on config without borTraceEnabled 2022-11-01 16:57:48 -07:00
Shivam Sharma
06a8f28703 chg : minor fix 2022-11-01 16:57:48 -07:00
Shivam Sharma
967b20ebf7 chg : major fix 2022-11-01 16:57:48 -07:00
Shivam Sharma
bce66b7ef5 chg : lint files 2022-11-01 16:57:48 -07:00
Shivam Sharma
bfd4f3e74e chg : support state-sync in newcli server debugBorBlock 2022-11-01 16:57:48 -07:00
Shivam Sharma
ee18b3cd18 chg : major fix 2022-11-01 16:57:48 -07:00
Shivam Sharma
b8c3b0043c add : Add state sync transaction to debug_traceBlock 2022-11-01 16:57:47 -07:00
Jerry
439d588fc9
Merge pull request #563 from cffls/qa
Force load default tracers
2022-10-20 21:48:59 -07:00
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
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
Jerry
cb12a6e4d6 Force load default tracers 2022-10-20 10:04:00 -07:00
Jerry
b019a017e3
Merge pull request #542 from cffls/qa
internal/cli: add support for bor.logs flag in new-cli (#541)
2022-10-05 21:40:00 -07:00
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
f4fcfd38d5
Merge pull request #539 from maticnetwork/manav/cherry-picks-for-qa
Merge commits to qa
2022-10-04 22:13:42 +05:30
Manav Darji
1a51560726 make script OS independent (#538) 2022-10-04 22:00:35 +05:30
Manav Darji
c724671172 rm: snapshot found log in bor consensus (#504) 2022-10-04 22:00:31 +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
Jerry
ebbe100ff1 Change heimdall branch to develop in CI 2022-09-28 08:57:00 -07:00
Arpit Temani
0969781eb5
Merge pull request #513 from maticnetwork/qa-flag-requiredblocks
Changed 'requiredblocks' flag back to 'eth.requiredblocks'
2022-09-08 12:51:34 +05:30
Jerry
2cf5945321 Remove orphaned containers when shutdown devnet
This will potentially resolve "ERROR: network docker_default has active endpoints" problem
2022-09-08 09:22:10 +04:00
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
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
Manav Darji
54719fb180 Makefile: copy bor binary to go bin (#469) 2022-08-22 23:43:17 -07:00
Pratik Patil
8c97faaa8c internal/cli, cmd/geth: replaced package naoina/toml with BurntSushi/toml and updated config name-tags (#486)
* removed package naoina/toml from dumpconfig and added BurntSushi/toml

* updated cmd/gethconfig.go
2022-08-22 23:43:17 -07:00
Manav Darji
2aacbde097 eth, cli: prevent snap sync mode migration - v0.3.x (#494)
* handle snap sync mode switches

* fix linters
2022-08-22 23:43:17 -07:00
Pratik Patil
0b28230c22 updated config.toml in builder/files, added all fields and commented those which are not used (#491) 2022-08-22 23:43:17 -07:00
Manav Darji
10c1ff2a74 internal/cli: add support for removedb (#478)
* internal/cli: add support for removedb

* update docs

* internal/cli: use constant path, handle err
2022-08-22 23:43:17 -07:00
Manav Darji
ba18491841 fix: tests 2022-08-04 09:36:09 -07:00
Manav Darji
18fafc01c6 disable bor wallet by default 2022-08-04 09:36:09 -07:00
Jerry
a28720ee42
Merge pull request #479 from cffls/qa
Update qa branch for v0.3.0
2022-08-02 22:29:46 -07:00
Pratik Patil
694dc02a01 fixed the bug caused by fillBigInt and FillTime.Duration functions (#474) 2022-07-29 17:13:00 -07:00
Jerry
8378cc9ecb Add 'bor' user during package installation 2022-07-29 17:12:54 -07:00
Pratik Patil
e62beee1b2 internal/cli: use config file for flags in new-cli, builder/files: update defaults (#457)
* updated simple.json and simple.hcl

* added annotations for developer and grpc block

* added toml tags and simple.toml file

* added support for toml config files

* updated simple files toml, hcl, json

* added config.toml in builder/files and updated bor.service

* add dumpconfig command in cli for exporting configs

* update docs

* updated .goreleaser.yml (POS-651)

* changed --config to -config

* added test config for tests and fixed lint errors

* made fields of type big.int and time.Duration private, removed merge from dumpconfig, setting up default values to the Raw fields in dumpconfig, and fixed one lint error

* fixed lint errors (strange)

* lint fix

* private no-more, using '-' in name tags to ignore

* updated name tags, made c.configFile as a stringFlag (only one config file supported) and updated the merge logic in command.go -> Run()

* fix: set method for big.Int flags, added a TODO

* handeled bigInt and timeDuration type, bug fix in config_legacy, lint fix

* updated flags, consistent across flags.go and config.go

* fixed config test and updated test hcl, json config files

* updated config legacy test

* added test to check values of cmd flags, restructured Run in command.go, linter fix

* fix linters

* lint again

* changed 2 flags and assert -> require

* changed the 2 flags back

* updated correct congig.toml path and made mainnet default

* updated config.toml with new flags

* added sample config (toml) file

* removed sample-config.toml and added it in docs/config.md

Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
2022-07-29 17:12:30 -07:00
Pratik Patil
f53981809e Change diverged flags back to Geth's convention (POS-602) (#451)
* changed name -> identity

* changed no-snapshot -> snapchot=true/false

* changed jsonrpc.corsdomain -> http.corsdomain

* changed jsonrpc.vhosts -> http.vhosts

* changed http/ws.modules to http/ws.api

* updated readme

* updated config_test

* make docs

* handelling string array flag, overwrite insted of append

* added 'Default' to SliceStringFlag

* added separate flags for corsdomain and vhosts for http, ws, graphql

* modified tests
2022-07-29 16:56:58 -07:00
Jerry
f90faf0687 Match default parameters to mainnet 2022-06-30 10:36:44 -07:00
Arpit Temani
a73b0f70bf change version 2022-06-28 00:46:51 +05:30
Jerry
88dbfa1c13
Merge pull request #433 from cffls/develop
Merge branch 'v0.3.0-dev' into develop
2022-06-22 12:03:40 -07:00
Jerry
1daa659aa5 Merge remote-tracking branch 'upstream/develop' into develop 2022-06-22 00:08:02 -07:00
Krishna Upadhyaya
3bb14803e2
Merge pull request #437 from maticnetwork/krishna/reproducible-build-test
Added reproducible build test to CI
2022-06-21 18:26:05 +05:30
Krishna Upadhyaya
fbaeaa2247 Added reproducible build test to CI 2022-06-21 16:42:56 +05:30
Jerry
9592534a69 Integration tests 2022-06-20 11:25:39 -07:00
Jerry
9ec673870a Set Heimdall client to nil when 'withoutheimdall' is set 2022-06-16 10:28:28 -07:00