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

Function bitcoin_tx_eq

wallet/test/run-wallet.c:1213–1223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1211}
1212
1213static bool bitcoin_tx_eq(const struct bitcoin_tx *tx1,
1214 const struct bitcoin_tx *tx2)
1215{
1216 u8 *lin1, *lin2;
1217 bool eq;
1218 lin1 = linearize_tx(NULL, tx1);
1219 lin2 = linearize_tx(lin1, tx2);
1220 eq = memeq(lin1, tal_count(lin1), lin2, tal_count(lin2));
1221 tal_free(lin1);
1222 return eq;
1223}
1224
1225static bool channel_inflightseq(struct channel_inflight *i1,
1226 struct channel_inflight *i2)

Callers 2

channel_inflightseqFunction · 0.85
channelseqFunction · 0.85

Calls 3

linearize_txFunction · 0.85
memeqFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected