type Hard_fork struct {
    Version     int64 // which version will trigger
    Height      int64 // at what height hard fork will come into effect, trigger block
    Window_size int64 // how many votes to count (x number of votes)
    Threshold   int64 //  between 0 and 99  // percent number of votes required to lock in  hardfork, 0 = mandatory
    Votes       int64 // number of votes in favor
    Voted       bool  // whether voting resulted in hardfork
}

版本、投票比例、硬分叉版本投票比例限制。

隐含意思:这个版本有多少人投票,投票比例是多少,比例到达多少即代表分叉成功。

// this is work in progress
// hard forking is integrated deep within the the blockchain as almost anything can be replaced in DERO without disruption
const default_voting_window_size = 6000 // this many votes will counted
const default_vote_percent = 62         // 62 percent votes means the hard fork is locked in

results matching ""

    No results matching ""