mirror of
https://github.com/ZmnSCPxj/clboss.git
synced 2026-08-14 12:43:19 +02:00
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
30 lines
674 B
C++
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) */
|