Commit graph

13966 commits

Author SHA1 Message Date
SHIVAM SHARMA
a671c9eddd
internal/cli/server : fix : added triesInMemory in config (#677) 2023-01-18 21:41:52 +05:30
Raneet Debnath
e06376cd28
Merge pull request #674 from maticnetwork/raneet10/pos-1029
CI: Update matic-cli branch in integration tests
2023-01-16 14:31:19 +05:30
Raneet Debnath
af5d882473 trigger ci 2023-01-16 12:12:09 +05:30
Raneet Debnath
213d0cd56d CI: use matic-cli master branch 2023-01-16 09:11:02 +05:30
SHIVAM SHARMA
9aeaf03f05
Merge branch 'qa' and 'master' into develop (#663)
* Adding in Mumbai/Mainnet precursor deb packaging for tests to use during upgrade(iterations to come)

* Added changes per discussion in PR, more changes may be necessary

* Adding prerelease true

* Disabling goreleaser

* Removing README swap file

* change bor_dir and add bor user for v0.3.0 release

* rollback bor user and use root

* 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

* fixed static-nodes related buf (os independent) (#598)

* fixed static-nodes related buf (os independent)

* taking static-nodes as input if default not present

* 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

* metrics: handle nil telemetry config (#601)

* resolve merge conflicts

* update go version in release.yml

* update goversion in makefile

* update Docker login for goreleaser-cross v1.19

* Cleanup for the packager to use git tag in the package profile naming. Added conditional check for directory structure, this is in prep for v0.3.1, as this will create a failure on upgrade path in package due to file exist

* 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>

* Adding of 0.3.0 package changes, control file updates, postinst changes, and packager update

* added ancient datadir flag and toml field, need to decide on default value and update the conversion script

* updated toml files with ancient field

* 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>

* remove unwanted code

* Fix docker publish authentication issue

In gorelease-cross 1.19+, dockerhub authentication will require docker
logion action followed by mounting docker config file. See
https://github.com/goreleaser/goreleaser-cross#github-actions.

* Revert "update Docker login for goreleaser-cross v1.19"

This reverts commit 4d19cf5342.

* Bump version to stable

* Revert "Merge pull request #435 from maticnetwork/POS-553"

This reverts commit 657d262def, reversing
changes made to 88dbfa1c13.

* revert change for release for go1.19

* 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.

* Add a summary of new CLI in docs

* Updating packager as binutils changed version so that apt-get installs current versions

* Add state pruning to new CLI

* Minor wording fix in prune state description

* Bumping control file versions

* Mainnet Delhi fork

* Set version to stable

* change delhi hardfork block number

* handle future chain import and skip peer drop (#650)

* handle future chain import and skip peer drop

* add block import metric

* params: bump version to v0.3.3-stable

* Bump bor version in control files for v0.3.3 mainnet release

Co-authored-by: Daniel Jones <djones@polygon.technology>
Co-authored-by: Will Button <wbutton@polygon.technology>
Co-authored-by: Will Button <will@willbutton.com>
Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
Co-authored-by: Daniel Jones <105369507+djpolygon@users.noreply.github.com>
Co-authored-by: Pratik Patil <pratikspatil024@gmail.com>
Co-authored-by: Arpit Temani <temaniarpit27@gmail.com>
Co-authored-by: Jerry <jerrycgh@gmail.com>
2023-01-13 14:47:14 +05:30
marcello33
a323b5bc3e
sonarqube integration (#658)
* dev: add: sonarqube integration into security-ci

* dev: add: exclude java files from sonarqube analysis
2023-01-11 17:33:53 +01:00
marcello33
5ae1b16970
dev: chg: update PR template to include nodes audience check (#641)
* dev: chg: update PR template to include nodes audience check

* dev: chg: better description

* dev: chg: add entry to changes too
2023-01-09 09:37:49 +01:00
Krishna Upadhyaya
ad69ccd0ba
Added flags to run heimdall as a child process (#597)
* Added flags to run heimdall as a child process

* Fix: Lint

* Fix btcd package dependency for CI

* Update btcd package version

* Try removing ambigious importts

* dev: fix: lint fix for parallel tests

* remove delete for ambigious import

* Remove unwanted space

* go mod tidy

* try replace

* try replace

* use vendor

* rename vendor

* tidy

* vendor btcec

* clean up

* remove submodule

* remove submodule

* remove submodule

* remove submodule

* remove vendor & added replacer in test

* go mod tidy

* added replacer

* Update replacer

* Update replacer

* Merge branch 'develop' into run-heimdall-flags

* Skip TestGolangBindings

* Typo fix

* Remove unwanted changes

Co-authored-by: marcello33 <marcelloardizzone@hotmail.it>
Co-authored-by: Evgeny Danienko <6655321@bk.ru>
2022-12-23 23:15:46 +05:30
Arpit Temani
4aa56c543a
Merge pull request #627 from builder90210/faster_tx_fetch
Reduce txArriveTimeout to 100ms
2022-12-22 11:54:55 +05:30
SHIVAM SHARMA
d8fcda36f3
Merge pull request #640 from maticnetwork/shivam/POS-1041
Shivam/pos 1041
2022-12-20 17:49:01 +05:30
Shivam Sharma
7b52c93c1b chg : logging strings 2022-12-20 11:39:11 +05:30
Shivam Sharma
513127cd8f chg : use standard logging 2022-12-20 10:54:03 +05:30
Shivam Sharma
828801f9d8 lint : fix linters 2022-12-19 18:36:10 +05:30
Shivam Sharma
43cafc0415 add : multiple keystore tolerance 2022-12-19 18:08:18 +05:30
Shivam Sharma
9cba79edee init : remove exit on keystore err 2022-12-19 13:57:18 +05:30
builder90210
243d231fe4 Reduce txArriveTimeout to 100ms 2022-12-12 22:43:29 -08:00
Arpit Temani
19fe8b41d2
Merge pull request #546 from maticnetwork/block-commit-stats
Add logs for transactions while committing a block
2022-12-12 13:31:35 +05:30
SHIVAM SHARMA
b1d86bd6ea
Shivam/txpool tracing (#604)
* lock, unlock to rlock, runlock

* add : tracing Pending() and Locals()

* Log time spent in committing a tx during mining

* Remove data from logging

* Move log into case where a tx completes without error

* profile fillTransactions

* fix conflict

* bug fixes

* add logs

* txpool: add tracing in Pending()

* rearrange tracing

* add attributes

* fix

* fix

* log error in profiling

* update file mode and file path for profiling

* full profiling

* fix log

* fix log

* less wait

* fix

* fix

* logs

* worker: use block number for prof files

* initial

* txList add

* fix gas calculation

* fix

* green tests

* linters

* prettify

* allocate less

* no locks between pending and reorg

* no locks

* no locks on locals

* more tests

* linters

* less allocs

* comment

* optimize errors

* linters

* fix

* fix

* Linters

* linters

* linters

* simplify errors

* atomics for transactions

* fix

* optimize workers

* fix copy

* linters

* txpool tracing

* linters

* fix tracing

* duration in mcs

* locks

* metrics

* fix

* cache hit/miss

* less locks on evict

* remove once

* remove once

* switch off pprof

* fix data race

* fix data race

* add : sealed total/empty blocks metric gauge

* add : RPC debug_getTraceStack

* fix : RPC debug_getTraceStack

* fix : RPC debug_getTraceStack for all go-routines

* linters

* add data race test on txpool

* fix concurrency

* noleak

* increase batch size

* prettify

* tests

* baseFee mutex

* panic fix

* linters

* fix gas fee data race

* linters

* more transactions

* debug

* debug

* fix ticker

* fix test

* add cacheMu

* more tests

* fix test panic

* linters

* add statistics

* add statistics

* txitems data race

* fix tx list Has

* fix : lint

Co-authored-by: Arpit Temani <temaniarpit27@gmail.com>
Co-authored-by: Jerry <jerrycgh@gmail.com>
Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
Co-authored-by: Evgeny Danienko <6655321@bk.ru>
2022-12-12 12:34:02 +05:30
Arpit Temani
469bd2918c add ignore rule for net/http2 2022-12-12 12:26:12 +05:30
Arpit Temani
f261c933d5 upgrade grpc version 2022-12-12 12:07:27 +05:30
Arpit Temani
a75eb71e48 fix linters 2022-12-12 02:52:50 +05:30
Arpit Temani
abed2a501a Merge branch 'develop' of github.com:maticnetwork/bor into block-commit-stats 2022-12-12 02:48:55 +05:30
marcello33
50a778207e
dev: add: pos-944: snyk and govuln integration (#578)
* dev: add: pos-944 security ci and readme

* dev: add: pos-944 remove linters as this is included already in build ci

* dev: chg: pos-947 dependencies upgrade to solve snyk security issues

* dev: chg: update security-ci

* dev: chg: remove linter to allow replacements for security issues

* dev: add: pos-944 verify path when updating metrics from config

* dev: add: pos-944 fix linter

* dev: add: pos-944 add .snyk policy file / fix snyk code vulnerabilities

* dev: fix: pos-944 import common package / gitignore snyk dccache file

* dev: fix: pos-944 verify canonical path for crashers

* dev: fix: pos-944 linter

* dev: add: pos-976 add govuln check

* dev: add: pos-976 test upload with permissions

* dev: add: pos-976 remove duplicated upload

* dev: add: pos-976 report upload

* dev: add: pos-976 remove upload

* dev: fix: pos-944 fix govuln action

* dev: fix: pos-944 move govulncheck to security-ci

* dev: fix: pos-944 bump golvun action and golang versions

* dev: fix: pos-944 remove persmissions and fix conflicts

* dev: chg: restore err msg

* dev: chg: remove duplicated function

* dev: chg: sort import

* dev: chg: fix linter

* dev: add: use common VerifyCrasher function to avoid duplications / replace deprecated ioutils.ReadFile

* dev: fix: typo
2022-12-06 10:53:55 +01:00
Arpit Temani
ba5822543c
Merge pull request #599 from maticnetwork/raneet10/pos-534
CI: Optimize devnet setup
2022-11-30 11:38:13 +05:30
Raneet Debnath
806ed051be minor chg: add new line 2022-11-25 17:50:58 +05:30
Raneet Debnath
9155cfc68b CI: cleanup 2022-11-25 17:37:31 +05:30
Raneet Debnath
7cb597886a CI: echo peers and block no. 2022-11-25 16:20:43 +05:30
Raneet Debnath
e378b5febc CI: fix assignment operator 2022-11-25 15:29:25 +05:30
Raneet Debnath
5df25bd360 CI: fix missing ; 2022-11-25 14:50:18 +05:30
Raneet Debnath
c686660fe5 CI: try using checked out bor path 2022-11-25 14:05:58 +05:30
Raneet Debnath
ca5fbadd70 CI: test: use bor in matic-cli 2022-11-25 12:19:20 +05:30
Raneet Debnath
be0a2ad79f CI: test launch devnet without hardcoded sleep time (pos-534) 2022-11-25 11:24:56 +05:30
Arpit Temani
b1739f67d7
Merge pull request #588 from maticnetwork/arpit/qa-to-develop
qa to develop
2022-11-22 13:30:10 +05:30
Arpit Temani
7ae5bce4d5 minor refactor 2022-11-22 12:28:57 +05:30
Arpit Temani
d89759c318 fix issues 2022-11-22 12:22:22 +05:30
Arpit Temani
be58978cdc revert some changes 2022-11-22 12:20:57 +05:30
Arpit Temani
a4a39a4dd9 merge v0.2.18-candidate 2022-11-22 12:16:28 +05:30
Arpit Temani
4c8ff3a062 merge v0.2.17 2022-11-22 12:14:10 +05:30
Arpit Temani
8ca3251aab version change 2022-11-22 01:27:22 +05:30
Arpit Temani
ac0593d6e1 mumbai fork - 13th dewc 2022-11-22 01:20:09 +05:30
SHIVAM SHARMA
aece5ca954
Merge pull request #587 from maticnetwork/shivam/POS-991
add : statesync tx added to GetBlockTransactionCount rpc
2022-11-21 22:55:15 +05:30
Shivam Sharma
5f8f8988ec lint : fix lint 2022-11-21 18:28:23 +05:30
Shivam Sharma
3008b04252 add : statesync tx added to GetBlockTransactionCount rpc 2022-11-21 18:23:12 +05:30
SHIVAM SHARMA
72831c1f3a
Merge pull request #585 from maticnetwork/shivam/POS-992
add : bor.logs in custom GetFilterLogs
2022-11-21 18:19:43 +05:30
Shivam Sharma
4cd58f176a fix : minor fix 2022-11-21 15:28:34 +05:30
Shivam Sharma
b6d1276474 fix : lint 2022-11-21 15:16:28 +05:30
Shivam Sharma
07f9741e8a add : bor.logs in custom GetFilterLogs 2022-11-21 14:53:22 +05:30
Arpit Temani
06c8ca6611 fix unused imports 2022-11-20 21:47:00 +05:30
Arpit Temani
1004bbd912 merge qa to develop 2022-11-20 21:44:55 +05:30
Raneet Debnath
a3e7769b5b
Merge pull request #583 from maticnetwork/raneet10/pos-535
Speed up smoke test
2022-11-18 20:06:37 +05:30