Commit graph

14009 commits

Author SHA1 Message Date
Manav Darji
4916d757eb
add max code init size check in txpool (#739) 2023-02-14 18:48:36 +05:30
Manav Darji
d9cc2187b2
Cherry-pick changes from develop (#738)
* Check if block is nil to prevent panic (#736)

* miner: use env for tracing instead of block object (#728)

---------

Co-authored-by: Dmitry <46797839+dkeysil@users.noreply.github.com>
2023-02-14 15:37:59 +05:30
Evgeny Danilenko
22fa4033e8
Event based pprof (#732)
* feature

* Save pprof to /tmp

---------

Co-authored-by: Jerry <jerrycgh@gmail.com>
2023-02-08 13:41:09 -08:00
Arpit Temani
67843e17ec
version change (#721) 2023-02-03 18:30:08 +05:30
Arpit Temani
9fa20a7da8
Arpit/add execution pool 2 (#719)
* initial

* linters

* linters

* remove timeout

* update pool

* change pool size function

* check nil

* check nil

* fix tests

* Use execution pool from server in all handlers

* simplify things

* test fix

* add support for cli, config

* add to cli and config

* merge base branch

* debug statements

* fix bug

* atomic pointer timeout

* add apis

* update workerpool

* fix issues

* change params

* fix issues

* fix ipc issue

* remove execution pool from IPC

* revert

* fix tests

* mutex

* refactor flag and value names

* ordering fix

* refactor flag and value names

* update default ep size to 40

* fix bor start issues

* revert file changes

* debug statements

* fix bug

* update workerpool

* atomic pointer timeout

* add apis

* Merge branch 'add-execution-pool' of github.com:maticnetwork/bor into arpit/add-execution-pool

* fix issues

* change params

* fix issues

* fix ipc issue

* remove execution pool from IPC

* revert

* merge base branch

* Merge branch 'add-execution-pool' of github.com:maticnetwork/bor into arpit/add-execution-pool

* mutex

* fix tests

* Merge branch 'arpit/add-execution-pool' of github.com:maticnetwork/bor into arpit/add-execution-pool

* Change default size of execution pool to 40

* refactor flag and value names

* fix merge conflicts

* ordering fix

* refactor flag and value names

* update default ep size to 40

* fix bor start issues

* revert file changes

* fix linters

* fix go.mod

* change sec to ms

* change default value for ep timeout

* fix node api calls

* comment setter for ep timeout

---------

Co-authored-by: Evgeny Danienko <6655321@bk.ru>
Co-authored-by: Jerry <jerrycgh@gmail.com>
Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
2023-02-03 18:22:57 +05:30
Manav Darji
fe1034e5e1
Revert "chg : trieTimeout from 60 to 10 mins (#692)" (#720)
This reverts commit 241843c7e7.
2023-02-03 15:42:38 +05:30
Arpit Temani
2be6ae43a1
Arpit/temp bor sync (#701)
* Increase grpc message size limit in pprof

* ReadBorReceipts improvements

* use internal function

* fix tests

* fetch geth upstread for ReadBorReceiptRLP

* Only query bor receipt when the query index is equal to # tx in block body

This change reduces the frequency of calling ReadBorReceipt and
ReadBorTransaction, which are CPU and db intensive.

* Revert "fetch geth upstread for ReadBorReceiptRLP"

This reverts commit 2e838a6b1313d26674f3a8df4b044e35dcbf35a0.

* Restore ReadBorReceiptRLP

* fix bor receipts

* remove unused

* fix lints

---------

Co-authored-by: Jerry <jerrycgh@gmail.com>
Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
Co-authored-by: Evgeny Danienko <6655321@bk.ru>
2023-02-03 15:42:12 +05:30
Manav Darji
a533ffb289
core, tests/bor: add more tests for state-sync validation (#710)
* core: add get state sync function for tests

* tests/bor: add validation for state sync events post consensus
2023-02-02 14:21:45 +05:30
Manav Darji
cbbc27c27a
fix nil state-sync issue, increase grpc limit (#695)
* Increase grpc message size limit in pprof

* consensus/bor/bor.go : stateSyncs init fixed [Fix #686]

* eth/filters: handle nil state-sync before notify

* eth/filters: update check

Co-authored-by: Jerry <jerrycgh@gmail.com>
Co-authored-by: Daniil <daniil.melnik@chainstack.com>
2023-01-25 17:13:16 +05:30
Pratik Patil
168ec6e8b0
changed version from 0.3.0 to 0.3.4-beta (#693) 2023-01-19 14:51:20 +05:30
SHIVAM SHARMA
38145fae21
internal/cli/server : fix : added triesInMemory in config (#691) 2023-01-19 14:41:38 +05:30
SHIVAM SHARMA
241843c7e7
chg : trieTimeout from 60 to 10 mins (#692)
* chg : trieTimeout from 60 to 10 mins

* chg : cache.timout to 10m from 1h in configs
2023-01-19 14:41:11 +05:30
Pratik Patil
e4dd2ee1ac
Added checks to RPC requests and introduced new flags to customise the parameters (#657)
* added a check to reject rpc requests with batch size > the one set using a newly added flag (rpcbatchlimit)

* added a check to reject rpc requests whose result size > the one set using a newly added flag (rpcreturndatalimit)

* updated the config files and docs
2023-01-19 14:40:24 +05:30
SHIVAM SHARMA
66c23d1eeb
Merge pull request #664 from maticnetwork/master
Merge 'master' into qa
2023-01-13 13:42:23 +05:30
Jerry
56d3058561
Merge pull request #655 from maticnetwork/manav/bump-control-files
packaging: bump bor version in control files
2023-01-09 10:41:17 -08:00
Manav Darji
dcdac12c44 Bump bor version in control files for v0.3.3 mainnet release 2023-01-09 23:00:49 +05:30
Manav Darji
b480db16e8
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
2023-01-07 11:58:03 +05:30
Arpit Temani
3eb234cd9a
Merge pull request #647 from cffls/qa
Merge qa to master for v0.3.2
2023-01-05 12:03:50 +05:30
Arpit Temani
db7eb29d88 change delhi hardfork block number 2023-01-05 10:41:27 +05:30
Jerry
c12e8f2aa8 Set version to stable 2023-01-04 12:20:15 -08:00
Jerry
59bdbef42a Mainnet Delhi fork 2023-01-04 12:20:15 -08:00
Daniel Jones
205930ef30
Merge pull request #639 from maticnetwork/djpolygon/3.2-beta_control
Bumping control file versions
2022-12-18 20:44:03 -06:00
Daniel Jones
b7b15456fb Bumping control file versions 2022-12-18 17:27:49 -06:00
Arpit Temani
7217f79767
Merge pull request #630 from maticnetwork/arpit/master-to-qa
RPC fix for coinbase address
2022-12-15 14:40:33 +05:30
Jerry
9b2407a58f Minor wording fix in prune state description 2022-12-14 21:49:11 -08:00
Jerry
b7ed9de45b Add state pruning to new CLI 2022-12-14 15:49:43 -08:00
Daniel Jones
5eebbfa307
Merge pull request #634 from maticnetwork/djpolygon/packagerDepUpdate
Djpolygon/packager dep update
2022-12-14 13:43:55 -06: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
Daniel Jones
2e45f3badc Updating packager as binutils changed version so that apt-get installs current versions 2022-12-14 11:06:17 -06:00
Jerry
5e145283c1
Merge pull request #632 from cffls/master
Add default values to CLI helper and docs
2022-12-14 07:50:22 -08:00
Jerry
ddf1a4db8c Add a summary of new CLI in docs 2022-12-13 23:46:43 -08:00
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
b1776698cf Merge branch 'arpit/master-to-qa' of github.com:maticnetwork/bor into arpit/master-to-qa 2022-12-14 01:00:09 +05:30
Arpit Temani
7364f940ba revert change for release for go1.19 2022-12-14 00:59:54 +05:30
Arpit Temani
a8eb21f80d
Merge pull request #631 from maticnetwork/manav/revert-pos-533
Revert "Adding correct miner address on API at the RPC level (POS-553)"
2022-12-14 00:49:19 +05:30
Arpit Temani
0b89983fa4 merge latest master to qa 2022-12-14 00:46:19 +05:30
Manav Darji
6d11117edc Revert "Merge pull request #435 from maticnetwork/POS-553"
This reverts commit 657d262def, reversing
changes made to 88dbfa1c13.
2022-12-14 00:44:01 +05:30
Arpit Temani
b7f37c7ce3
Merge pull request #603 from maticnetwork/arpit/v0.3.1-mumbai-candidate
v0.3.1 mumbai candidate
2022-12-14 00:43:26 +05:30
Jerry
d9e5e20e18
Merge pull request #620 from cffls/master
Bump version to stable
2022-12-06 12:06:04 -08:00
Jerry
43d894c44e Bump version to stable 2022-12-06 11:01:22 -08:00
Jerry
31da9729fb Revert "update Docker login for goreleaser-cross v1.19"
This reverts commit 4d19cf5342.
2022-12-05 23:40:35 -08:00
Jerry
9656c6cd0c
Merge pull request #618 from cffls/master
Merge commits from qa into master
2022-12-05 22:04:15 -08:00
Jerry
e68d2d1a87 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.
2022-12-05 20:14:27 -08:00
Arpit Temani
180d4444df remove unwanted code 2022-12-05 22:05:34 +05:30
Arpit Temani
adf8c5f1ab Merge branch 'arpit/v0.3.1-mumbai-candidate' of github.com:maticnetwork/bor into arpit/v0.3.1-mumbai-candidate 2022-12-05 19:42:15 +05:30
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
Arpit Temani
dd64fa160c
Merge pull request #614 from maticnetwork/ancient-datadir
Added ancient datadir flag and toml field
2022-12-05 12:24:54 +05:30
Pratik Patil
531d67a537 updated toml files with ancient field 2022-12-05 07:52:26 +05:30
Daniel Jones
5d6ffa7f03
Merge pull request #613 from maticnetwork/djpolygon/v0.3.1-mumbai-update
Adding of 0.3.0 package changes, control file updates, postinst chang…
2022-12-04 15:36:08 -06:00