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

Function QueueCheck

src/confidential_validation.cpp:81–90  ·  view source on GitHub ↗

Destroys the check in the case of no queue, or passes its ownership to the queue.

Source from the content-addressed store, hash-verified

79
80// Destroys the check in the case of no queue, or passes its ownership to the queue.
81ScriptError QueueCheck(std::vector<CCheck*>* queue, CCheck* check) {
82 if (queue != NULL) {
83 queue->push_back(check);
84 return SCRIPT_ERR_OK;
85 }
86 bool success = (*check)();
87 ScriptError err = check->GetScriptError();
88 delete check;
89 return success ? SCRIPT_ERR_OK : err;
90}
91
92// Helper function for VerifyAmount(), not exported
93static bool VerifyIssuanceAmount(secp256k1_pedersen_commitment& value_commit, secp256k1_generator& asset_gen,

Callers 3

VerifyIssuanceAmountFunction · 0.85
VerifyAmountsFunction · 0.85
CheckInputScriptsFunction · 0.85

Calls 2

GetScriptErrorMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected