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

Function accountseq

plugins/bkpr/test/run-recorder.c:254–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254static bool accountseq(struct account *a1, struct account *a2)
255{
256 CHECK(a1->db_id == a2->db_id);
257 CHECK(streq(a1->name, a2->name));
258 CHECK((a1->peer_id != NULL) == (a2->peer_id != NULL));
259 if (a1->peer_id)
260 CHECK(node_id_eq(a1->peer_id, a2->peer_id));
261 CHECK(a1->is_wallet == a2->is_wallet);
262 CHECK(a1->we_opened == a2->we_opened);
263 CHECK(a1->leased == a2->leased);
264 CHECK(a1->onchain_resolved_block == a2->onchain_resolved_block);
265
266 CHECK((a1->open_event_db_id != NULL) == (a2->open_event_db_id != NULL));
267 if (a1->open_event_db_id)
268 CHECK(*a1->open_event_db_id == *a2->open_event_db_id);
269
270 CHECK((a1->closed_event_db_id != NULL) == (a2->closed_event_db_id != NULL));
271 if (a1->closed_event_db_id)
272 CHECK(*a1->closed_event_db_id == *a2->closed_event_db_id);
273
274 CHECK(a1->closed_count == a2->closed_count);
275
276 return true;
277}
278
279static bool channel_events_eq(struct channel_event *e1, struct channel_event *e2)
280{

Callers 1

test_account_crudFunction · 0.85

Calls 1

node_id_eqFunction · 0.85

Tested by

no test coverage detected