MCPcopy Create free account
hub / github.com/LUX-Core/lux / MasternodePaymentsEnabled

Function MasternodePaymentsEnabled

src/masternode.cpp:904–916  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

902}
903
904bool MasternodePaymentsEnabled() {
905 bool result = false;
906 if (Params().NetworkID() == CBaseChainParams::TESTNET || Params().NetworkID() == CBaseChainParams::REGTEST) {
907 if (GetTime() > START_MASTERNODE_PAYMENTS_TESTNET) {
908 result = true;
909 }
910 } else {
911 if (GetTime() > START_MASTERNODE_PAYMENTS) {
912 result = true;
913 }
914 }
915 return result;
916}
917
918bool SelectMasternodePayee(CScript& payeeScript) {
919 bool result = false;

Callers 2

getblocktemplateFunction · 0.85
SelectMasternodePayeeFunction · 0.85

Calls 3

GetTimeFunction · 0.85
NetworkIDMethod · 0.80
ParamsClass · 0.70

Tested by

no test coverage detected