Commit graph

13995 commits

Author SHA1 Message Date
marcello33
aaf5fe32f6
dev: chg: continue on error when uploading snyk results to GH (#795) 2023-03-28 13:43:17 +02:00
SHIVAM SHARMA
6f051513c2
add : testcase for CommitInterruptExperiment (#792)
* add : TestCommitInterruptExperimentBor

* lint : fix lint

* chg : add waitgroup
2023-03-28 13:31:37 +05:30
Raneet Debnath
b0ff49d373
Merge pull request #791 from maticnetwork/raneet10/pos-1345
internal/ethapi: set rpc gas cap as default gas limit when creating access list
2023-03-27 16:14:17 +05:30
Raneet Debnath
08a871c813
internal/ethapi: set rpc gas cap as default gas limit when creating access list 2023-03-27 14:59:47 +05:30
Pratik Patil
584856b52d
internal/cli: added missing flags (#744)
* minor comment update

* added support for rpc.evmtimeout flag

* added support for vmdebug (EnablePreimageRecording) flag

* added support for jsonrpc.auth.(jwtsecret, addr, port, vhosts) flags

* added support for miner.recommit flag

* added support for gpo.maxheaderhistory and gpo.maxblockhistory flag

* Revert "added support for miner.recommit flag"

This reverts commit fcb722e4bf5bdda23d4c91da40ab95c9023a80c3.

* added pprof related flags (expect --pprof.cpuprofile - Write CPU profile to the given file)

* added support for --dev.gaslimit flag

* added support for --fdlimit flag

* added support for --netrestrict flag

* added support for --nodekey and --nodekeyhex flag

* added support for --vmodule, --log.json, --log.backtrace, and --log.debug flags

* fixed related lint errors

* fix lints from develop (few lints decided to appear from code that was untouched, weird)

* more weird lints from develop

* small precautionary fix

* small bug ;) fix in NetRestrict

* weird lints

* change vmdebug = true to vmdebug = false
2023-03-20 17:28:56 +05:30
Evgeny Danilenko
71eadd09ca
interrupting commit experiment (#556)
* initial

* delete

* linters

* big benchmark

* benchmark big ints

* delay

* fix generate

* remove debug

* miner : chg : remove noempty check

* fix lints

* consensus/bor: handle unauthorized signer in consensus.Prepare (#651)

* fix : break loop fix

* lint : fix

* lint : more lint fix

* fix : skip TestEmptyWorkEthash and TestEmptyWorkClique

* add : metrics commitInterruptCounter

---------

Co-authored-by: Shivam Sharma <shivam691999@gmail.com>
Co-authored-by: Arpit Temani <temaniarpit27@gmail.com>
Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
2023-03-20 14:13:58 +05:30
Pratik Patil
238b4496d8
added support for miner.recommit flag (#743) 2023-03-17 16:13:23 +05:30
Raneet Debnath
c917e6fe68
Merge pull request #705 from maticnetwork/raneet10/pos-1126
core,eth,internal/cli,internal/ethapi: add --rpc.allow-unprotected-txs flag to allow txs to get replayed (for shadow node)
2023-03-16 15:00:28 +05:30
Krishna Upadhyaya
39b37b6f5c
Heimdall App implementation (#646) 2023-03-06 16:57:28 +05:30
Krishna Upadhyaya
4c68a7c6a1
Update wiki link (#762) 2023-03-02 17:41:18 +05:30
SHIVAM SHARMA
9e9efe48f1
Feat : SetMaxPeers (#726)
* init : add admin.setMaxPeers and getMaxPeers

* lint : fix lint

* add : some comments
2023-02-24 12:45:30 +05:30
marcello33
808259b4dc
mardizzone/hotfix-snyk: remove vcs build when running snyk (#745) 2023-02-17 13:08:10 +01:00
Raneet Debnath
4917fde5be builder,docs/cli,packaging: update toml files 2023-02-16 09:59:22 +05:30
Raneet Debnath
2c35dcc5bb core,docs/cli,internal/cli/server: make docs 2023-02-15 20:06:15 +05:30
SHIVAM SHARMA
ec14a06dc2
Add : commit details to bor version (#730)
* add : commit details to bor version

* fix : MAKEFILE

* undo : rm test-txpool-race

* rm : params/build_date

* rm : params/gitbranch and params/gitdate
2023-02-14 16:06:39 +05:30
SHIVAM SHARMA
6f153f05d7
chg : commit tx logs from info to debug (#673)
* chg : commit tx logs from info to debug

* fix : minor changes

* chg : miner : commitTransactions-stats moved from info to debug

* lint : fix linters

* refactor logging

* miner : chg : UnauthorizedSignerError to debug

* lint : fix lint

* fix : log.Logger interface compatibility

---------

Co-authored-by: Evgeny Danienko <6655321@bk.ru>
2023-02-14 16:03:55 +05:30
SHIVAM SHARMA
87deea068a
Add : mutex pprof profile (#731)
* add : mutex pprof profile

* rm : remove trace from default pprof profiles
2023-02-14 11:06:14 +05:30
Manav Darji
53fd1fe912
miner: use env for tracing instead of block object (#728) 2023-02-13 23:41:49 +05:30
Dmitry
0ed78b9261
Check if block is nil to prevent panic (#736) 2023-02-10 11:18:32 +05:30
Pratik Patil
c4f33329ea
Added verbosity flag, supports log-level as well, but will remove that in future. (#722)
* changed log-level flag back to verbosity, and updated the conversion script

* supporting both verbosity and log-level, with a message to deprecat log-level

* converted verbosity to a int value
2023-02-10 08:49:32 +05:30
marcello33
ad936ed3fc
dev: chg: POS-215 move sonarqube to own ci (#733) 2023-02-09 10:04:29 +01:00
Evgeny Danilenko
c46aae23da
add check for empty lists in txpool (#704)
* add check

* linters
2023-02-09 10:07:44 +03:00
SHIVAM SHARMA
a4f1ac1500
consensus/bor : add : devFakeAuthor flag (#697) 2023-02-09 12:10:32 +05:30
ephess
c6d7f59c8b
Revert "Reduce txArriveTimeout to 100ms" (#707)
This reverts commit 243d231fe4.
2023-02-07 14:54:21 +05:30
Pratik Patil
9880d754c6
Added flag in Status to wait for backend, and fixed panic issue. (#708)
* checking if backend is available during status call, and added a flag to wait if backend is not available

* added test for status command (does not cover the whole code)
2023-02-07 09:05:34 +05:30
Manav Darji
a1871ad22c
internal/cli: add skiptrace flag for profiling (#715)
* internal/cli: add skiptrace flag

* docs: update docs for skiptrace flag
2023-02-03 00:16:43 +05:30
Raneet Debnath
cb973283bc core,eth,internal/cli,internal/ethapi: add --rpc.allow-unprotected-txs flag to allow txs to get replayed (for shadow node) 2023-01-27 16:05:37 +05:30
Shivam Sharma
2ad6dcf53b consensus/bor : add : devFakeAuthor flag 2023-01-20 17:13:36 +05:30
Didi
d6899d79ea
update requirements in README (#681) 2023-01-19 11:57:37 +05:30
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