relative cltv expiry can be negative

This commit is contained in:
Jesse de Wit
2023-12-04 21:51:55 +01:00
parent fefd998ca7
commit cf5fe6fde3
3 changed files with 7 additions and 5 deletions

View File

@@ -107,7 +107,7 @@ type Htlc struct {
Id uint64 `json:"id"`
AmountMsat uint64 `json:"amount_msat"`
CltvExpiry uint32 `json:"cltv_expiry"`
CltvExpiryRelative uint32 `json:"cltv_expiry_relative"`
CltvExpiryRelative int32 `json:"cltv_expiry_relative"`
PaymentHash string `json:"payment_hash"`
}