MCPcopy Create free account
hub / github.com/ElementsProject/elements / IsPAKValidOutput

Function IsPAKValidOutput

src/primitives/pak.cpp:192–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192bool IsPAKValidOutput(const CTxOut& txout, const CPAKList& paklist, const uint256& parent_gen_hash, const CAsset& peg_asset)
193{
194 if (txout.scriptPubKey.IsPegoutScript(parent_gen_hash) &&
195 txout.nAsset.IsExplicit() && txout.nAsset.GetAsset() == peg_asset &&
196 (!ScriptHasValidPAKProof(txout.scriptPubKey, parent_gen_hash, paklist))) {
197 return false;
198 }
199 return true;
200}
201
202bool IsPAKValidTx(const CTransaction& tx, const CPAKList& paklist, const uint256& parent_gen_hash, const CAsset& peg_asset)
203{

Callers 1

IsPAKValidTxFunction · 0.85

Calls 4

ScriptHasValidPAKProofFunction · 0.85
IsPegoutScriptMethod · 0.80
IsExplicitMethod · 0.80
GetAssetMethod · 0.80

Tested by

no test coverage detected