core-lightning/plugins/bkpr/account_entry.h
niftynei e7ed196f87 bkpr: separate the invoice_fees from the invoice paid
For income events, break out the amount paid in routing fees vs the
total amount of the *invoice* that is paid.

Also printout these fees, when available, on listaccountevents
2022-07-28 12:08:18 +09:30

18 lines
515 B
C

#ifndef LIGHTNING_PLUGINS_BKPR_ACCOUNT_ENTRY_H
#define LIGHTNING_PLUGINS_BKPR_ACCOUNT_ENTRY_H
#include "config.h"
#define NUM_ACCOUNT_ENTRY_TAGS (INVOICEFEE + 1)
enum account_entry_tag {
JOURNAL_ENTRY = 0,
PENALTY_ADJ = 1,
INVOICEFEE = 2,
};
/* Convert an enum into a string */
const char *account_entry_tag_str(enum account_entry_tag tag);
/* True if entry tag found, false otherwise */
bool account_entry_tag_find(char *str, enum account_entry_tag *tag);
#endif /* LIGHTNING_PLUGINS_BKPR_ACCOUNT_ENTRY_H */