mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
protocol: increase HTLC precision to 1/1000 satoshi.
This gets truncated for on-chain transactions (thus, rounding may contribute to fees). This also means we currently have an upper bound of 0.04 BTC per HTLC; this can be increased later if required. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -233,7 +233,7 @@ struct _Update
|
||||
/*
|
||||
* Change in current payment to-me (implies reverse to-you).
|
||||
*/
|
||||
int64_t delta;
|
||||
int64_t delta_msat;
|
||||
};
|
||||
#define UPDATE__INIT \
|
||||
{ PROTOBUF_C_MESSAGE_INIT (&update__descriptor) \
|
||||
@@ -251,9 +251,9 @@ struct _UpdateAddHtlc
|
||||
*/
|
||||
Sha256Hash *revocation_hash;
|
||||
/*
|
||||
* Amount for htlc
|
||||
* Amount for htlc (millisatoshi)
|
||||
*/
|
||||
uint64_t amount;
|
||||
uint32_t amount_msat;
|
||||
/*
|
||||
* Hash for HTLC R value.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user