| 190 | } |
| 191 | |
| 192 | bool 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 | |
| 202 | bool IsPAKValidTx(const CTransaction& tx, const CPAKList& paklist, const uint256& parent_gen_hash, const CAsset& peg_asset) |
| 203 | { |
no test coverage detected