clboss/Boss/Msg/ForwardFee.hpp
Ken Sedgwick 9aeb29c541 Add associated primary volume (forwarded and rebalanced) to EarningsTracker
Addresses ([#229])

This allows effective feerates (PPM) to be computed for earnings and
expenses.

This PR updates the schema automatically.  Downgrading to previous
will require manual DB migration (but is possible).  Downgrade
commands are in a comment in EarningsTracker.c
2024-09-25 13:23:04 -05:00

30 lines
674 B
C++

#ifndef BOSS_MSG_FORWARDFEE_HPP
#define BOSS_MSG_FORWARDFEE_HPP
#include"Ln/Amount.hpp"
#include"Ln/NodeId.hpp"
namespace Boss { namespace Msg {
/** struct Boss::Msg::ForwardFee
*
* @brief Informs everyone of a *successful* forwarding
* performed by us.
*/
struct ForwardFee {
/* The incoming peer. */
Ln::NodeId in_id;
/* The outgoing peer. */
Ln::NodeId out_id;
/* The fee. */
Ln::Amount fee;
/* The time, in seconds, it took from us receiving the incoming HTLC
* to us receiving the preimage from the outgoing HTLC. */
double resolution_time;
/* The amount forwarded. */
Ln::Amount amount;
};
}}
#endif /* !defined(BOSS_MSG_FORWARDFEE_HPP) */