Skip to content

Commit

Permalink
conf: update mainnet conf
Browse files Browse the repository at this point in the history
  • Loading branch information
bibibong committed Aug 21, 2018
1 parent a999128 commit 325381d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions consensus/dpos/dpos.go
Original file line number Diff line number Diff line change
Expand Up @@ -648,17 +648,6 @@ func (dpos *Dpos) mintBlock(now int64) error {

tail := dpos.chain.TailBlock()

if core.DynastyConf != nil {
core.InitDynastyFromConf(dpos.chain, BlockIntervalInMs/SecondInMs, DynastyIntervalInMs/SecondInMs)
if core.GenesisRealTimestamp > 0 && (tail.Timestamp()-core.GenesisRealTimestamp) >= core.InitialDynastyKeepTime {
logging.VLog().WithFields(logrus.Fields{
"tail": tail,
"miner": dpos.miner,
}).Debug("Stop minting for dynasty switch.")
return nil
}
}

deadlineInMs, err := dpos.checkDeadline(tail, nowInMs)
if err != nil {
logging.VLog().WithFields(logrus.Fields{
Expand Down
2 changes: 1 addition & 1 deletion mainnet/conf/dynasty.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ meta {

candidate [
{
serial: 3956
serial: 3957
dynasty: [
"n1MxH4KTYAVKU9cFR4mEpLCNEqnZrrwkYgD",
"n1UoRgbmVtCMqpXjVAwa46z4f38kLWzUxJM",
Expand Down

0 comments on commit 325381d

Please sign in to comment.