MCPcopy Create free account
hub / github.com/ElementsProject/lightning / psbt_contribs_changed

Function psbt_contribs_changed

common/psbt_open.c:511–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509}
510
511bool psbt_contribs_changed(struct wally_psbt *orig,
512 struct wally_psbt *new)
513{
514 struct psbt_changeset *cs;
515 bool ok;
516 cs = psbt_get_changeset(NULL, orig, new);
517
518 ok = tal_count(cs->added_ins) > 0 ||
519 tal_count(cs->rm_ins) > 0 ||
520 tal_count(cs->added_outs) > 0 ||
521 tal_count(cs->rm_outs) > 0;
522
523 tal_free(cs);
524 return ok;
525}

Callers 2

check_psbt_comparisonFunction · 0.85

Calls 2

psbt_get_changesetFunction · 0.85
tal_freeFunction · 0.85

Tested by 1

check_psbt_comparisonFunction · 0.68