MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / CltvMultiSigScript

Function CltvMultiSigScript

src/chainparams.cpp:497–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495
496
497static CScript CltvMultiSigScript(const std::vector<std::string>& pubkeys, uint32_t lock_time) {
498 assert(pubkeys.size() == 6);
499 CScript redeem_script;
500 if (lock_time > 0) {
501 redeem_script << lock_time << OP_CHECKLOCKTIMEVERIFY << OP_DROP;
502 }
503 redeem_script << 4;
504 for (const std::string& pubkey : pubkeys) {
505 redeem_script << ToByteVector(ParseHex(pubkey));
506 }
507 redeem_script << 6 << OP_CHECKMULTISIG;
508 return redeem_script;
509}
510
511unsigned int CChainParams::EquihashSolutionWidth(int height) const
512{

Callers 1

Calls 3

ToByteVectorFunction · 0.85
ParseHexFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected