Skip to content

Commit

Permalink
feat: read confirm proposal sponsors from checkpoints first
Browse files Browse the repository at this point in the history
  • Loading branch information
RainFallsSilent committed May 22, 2024
1 parent 8b3f76e commit f63fcee
Show file tree
Hide file tree
Showing 3 changed files with 288,174 additions and 14 deletions.
5 changes: 5 additions & 0 deletions common/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ func GetDefaultParams() *Configuration {
CandidatesCount: 72,
DPoSV2RewardAccumulateProgramHash: StakeRewardProgramHash,
NFTStartHeight: 1405000,
SponsorsFilePath: "sponsors",
OriginArbiters: []string{
"0248df6705a909432be041e0baa25b8f648741018f70d1911f2ed28778db4b8fe4",
"02771faf0f4d4235744b30972d5f2c470993920846c761e4d08889ecfdc061cddf",
Expand Down Expand Up @@ -380,6 +381,7 @@ func (p *Configuration) TestNet() *Configuration {
p.CrossChainMonitorInterval = 100
p.CRConfiguration.CRClaimPeriod = 10080
p.DPoSConfiguration.NFTStartHeight = 1098000
p.DPoSConfiguration.SponsorsFilePath = "sponsors"

p.HttpInfoPort = 21333
p.HttpRestPort = 21334
Expand Down Expand Up @@ -500,6 +502,7 @@ func (p *Configuration) RegNet() *Configuration {
p.CrossChainMonitorInterval = 100
p.CRConfiguration.CRClaimPeriod = 10080
p.DPoSConfiguration.NFTStartHeight = 968000
p.DPoSConfiguration.SponsorsFilePath = "sponsors"
p.HttpInfoPort = 22333
p.HttpRestPort = 22334
p.HttpWsPort = 22335
Expand Down Expand Up @@ -720,6 +723,8 @@ type DPoSConfiguration struct {
CRDPoSNodeHotFixHeight uint32 `screw:"--crdposnodehotfixheight" usage:"CRDPoSNodeHotFixHeight indicates the hot fix start height of CR DPoS node"`
// NFTStartHeight defines the height of NFT started.
NFTStartHeight uint32 `screw:"--nftstartheight" usage:"the start height of NFT transaction"`
// SponsorsFilePath defines the sponsors file path.
SponsorsFilePath string `screw:"--sponsorsfilepath" usage:"defines the sponsors file path"`
}

type CRConfiguration struct {
Expand Down

0 comments on commit f63fcee

Please sign in to comment.