File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ const (
1818 TESTNET_COINBASE_PERIOD = iota // 1 -- this is a passing activation and this ID may be reused once that height is passes and the references are removed
1919 //
2020 AUTHRORITY_SET_MAX_DELTA = iota
21+ MAX_FACTOM_HEIGHT = iota
2122 ACTIVATION_TYPE_COUNT = iota - 1 // Always Last
2223)
2324
@@ -55,6 +56,15 @@ func init() {
5556 "CUSTOM:fct_community_test" : 109387 ,
5657 },
5758 },
59+ {"FactomMaxHeight" , MAX_FACTOM_HEIGHT ,
60+ "The maximum Height of the Factom Blockchain prior to Accumulate Activation" ,
61+ math .MaxInt32 , // Don't activate by default
62+ map [string ]int { //
63+ "MAIN" : 374000 , // The Last Block of the Factom ERA
64+ "LOCAL" : 400000 , // Factom will continue processing into the next block, but
65+ "CUSTOM:fct_community_test" : 400000 , // stop at minute 2. That last block will not be included
66+ }, // in the History provided to the Accumulate ERA.
67+ },
5868 }
5969
6070 if ACTIVATION_TYPE_COUNT != len (activations ) {
Original file line number Diff line number Diff line change @@ -1446,6 +1446,16 @@ func (s *State) LeaderExecuteEOM(m interfaces.IMsg) {
14461446 return
14471447 }
14481448
1449+ // ======================================================================================================
1450+ // When the maximum Factom Height is reached, stop the Factom Protocol. ||
1451+ // This ends the Factom Era, and begins the Accumulate Era ||
1452+ if s .IsActive (activations .MAX_FACTOM_HEIGHT ) && s .GetCurrentMinute () > 1 { // ||
1453+ fmt .Printf ("The End of the Factom Era: Block %d\n " , s .GetEntryBlockDBHeightComplete ()) // ||
1454+ fmt .Printf ("The Beginning of the Accumulate Era\n " ) // ||
1455+ return // ||
1456+ } // ||
1457+ // ======================================================================================================
1458+
14491459 pl := s .ProcessLists .Get (s .LLeaderHeight )
14501460 vm := pl .VMs [s .LeaderVMIndex ]
14511461
You can’t perform that action at this time.
0 commit comments