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

1-second epoch finality. #4738

Closed
wants to merge 20 commits into from
Closed

1-second epoch finality. #4738

wants to merge 20 commits into from

Conversation

Frozen
Copy link
Contributor

@Frozen Frozen commented Aug 16, 2024

added 2 params.Config
	IsOneSecondEpoch *big.Int `json:"is-one-second-epoch,omitempty"`

	IsRotationEachBlockEpoch *big.Int `json:"is-rotation-each-block-epoch"`
applied with
LeaderRotationInternalValidatorsEpoch: big.NewInt(2),
LeaderRotationExternalValidatorsEpoch: big.NewInt(2),
IsOneSecondEpoch:         big.NewInt(2),
IsRotationEachBlockEpoch: big.NewInt(2),
commission calculation
	// TwoSecStakedBlocks is the flat-rate block reward after epoch 360.
	// 7 ONE per block
	TwoSecStakedBlocks = numeric.NewDecFromBigInt(new(big.Int).Mul(
		big.NewInt(7*denominations.Nano), big.NewInt(denominations.Nano),
	))
	// HIP30StakedBlocks is the reward received after HIP-30 goes into
	// effect. It is simply double the TwoSecStakedBlocks reward, since
	// the number of shards is being halved and we keep emission
	// constant.
	HIP30StakedBlocks = numeric.NewDecFromBigInt(new(big.Int).Mul(
		big.NewInt(14*denominations.Nano), big.NewInt(denominations.Nano),
	))

	// OneSecStakedBlock is half of HIP30
	OneSecStakedBlock = numeric.NewDecFromBigInt(new(big.Int).Mul(
		big.NewInt(7*denominations.Nano), big.NewInt(denominations.Nano),
	))

1-second epoch finality.
Contains 67% sign power commission calculation.

@Frozen Frozen self-assigned this Aug 16, 2024
@Frozen Frozen added the WIP Work in progress don't merge yet! label Aug 16, 2024
@Frozen Frozen force-pushed the feature/skip-await-of-100%-sigs branch from 1b3a9fc to 4cb0a58 Compare September 3, 2024 00:30
@Frozen Frozen changed the title Feature: skip waiting of 100% signatures 1-second epoch finality. Sep 28, 2024
@Frozen Frozen force-pushed the feature/skip-await-of-100%-sigs branch 2 times, most recently from 54a2c07 to 5af748c Compare October 3, 2024 21:42
@Frozen Frozen force-pushed the feature/skip-await-of-100%-sigs branch from dcb6d99 to fc6b1f8 Compare October 9, 2024 23:48
@mergify mergify bot mentioned this pull request Oct 13, 2024
@Frozen Frozen closed this Oct 13, 2024
@Frozen
Copy link
Contributor Author

Frozen commented Oct 13, 2024

see #4771

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WIP Work in progress don't merge yet!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant