Skip to content

Modifying miner.recommit flag and its adjustment function.#370

Merged
temaniarpit27 merged 6 commits into
masterfrom
shivam/minerRecommitFix
May 27, 2022
Merged

Modifying miner.recommit flag and its adjustment function.#370
temaniarpit27 merged 6 commits into
masterfrom
shivam/minerRecommitFix

Conversation

@0xsharma

@0xsharma 0xsharma commented Apr 6, 2022

Copy link
Copy Markdown
Member

https://linear.app/matic/issue/POS-292/modify-params

Changing recommit intervals and tweaking recommit calculation to avoid multiple block production at same block number.

The interval time can be set such that it should be much higher than the blocktime.

@codecov-commenter

codecov-commenter commented Apr 6, 2022

Copy link
Copy Markdown

Codecov Report

Merging #370 (1de7505) into master (d687d0d) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #370      +/-   ##
==========================================
+ Coverage   57.56%   57.59%   +0.03%     
==========================================
  Files         553      553              
  Lines       65882    65868      -14     
==========================================
+ Hits        37922    37934      +12     
+ Misses      24756    24741      -15     
+ Partials     3204     3193      -11     
Impacted Files Coverage Δ
miner/worker.go 65.07% <100.00%> (-5.64%) ⬇️
eth/downloader/statesync.go 54.75% <0.00%> (-5.33%) ⬇️
p2p/discover/table.go 82.48% <0.00%> (-1.83%) ⬇️
signer/core/signed_data.go 66.49% <0.00%> (-0.35%) ⬇️
p2p/server.go 65.52% <0.00%> (ø)
trie/proof.go 74.46% <0.00%> (ø)
eth/downloader/downloader.go 75.99% <0.00%> (+0.20%) ⬆️
core/tx_pool.go 71.40% <0.00%> (+0.40%) ⬆️
les/downloader/downloader.go 76.30% <0.00%> (+0.52%) ⬆️
... and 18 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d687d0d...1de7505. Read the comment docs.

Comment thread miner/worker.go
@0xsharma 0xsharma changed the title Changed min/max/current recommit values Modifying miner.recommit flag and its adjustment function. May 13, 2022
@temaniarpit27 temaniarpit27 marked this pull request as ready for review May 13, 2022 06:58
@temaniarpit27

Copy link
Copy Markdown
Contributor

@0xsharma please raise PRs for the corresponding change in v0.3.0, launch repo, turbo bor.

JekaMas
JekaMas previously approved these changes May 23, 2022
@0xsharma 0xsharma requested a review from JekaMas May 27, 2022 11:53
@temaniarpit27 temaniarpit27 merged commit 4fb3f5d into master May 27, 2022
@temaniarpit27 temaniarpit27 deleted the shivam/minerRecommitFix branch May 27, 2022 15:37
JekaMas added a commit that referenced this pull request Jun 15, 2022
* merge geth v1.10.15

* fix: Removed FastSync from cli server

* fix: TestHeadersRLPStorage

* Added t.skip(ETH2 in bor)

* fix: flow in create consensus engine

* bumped version

* Fix typo

* increase block time

* remove file

* bumped version

* merge gethv1.10.17

* bumped version

* fix failing tests

* Bump Go version to v1.18 (#368)

* Bump Go version to v1.18.1

* Build using netgo tag

This will create a static build using Go native networking stack.

Checked and it works stable for all archs and distros.

* Fix meta

* initial implementation for common ancestor approach

* extract whitelist interface

* fix types

* fix tests and format

* add unit tests for IsValidChain function

* more tests

* wip

* test ErrCheckpointMismatch

* minor fixes

* fix test

* dont panic

* fmt

* Limit state sync by gas

* Added logging for state-sync total gas usage

* Added number of event-records in log

* Minor Changes

* Minor Fix

* Adding individual gasUsed

* Minor Fix

* fix: return value for no remote block

* handle all errors

* modularise fake chain validator in downloader

* add more tests

* fix tests

* Modifying miner.recommit flag and its adjustment function. (#370)

* changed min/max/current recommit values

* Remove Hardcoded min/max

* Code Sanitization

* Skipping tests for constant recommit interval

* Adding default miner.recommit value

* Minor Change

* Increased default value of rpc.txfeecap to 5

* add debug rpc endpoints for checkpoint whitelist service

* minor fixes and enhancements

* avoid capping warnings for gas set by internal system transactions

* use typed mocks

* fix

* fix

* fix

* fix close

* fix

* Create stale.yml

* Fix bor consensus checkpoint bug

Co-authored-by: Arpit Temani <temaniarpit27@gmail.com>
Co-authored-by: Shivam Sharma <shivam691999@gmail.com>
Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
Co-authored-by: Sandeep Sreenath <sandeep.sreenath@gmail.com>
Co-authored-by: Victor Castell <victor@victorcastell.com>
Co-authored-by: Ferran <ferranbt@protonmail.com>
Co-authored-by: Krishna Upadhyaya <krishnau1604@gmail.com>
Co-authored-by: Karlo <karlonovak@gmail.com>
Co-authored-by: Sandeep Sreenath <ssandeep@users.noreply.github.com>
Co-authored-by: Jerry <jerrycgh@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants