mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-28 13:52:55 +02:00
routing: convert testChan stuct to take an int64 for FeeRate
This commit is contained in:
@@ -77,16 +77,16 @@ type testNode struct {
|
|||||||
// testChan represents the JSON version of a payment channel. This struct
|
// testChan represents the JSON version of a payment channel. This struct
|
||||||
// matches the Json that's encoded under the "edges" key within the test graph.
|
// matches the Json that's encoded under the "edges" key within the test graph.
|
||||||
type testChan struct {
|
type testChan struct {
|
||||||
Node1 string `json:"node_1"`
|
Node1 string `json:"node_1"`
|
||||||
Node2 string `json:"node_2"`
|
Node2 string `json:"node_2"`
|
||||||
ChannelID uint64 `json:"channel_id"`
|
ChannelID uint64 `json:"channel_id"`
|
||||||
ChannelPoint string `json:"channel_point"`
|
ChannelPoint string `json:"channel_point"`
|
||||||
Flags uint16 `json:"flags"`
|
Flags uint16 `json:"flags"`
|
||||||
Expiry uint16 `json:"expiry"`
|
Expiry uint16 `json:"expiry"`
|
||||||
MinHTLC int64 `json:"min_htlc"`
|
MinHTLC int64 `json:"min_htlc"`
|
||||||
FeeBaseMsat int64 `json:"fee_base_msat"`
|
FeeBaseMsat int64 `json:"fee_base_msat"`
|
||||||
FeeRate float64 `json:"fee_rate"`
|
FeeRate int64 `json:"fee_rate"`
|
||||||
Capacity int64 `json:"capacity"`
|
Capacity int64 `json:"capacity"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// makeTestGraph creates a new instance of a channeldb.ChannelGraph for testing
|
// makeTestGraph creates a new instance of a channeldb.ChannelGraph for testing
|
||||||
|
Reference in New Issue
Block a user