Commit graph

15635 commits

Author SHA1 Message Date
marcello33
398c6ba1a7
dev: chg: update peppermint and cosmos-sdk to latest polygon releases (#1045) 2023-10-16 20:58:34 +02:00
marcello33
1a81777184
Add CodeQL (#1037)
* dev: add: codeQL

* dev: chg: solve codeQL high vulns

* dev: chg: remove js scan after dismissing relative issues

* dev: chg: fix size allocation checks

* dev: chg: fix size allocation checks

* dev: chg: use math.MaxUint8 for incorrect coversion for integer

* dev: chg: revert on one check / return error on trezorExchange func

* dev: chg: remove checks on logger as not harmful

* dev: chg: bump govuln action go versions

* dev: chg: name of CI for govuln

* dev: chg: bump x/net to 0.17 as per PR-1038

* dev: chg: remove snyk files
2023-10-16 09:28:53 +02:00
SHIVAM SHARMA
db1562bbe2
Fix Codecov and add integration tests coverage (#1020)
* add : gocovmerge support

* fix : minor fix

* add : dependancy for codecov

* fix : dependancy

* fix : codecov upload/download artifact

* fix : fix unable to find cover.out file

* fix : rename integration_cover.out

* chg : codecov-action from v1 to v3
2023-10-13 12:31:17 +05:30
Pratik Patil
a5d53af402
worker: (Block-STM) Do not hardcode EnableMVHashMap as false (#1039)
* do not hardcode EnableMVHashMap as false

* addressed comment

* lint
2023-10-12 17:15:14 +05:30
marcello33
d79e671aff
Merge pull request #1035 from maticnetwork/mardizzone/master-to-develop
mardizzone/master-to-develop
2023-10-10 15:15:36 +02:00
marcello33
3d9eb2c99c Merge branch 'master' into mardizzone/master-to-develop 2023-10-09 11:54:24 +02:00
marcello33
c66df3e116
Merge pull request #1034 from maticnetwork/mardizzone/peer-settings-mainnet
mainnet recommended peer settings
2023-10-09 11:49:07 +02:00
marcello33
a9e32c10e1 dev: add: recommended peer settings for mainnet nodes 2023-10-07 08:33:58 +02:00
marcello33
44408151e3
Merge pull request #1032 from maticnetwork/backport/master-develop
backport/master-to-develop
2023-10-06 12:03:56 +02:00
marcello33
ac25ecfa3d Merge branch 'master' into backport/master-develop 2023-10-06 10:38:33 +02:00
marcello33
d521b8e266
Merge pull request #1031 from maticnetwork/bump/v1.0.6
bump version
2023-10-06 10:28:24 +02:00
marcello33
532dfbeb68 bump version 2023-10-06 10:26:52 +02:00
marcello33
cbfd19acf6
Merge pull request #953 from maticnetwork/dependabot/go_modules/github.com/supranational/blst-0.3.11
build(deps): bump github.com/supranational/blst from 0.3.8-0.20220526154634-513d2456b344 to 0.3.11
2023-10-06 10:19:13 +02:00
marcello33
10341b5ea3
Merge pull request #1028 from maticnetwork/dependabot/go_modules/github.com/consensys/gnark-crypto-0.12.0
build(deps): bump github.com/consensys/gnark-crypto from 0.9.1-0.20230105202408-1a7a29904a7c to 0.12.0
2023-10-06 10:19:02 +02:00
SHIVAM SHARMA
784be5f72a
fix : wrong chainID on rpc (#1030) 2023-10-06 13:42:54 +05:30
dependabot[bot]
5d7accf0e2
build(deps): bump github.com/supranational/blst
Bumps [github.com/supranational/blst](https://github.com/supranational/blst) from 0.3.8-0.20220526154634-513d2456b344 to 0.3.11.
- [Release notes](https://github.com/supranational/blst/releases)
- [Commits](https://github.com/supranational/blst/commits/v0.3.11)

---
updated-dependencies:
- dependency-name: github.com/supranational/blst
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-06 07:40:01 +00:00
marcello33
cb2f8adc2b
Merge pull request #1029 from maticnetwork/backport/master-to-develop 2023-10-05 21:29:05 +02:00
marcello33
53f28f2f29 Merge branch 'master' into backport/master-to-develop 2023-10-05 19:31:51 +02:00
dependabot[bot]
51952ddb68
build(deps): bump github.com/consensys/gnark-crypto
Bumps [github.com/consensys/gnark-crypto](https://github.com/consensys/gnark-crypto) from 0.9.1-0.20230105202408-1a7a29904a7c to 0.12.0.
- [Release notes](https://github.com/consensys/gnark-crypto/releases)
- [Changelog](https://github.com/Consensys/gnark-crypto/blob/master/CHANGELOG.md)
- [Commits](https://github.com/consensys/gnark-crypto/commits/v0.12.0)

---
updated-dependencies:
- dependency-name: github.com/consensys/gnark-crypto
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-05 15:53:31 +00:00
marcello33
2e896e216c
Merge pull request #1027 from maticnetwork/v1.0.5-candidate
V1.0.5 release candidate
2023-10-05 17:52:13 +02:00
marcello33
49fdc66914 mardizzone/POS-1609: dev: chg: update bor version 2023-10-05 16:54:21 +02:00
marcello33
264ebf207e
dev: chg: solve vulns (#1024)
* mardizzone/POS-1609: dev: chg: solve vulnerabilities associated with some packages

* mardizzone/POS-1609: dev: chg: bump cosmos and go versions

* mardizzone/POS-1609: dev: chg: fix make all for aws dep

* mardizzone/POS-1609: dev: chg: update peppermint and cosmos-sdk versions
2023-10-05 16:14:38 +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
Manav Darji
766fdc307a
eth, consensus/bor: handle 503 status code in heimdall client (#1023)
* consensus/bor, eth: handle 503 response from heimdall

* log milestone ID during error

* add more checks to prevent logs

* fix: handle correct error
2023-10-05 15:53:40 +05:30
Anshal Shukla
5e43bdb30e
Merge pull request #1015 from maticnetwork/discord
readme: update discord links
2023-10-05 11:52:06 +05:30
Anshal Shukla
043b71d466 merge develop 2023-10-05 11:23:19 +05:30
Pratik Patil
ceee53cb5e
added locks to the tracer (#1022) 2023-10-04 15:11:58 +05:30
SHIVAM SHARMA
d233e4f869
fix : borTx chainID (#1021) 2023-10-04 12:22:08 +05:30
Anshal Shukla
da58cbc660 update discord links 2023-09-21 22:12:55 +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
Pratik Patil
ef38194156
Merge pull request #1013 from maticnetwork/master-to-develop
Backport master to develop after v1.0.4
2023-09-21 11:05:14 +05:30
Pratik Patil
2943db974d
Merge pull request #1010 from maticnetwork/v1.0.2-beta-candidate
1.0.2 beta candidate to master
2023-09-20 18:40:20 +05:30
Pratik Patil
70255b74ec
Merge branch 'master' into v1.0.2-beta-candidate 2023-09-20 17:38:09 +05:30
Arpit Temani
1918b4163a
Merge pull request #1009 from maticnetwork/develop
develop to v1.0.2-beta-candidate
2023-09-20 17:35:50 +05:30
Pratik Patil
18b3e1af05
version bump to v1.0.4 2023-09-20 17:30:21 +05:30
Pratik Patil
e901cc25c6
version bump to 1.0.4-beta 2023-09-19 11:51:19 +05:30
Pratik Patil
33c0b5dd69
added mutex to trie.tracer (#1007) 2023-09-18 10:43:16 +05:30
Jerry
fbb9020bec
Stop execution pool in rpc handler (#1005)
* Stop execution pool in rpc handler

All execution pools need to be closed properly. This fixes a potential goroutine leak caused by metric goutine created by each execution pool.

* Cancel only once
2023-09-15 13:06:47 -07:00
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
Manav Darji
71326b501b Simplify readme (#979)
* README: remove unnecessary info from readme and simplify

* more changes

* more changes

* more changes

* add contribution guidelines

* add test command

* README: add release tag info
2023-09-15 08:17:55 -07:00
Manav Darji
a54aadae4d
Simplify readme (#979)
* README: remove unnecessary info from readme and simplify

* more changes

* more changes

* more changes

* add contribution guidelines

* add test command

* README: add release tag info
2023-09-14 15:47:50 +05:30
Pratik Patil
bd4d85e3d3
version bump to v1.0.3-beta 2023-09-14 11:29:05 +05:30
Krishna Upadhyaya
11d19e12c4
Use borLogs instead of default (#1000) 2023-09-14 09:50:20 +05:30
Pratik Patil
8f6bb5c248
added RLock on pool.pendingMu in validateTxBasics() (#1001) 2023-09-14 09:48:30 +05:30
Pratik Patil
1f9c6bb045
version bump to 1.0.2-beta 2023-09-13 15:36:31 +05:30
Pratik Patil
67fc4d87fb
Added a new RPC endpoint (bor_sendRawTransactionConditional) to support EIP-4337 Bundled Transactions (#945)
* added new api to support conditional transactions (EIP-4337) (#700)

* Refactored the code and updated the miner to check for the validity of options (#793)

* refactored the code and updated the miner to check for the validity of options

* added new errors -32003 and -32005

* added unit tests

* addressed comments

* Aa 4337 update generics (#799)

* poc

* minor bug fix

* use common.Hash

* updated UnmarshalJSON function (reference - tynes)

* fix

* done

* linters

* with test

* undo some unintentional changes

---------

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

* handelling the block range and timestamp range, also made timestamp a pointer

---------

Co-authored-by: Evgeny Danilenko <6655321@bk.ru>

* Added filtering of conditional transactions in txpool (#920)

* added filtering of conditional transactions in txpool

* minor fix in ValidateKnownAccounts

* bug fix

* Supporting nil knownAccounts

* lints

* bundled transactions are not announced/broadcasted to the peers

* fixed after upstream merge

* few fixes

* sentry reject conditional transaction

* Changed the namespace of conditional transaction API from `eth` to `bor` (#985)

* added conditional transaction to bor namespace

* test comit

* test comit

* added conditional transaction

* namespapce changed to bor

* cleanup

* cleanup

* addressed comments

* reverted changes in ValidateKnownAccounts

* addressed comments and removed unwanted code

* addressed comments

* bug fix

* lint

* removed licence from core/types/transaction_conditional_test.go

---------

Co-authored-by: Evgeny Danilenko <6655321@bk.ru>
2023-09-13 08:28:00 +05:30
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
Vaibhav Jindal
47ad9e4c6f Rmv:Removed GetVoteOnHash() fn from consensus/bor/api.go 2023-09-12 16:39:08 +05:30
Vaibhav Jindal
43d54c4456 Implemented the GetVoteOnHash under Bor namespace 2023-09-12 16:39:08 +05:30