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

Function harmony_header

plugins/bkpr/incomestmt.c:628–656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626}
627
628static void harmony_header(FILE *csvf)
629{
630 /* Type Declaration */
631 fprintf(csvf, "HarmonyCSV v0.2");
632 /* Add 9 extra blank cols
633 * (so ea row has same # cols, which is csv spec) */
634 fprintf(csvf, ",,,,,,,,,\n");
635
636 /* Header Declarations */
637 fprintf(csvf, "Provenance,cln-bookkeeper");
638 /* Only 8 extra blank cols */
639 fprintf(csvf, ",,,,,,,,\n");
640
641 /* Blank Line */
642 fprintf(csvf, ",,,,,,,,,\n");
643 /* Entries */
644 fprintf(csvf,
645 "Timestamp" /* ISO-8601 */
646 ",Venue"
647 ",Type"
648 ",Amount"
649 ",Asset" /* currency */
650 ",Transaction ID"
651 ",Order ID" /* payment hash, if any */
652 ",Account"
653 ",Network ID" /* outpoint */
654 ",Note" /* tag */
655 );
656}
657
658static char *income_event_harmony_type(const struct income_event *ev)
659{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected