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

Function accountseq

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

Source from the content-addressed store, hash-verified

576}
577
578static bool accountseq(struct account *a1, struct account *a2)
579{
580 CHECK(streq(a1->name, a2->name));
581 CHECK((a1->peer_id != NULL) == (a2->peer_id != NULL));
582 if (a1->peer_id)
583 CHECK(node_id_eq(a1->peer_id, a2->peer_id));
584 CHECK(a1->is_wallet == a2->is_wallet);
585 CHECK(a1->we_opened == a2->we_opened);
586 CHECK(a1->leased == a2->leased);
587 CHECK(a1->onchain_resolved_block == a2->onchain_resolved_block);
588
589 CHECK((a1->open_event_db_id != NULL) == (a2->open_event_db_id != NULL));
590 if (a1->open_event_db_id)
591 CHECK(*a1->open_event_db_id == *a2->open_event_db_id);
592
593 CHECK((a1->closed_event_db_id != NULL) == (a2->closed_event_db_id != NULL));
594 if (a1->closed_event_db_id)
595 CHECK(*a1->closed_event_db_id == *a2->closed_event_db_id);
596
597 CHECK(a1->closed_count == a2->closed_count);
598
599 return true;
600}
601
602static bool channel_events_eq(struct channel_event *e1, struct channel_event *e2)
603{

Callers 1

test_account_crudFunction · 0.85

Calls 1

node_id_eqFunction · 0.85

Tested by

no test coverage detected