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

Function simplicity_total_fee

src/simplicity/elements/elementsJets.c:511–516  ·  view source on GitHub ↗

total_fee : TWO^256 |- TWO^64 */

Source from the content-addressed store, hash-verified

509
510/* total_fee : TWO^256 |- TWO^64 */
511bool simplicity_total_fee(frameItem* dst, frameItem src, const txEnv* env) {
512 sha256_midstate assetid;
513 readHash(&assetid, &src);
514 simplicity_write64(dst, lookup_fee(&assetid, env->tx->feeOutputs, env->tx->numFees));
515 return true;
516}
517
518/* genesis_block_hash : ONE |- TWO^256 */
519bool simplicity_genesis_block_hash(frameItem* dst, frameItem src, const txEnv* env) {

Callers

nothing calls this directly

Calls 2

lookup_feeFunction · 0.85
readHashFunction · 0.70

Tested by

no test coverage detected