コード例 #1
0
 bool isstartledger(ledger::ref ledger) override
 {
     return ((ledger->getledgerseq() > 2) &&
             (ledger->gettotalcoins() < vrp_increase_max || ledger->gettotalcoinsvbc() < vbc_increase_max) &&
             (ledger->getclosetime().time_of_day().hours() == 1) &&
             ((ledger->getclosetimenc() - ledger->getdividendtimenc()) > 3600)
             );
 }
コード例 #2
0
 bool isapplyledger(ledger::ref ledger) override
 {
     return (ledger->isdividendstarted() &&
             ((ledger->getclosetimenc() - ledger->getdividendtimenc()) >= 120)
             );
 }