Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: overrides the timeout_commit and timeout_propose in v3 #3882

Draft
wants to merge 73 commits into
base: main
Choose a base branch
from

Conversation

staheri14
Copy link
Contributor

Closes #3859 though is in progress!

@staheri14 staheri14 self-assigned this Sep 17, 2024
@@ -30,7 +30,7 @@ const (
// DefaultUpgradeHeightDelay is the number of blocks after a quorum has been
// reached that the chain should upgrade to the new version. Assuming a block
// interval of 12 seconds, this is 7 days.
DefaultUpgradeHeightDelay = int64(7 * 24 * 60 * 60 / 12) // 7 days * 24 hours * 60 minutes * 60 seconds / 12 seconds per block = 50,400 blocks.
DefaultUpgradeHeightDelay = 3 // int64( 7 * 24 * 60 * 60 / 12) // 7 days * 24 hours * 60 minutes * 60 seconds / 12 seconds per block = 50,400 blocks.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
DefaultUpgradeHeightDelay = 3 // int64( 7 * 24 * 60 * 60 / 12) // 7 days * 24 hours * 60 minutes * 60 seconds / 12 seconds per block = 50,400 blocks.
DefaultUpgradeHeightDelay = 3 // int64( 7 * 24 * 60 * 60 / 6) // 7 days * 24 hours * 60 minutes * 60 seconds / 6 seconds per block = 100,800 blocks.

@@ -274,8 +274,8 @@ func DefaultConsensusConfig() *tmcfg.Config {
cfg.Mempool.MaxTxsBytes = int64(upperBoundBytes) * cfg.Mempool.TTLNumBlocks
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should line 146 have this?

	// time. The expected block time is 6 seconds, therefore this value is 30

@jcstein
Copy link
Member

jcstein commented Oct 10, 2024

Should GoalBlockTime = time.Second * 6 on pkg/appconsts/consensus_consts.go?

Linking discussion from my PR which I plan to close: https://github.com/celestiaorg/celestia-app/pull/3953/files#r1794435786

@@ -4,7 +4,7 @@

# Stop script execution if an error is encountered
set -o errexit
# Stop script execution if an undefined variable is used
# Stop scyript execution if an undefined variable is used
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Stop scyript execution if an undefined variable is used
# Stop script execution if an undefined variable is used

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.

Override the timeout_commit and timeout_propose when switching to v3
2 participants