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

Method GetDevfeeScript

src/chainparams.cpp:245–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243};
244
245CScript CChainParams::GetDevfeeScript(int nHeight) const {
246 CScript script;
247 CBitcoinAddress address(vDevfeeAddress.c_str());
248 CBitcoinAddress address2(vDevfeeAddress2.c_str());
249 assert(address.IsValid());
250 assert(address2.IsValid());
251
252 if (nHeight < nSwitchRX2Block) {
253 script = GetScriptForDestination(address.Get());
254 } else {
255 script = GetScriptForDestination(address2.Get());
256 }
257
258 return script;
259}
260
261static CMainParams mainParams;
262

Callers 4

CreateNewBlockMethod · 0.80
CreateCoinStakeMethod · 0.80
ContextualCheckBlockFunction · 0.80

Calls 3

GetScriptForDestinationFunction · 0.85
IsValidMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected