sqldb: channel policy tables

Define the SQL tables for representing channel policies. Namely:

- channel_policies
- channel_policy_extra_types
This commit is contained in:
Elle Mouton committed 2025-06-12 07:16:18 +02:00
1 parent 425b057c0f
commit 4e2750e179
4 files changed
+111

No files matched your search

+23
View File
@@ -55,6 +55,29 @@ type ChannelFeature struct {
FeatureBit int32
}
type ChannelPolicy struct {
ID int64
Version int16
ChannelID int64
NodeID int64
Timelock int32
FeePpm int64
BaseFeeMsat int64
MinHtlcMsat int64
MaxHtlcMsat sql.NullInt64
LastUpdate sql.NullInt64
Disabled sql.NullBool
InboundBaseFeeMsat sql.NullInt64
InboundFeeRateMilliMsat sql.NullInt64
Signature []byte
}
type ChannelPolicyExtraType struct {
ChannelPolicyID int64
Type int64
Value []byte
}
type Invoice struct {
ID int64
Hash []byte