routing: update test edge policy fields to include max htlc + new flags
Since the MaxHTLC field was recently added to the ChannelEdgePolicy struct, and the Flags field was broken into ChannelFlags and MessageFlags, the test edge policies should be updated accordingly.
This commit is contained in:
parent
a2dafdef37
commit
348a66ed13
@ -89,9 +89,11 @@ type testChan struct {
|
|||||||
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"`
|
ChannelFlags uint8 `json:"channel_flags"`
|
||||||
|
MessageFlags uint8 `json:"message_flags"`
|
||||||
Expiry uint16 `json:"expiry"`
|
Expiry uint16 `json:"expiry"`
|
||||||
MinHTLC int64 `json:"min_htlc"`
|
MinHTLC int64 `json:"min_htlc"`
|
||||||
|
MaxHTLC int64 `json:"max_htlc"`
|
||||||
FeeBaseMsat int64 `json:"fee_base_msat"`
|
FeeBaseMsat int64 `json:"fee_base_msat"`
|
||||||
FeeRate int64 `json:"fee_rate"`
|
FeeRate int64 `json:"fee_rate"`
|
||||||
Capacity int64 `json:"capacity"`
|
Capacity int64 `json:"capacity"`
|
||||||
@ -271,12 +273,13 @@ func parseTestGraph(path string) (*testGraphInstance, error) {
|
|||||||
|
|
||||||
edgePolicy := &channeldb.ChannelEdgePolicy{
|
edgePolicy := &channeldb.ChannelEdgePolicy{
|
||||||
SigBytes: testSig.Serialize(),
|
SigBytes: testSig.Serialize(),
|
||||||
MessageFlags: lnwire.ChanUpdateMsgFlags(edge.Flags >> 8),
|
MessageFlags: lnwire.ChanUpdateMsgFlags(edge.MessageFlags),
|
||||||
ChannelFlags: lnwire.ChanUpdateChanFlags(edge.Flags),
|
ChannelFlags: lnwire.ChanUpdateChanFlags(edge.ChannelFlags),
|
||||||
ChannelID: edge.ChannelID,
|
ChannelID: edge.ChannelID,
|
||||||
LastUpdate: testTime,
|
LastUpdate: testTime,
|
||||||
TimeLockDelta: edge.Expiry,
|
TimeLockDelta: edge.Expiry,
|
||||||
MinHTLC: lnwire.MilliSatoshi(edge.MinHTLC),
|
MinHTLC: lnwire.MilliSatoshi(edge.MinHTLC),
|
||||||
|
MaxHTLC: lnwire.MilliSatoshi(edge.MaxHTLC),
|
||||||
FeeBaseMSat: lnwire.MilliSatoshi(edge.FeeBaseMsat),
|
FeeBaseMSat: lnwire.MilliSatoshi(edge.FeeBaseMsat),
|
||||||
FeeProportionalMillionths: lnwire.MilliSatoshi(edge.FeeRate),
|
FeeProportionalMillionths: lnwire.MilliSatoshi(edge.FeeRate),
|
||||||
}
|
}
|
||||||
@ -295,6 +298,7 @@ func parseTestGraph(path string) (*testGraphInstance, error) {
|
|||||||
type testChannelPolicy struct {
|
type testChannelPolicy struct {
|
||||||
Expiry uint16
|
Expiry uint16
|
||||||
MinHTLC lnwire.MilliSatoshi
|
MinHTLC lnwire.MilliSatoshi
|
||||||
|
MaxHTLC lnwire.MilliSatoshi
|
||||||
FeeBaseMsat lnwire.MilliSatoshi
|
FeeBaseMsat lnwire.MilliSatoshi
|
||||||
FeeRate lnwire.MilliSatoshi
|
FeeRate lnwire.MilliSatoshi
|
||||||
}
|
}
|
||||||
@ -304,12 +308,13 @@ type testChannelEnd struct {
|
|||||||
testChannelPolicy
|
testChannelPolicy
|
||||||
}
|
}
|
||||||
|
|
||||||
func defaultTestChannelEnd(alias string) *testChannelEnd {
|
func defaultTestChannelEnd(alias string, capacity btcutil.Amount) *testChannelEnd {
|
||||||
return &testChannelEnd{
|
return &testChannelEnd{
|
||||||
Alias: alias,
|
Alias: alias,
|
||||||
testChannelPolicy: testChannelPolicy{
|
testChannelPolicy: testChannelPolicy{
|
||||||
Expiry: 144,
|
Expiry: 144,
|
||||||
MinHTLC: lnwire.MilliSatoshi(1000),
|
MinHTLC: lnwire.MilliSatoshi(1000),
|
||||||
|
MaxHTLC: lnwire.NewMSatFromSatoshis(capacity),
|
||||||
FeeBaseMsat: lnwire.MilliSatoshi(1000),
|
FeeBaseMsat: lnwire.MilliSatoshi(1000),
|
||||||
FeeRate: lnwire.MilliSatoshi(1),
|
FeeRate: lnwire.MilliSatoshi(1),
|
||||||
},
|
},
|
||||||
@ -486,14 +491,19 @@ func createTestGraphFromChannels(testChannels []*testChannel) (*testGraphInstanc
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var msgFlags lnwire.ChanUpdateMsgFlags
|
||||||
|
if testChannel.Node1.MaxHTLC != 0 {
|
||||||
|
msgFlags = 1
|
||||||
|
}
|
||||||
edgePolicy := &channeldb.ChannelEdgePolicy{
|
edgePolicy := &channeldb.ChannelEdgePolicy{
|
||||||
SigBytes: testSig.Serialize(),
|
SigBytes: testSig.Serialize(),
|
||||||
MessageFlags: 0,
|
MessageFlags: msgFlags,
|
||||||
ChannelFlags: 0,
|
ChannelFlags: 0,
|
||||||
ChannelID: channelID,
|
ChannelID: channelID,
|
||||||
LastUpdate: testTime,
|
LastUpdate: testTime,
|
||||||
TimeLockDelta: testChannel.Node1.Expiry,
|
TimeLockDelta: testChannel.Node1.Expiry,
|
||||||
MinHTLC: testChannel.Node1.MinHTLC,
|
MinHTLC: testChannel.Node1.MinHTLC,
|
||||||
|
MaxHTLC: testChannel.Node1.MaxHTLC,
|
||||||
FeeBaseMSat: testChannel.Node1.FeeBaseMsat,
|
FeeBaseMSat: testChannel.Node1.FeeBaseMsat,
|
||||||
FeeProportionalMillionths: testChannel.Node1.FeeRate,
|
FeeProportionalMillionths: testChannel.Node1.FeeRate,
|
||||||
}
|
}
|
||||||
@ -501,14 +511,19 @@ func createTestGraphFromChannels(testChannels []*testChannel) (*testGraphInstanc
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
msgFlags = 0
|
||||||
|
if testChannel.Node2.MaxHTLC != 0 {
|
||||||
|
msgFlags = 1
|
||||||
|
}
|
||||||
edgePolicy = &channeldb.ChannelEdgePolicy{
|
edgePolicy = &channeldb.ChannelEdgePolicy{
|
||||||
SigBytes: testSig.Serialize(),
|
SigBytes: testSig.Serialize(),
|
||||||
MessageFlags: 0,
|
MessageFlags: msgFlags,
|
||||||
ChannelFlags: lnwire.ChanUpdateDirection,
|
ChannelFlags: lnwire.ChanUpdateDirection,
|
||||||
ChannelID: channelID,
|
ChannelID: channelID,
|
||||||
LastUpdate: testTime,
|
LastUpdate: testTime,
|
||||||
TimeLockDelta: testChannel.Node2.Expiry,
|
TimeLockDelta: testChannel.Node2.Expiry,
|
||||||
MinHTLC: testChannel.Node2.MinHTLC,
|
MinHTLC: testChannel.Node2.MinHTLC,
|
||||||
|
MaxHTLC: testChannel.Node2.MaxHTLC,
|
||||||
FeeBaseMSat: testChannel.Node2.FeeBaseMsat,
|
FeeBaseMSat: testChannel.Node2.FeeBaseMsat,
|
||||||
FeeProportionalMillionths: testChannel.Node2.FeeRate,
|
FeeProportionalMillionths: testChannel.Node2.FeeRate,
|
||||||
}
|
}
|
||||||
@ -543,26 +558,31 @@ func TestFindLowestFeePath(t *testing.T) {
|
|||||||
Expiry: 144,
|
Expiry: 144,
|
||||||
FeeRate: 400,
|
FeeRate: 400,
|
||||||
MinHTLC: 1,
|
MinHTLC: 1,
|
||||||
|
MaxHTLC: 100000000,
|
||||||
}),
|
}),
|
||||||
symmetricTestChannel("first", "a", 100000, &testChannelPolicy{
|
symmetricTestChannel("first", "a", 100000, &testChannelPolicy{
|
||||||
Expiry: 144,
|
Expiry: 144,
|
||||||
FeeRate: 400,
|
FeeRate: 400,
|
||||||
MinHTLC: 1,
|
MinHTLC: 1,
|
||||||
|
MaxHTLC: 100000000,
|
||||||
}),
|
}),
|
||||||
symmetricTestChannel("a", "target", 100000, &testChannelPolicy{
|
symmetricTestChannel("a", "target", 100000, &testChannelPolicy{
|
||||||
Expiry: 144,
|
Expiry: 144,
|
||||||
FeeRate: 400,
|
FeeRate: 400,
|
||||||
MinHTLC: 1,
|
MinHTLC: 1,
|
||||||
|
MaxHTLC: 100000000,
|
||||||
}),
|
}),
|
||||||
symmetricTestChannel("first", "b", 100000, &testChannelPolicy{
|
symmetricTestChannel("first", "b", 100000, &testChannelPolicy{
|
||||||
Expiry: 144,
|
Expiry: 144,
|
||||||
FeeRate: 100,
|
FeeRate: 100,
|
||||||
MinHTLC: 1,
|
MinHTLC: 1,
|
||||||
|
MaxHTLC: 100000000,
|
||||||
}),
|
}),
|
||||||
symmetricTestChannel("b", "target", 100000, &testChannelPolicy{
|
symmetricTestChannel("b", "target", 100000, &testChannelPolicy{
|
||||||
Expiry: 144,
|
Expiry: 144,
|
||||||
FeeRate: 600,
|
FeeRate: 600,
|
||||||
MinHTLC: 1,
|
MinHTLC: 1,
|
||||||
|
MaxHTLC: 100000000,
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ import (
|
|||||||
"github.com/btcsuite/btcd/btcec"
|
"github.com/btcsuite/btcd/btcec"
|
||||||
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
||||||
"github.com/btcsuite/btcd/wire"
|
"github.com/btcsuite/btcd/wire"
|
||||||
|
"github.com/btcsuite/btcutil"
|
||||||
"github.com/davecgh/go-spew/spew"
|
"github.com/davecgh/go-spew/spew"
|
||||||
|
|
||||||
sphinx "github.com/lightningnetwork/lightning-onion"
|
sphinx "github.com/lightningnetwork/lightning-onion"
|
||||||
@ -361,16 +362,19 @@ func TestChannelUpdateValidation(t *testing.T) {
|
|||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
// Setup a three node network.
|
// Setup a three node network.
|
||||||
|
chanCapSat := btcutil.Amount(100000)
|
||||||
testChannels := []*testChannel{
|
testChannels := []*testChannel{
|
||||||
symmetricTestChannel("a", "b", 100000, &testChannelPolicy{
|
symmetricTestChannel("a", "b", chanCapSat, &testChannelPolicy{
|
||||||
Expiry: 144,
|
Expiry: 144,
|
||||||
FeeRate: 400,
|
FeeRate: 400,
|
||||||
MinHTLC: 1,
|
MinHTLC: 1,
|
||||||
|
MaxHTLC: lnwire.NewMSatFromSatoshis(chanCapSat),
|
||||||
}, 1),
|
}, 1),
|
||||||
symmetricTestChannel("b", "c", 100000, &testChannelPolicy{
|
symmetricTestChannel("b", "c", chanCapSat, &testChannelPolicy{
|
||||||
Expiry: 144,
|
Expiry: 144,
|
||||||
FeeRate: 400,
|
FeeRate: 400,
|
||||||
MinHTLC: 1,
|
MinHTLC: 1,
|
||||||
|
MaxHTLC: lnwire.NewMSatFromSatoshis(chanCapSat),
|
||||||
}, 2),
|
}, 2),
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -542,20 +546,21 @@ func TestSendPaymentErrorRepeatedFeeInsufficient(t *testing.T) {
|
|||||||
// son goku. We'll obtain this as we'll need to to generate the
|
// son goku. We'll obtain this as we'll need to to generate the
|
||||||
// FeeInsufficient error that we'll send back.
|
// FeeInsufficient error that we'll send back.
|
||||||
chanID := uint64(12345)
|
chanID := uint64(12345)
|
||||||
_, _, edgeUpateToFail, err := ctx.graph.FetchChannelEdgesByID(chanID)
|
_, _, edgeUpdateToFail, err := ctx.graph.FetchChannelEdgesByID(chanID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to fetch chan id: %v", err)
|
t.Fatalf("unable to fetch chan id: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
errChanUpdate := lnwire.ChannelUpdate{
|
errChanUpdate := lnwire.ChannelUpdate{
|
||||||
ShortChannelID: lnwire.NewShortChanIDFromInt(chanID),
|
ShortChannelID: lnwire.NewShortChanIDFromInt(chanID),
|
||||||
Timestamp: uint32(edgeUpateToFail.LastUpdate.Unix()),
|
Timestamp: uint32(edgeUpdateToFail.LastUpdate.Unix()),
|
||||||
MessageFlags: edgeUpateToFail.MessageFlags,
|
MessageFlags: edgeUpdateToFail.MessageFlags,
|
||||||
ChannelFlags: edgeUpateToFail.ChannelFlags,
|
ChannelFlags: edgeUpdateToFail.ChannelFlags,
|
||||||
TimeLockDelta: edgeUpateToFail.TimeLockDelta,
|
TimeLockDelta: edgeUpdateToFail.TimeLockDelta,
|
||||||
HtlcMinimumMsat: edgeUpateToFail.MinHTLC,
|
HtlcMinimumMsat: edgeUpdateToFail.MinHTLC,
|
||||||
BaseFee: uint32(edgeUpateToFail.FeeBaseMSat),
|
HtlcMaximumMsat: edgeUpdateToFail.MaxHTLC,
|
||||||
FeeRate: uint32(edgeUpateToFail.FeeProportionalMillionths),
|
BaseFee: uint32(edgeUpdateToFail.FeeBaseMSat),
|
||||||
|
FeeRate: uint32(edgeUpdateToFail.FeeProportionalMillionths),
|
||||||
}
|
}
|
||||||
|
|
||||||
// The error will be returned by Son Goku.
|
// The error will be returned by Son Goku.
|
||||||
@ -649,20 +654,21 @@ func TestSendPaymentErrorNonFinalTimeLockErrors(t *testing.T) {
|
|||||||
// block height is.
|
// block height is.
|
||||||
chanID := uint64(12345)
|
chanID := uint64(12345)
|
||||||
roasbeefSongoku := lnwire.NewShortChanIDFromInt(chanID)
|
roasbeefSongoku := lnwire.NewShortChanIDFromInt(chanID)
|
||||||
_, _, edgeUpateToFail, err := ctx.graph.FetchChannelEdgesByID(chanID)
|
_, _, edgeUpdateToFail, err := ctx.graph.FetchChannelEdgesByID(chanID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to fetch chan id: %v", err)
|
t.Fatalf("unable to fetch chan id: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
errChanUpdate := lnwire.ChannelUpdate{
|
errChanUpdate := lnwire.ChannelUpdate{
|
||||||
ShortChannelID: lnwire.NewShortChanIDFromInt(chanID),
|
ShortChannelID: lnwire.NewShortChanIDFromInt(chanID),
|
||||||
Timestamp: uint32(edgeUpateToFail.LastUpdate.Unix()),
|
Timestamp: uint32(edgeUpdateToFail.LastUpdate.Unix()),
|
||||||
MessageFlags: edgeUpateToFail.MessageFlags,
|
MessageFlags: edgeUpdateToFail.MessageFlags,
|
||||||
ChannelFlags: edgeUpateToFail.ChannelFlags,
|
ChannelFlags: edgeUpdateToFail.ChannelFlags,
|
||||||
TimeLockDelta: edgeUpateToFail.TimeLockDelta,
|
TimeLockDelta: edgeUpdateToFail.TimeLockDelta,
|
||||||
HtlcMinimumMsat: edgeUpateToFail.MinHTLC,
|
HtlcMinimumMsat: edgeUpdateToFail.MinHTLC,
|
||||||
BaseFee: uint32(edgeUpateToFail.FeeBaseMSat),
|
HtlcMaximumMsat: edgeUpdateToFail.MaxHTLC,
|
||||||
FeeRate: uint32(edgeUpateToFail.FeeProportionalMillionths),
|
BaseFee: uint32(edgeUpdateToFail.FeeBaseMSat),
|
||||||
|
FeeRate: uint32(edgeUpdateToFail.FeeProportionalMillionths),
|
||||||
}
|
}
|
||||||
|
|
||||||
// The error will be returned by Son Goku.
|
// The error will be returned by Son Goku.
|
||||||
|
64
routing/testdata/basic_graph.json
vendored
64
routing/testdata/basic_graph.json
vendored
@ -74,9 +74,11 @@
|
|||||||
"node_2": "036264734b40c9e91d3d990a8cdfbbe23b5b0b7ad3cd0e080a25dcd05d39eeb7eb",
|
"node_2": "036264734b40c9e91d3d990a8cdfbbe23b5b0b7ad3cd0e080a25dcd05d39eeb7eb",
|
||||||
"channel_id": 15433,
|
"channel_id": 15433,
|
||||||
"channel_point": "33bd5d49a50e284221561b91e781f1fca0d60341c9f9dd785b5e379a6d88af3d:0",
|
"channel_point": "33bd5d49a50e284221561b91e781f1fca0d60341c9f9dd785b5e379a6d88af3d:0",
|
||||||
"flags": 1,
|
"channel_flags": 1,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1000,
|
"min_htlc": 1000,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 200,
|
"fee_base_msat": 200,
|
||||||
"fee_rate": 0,
|
"fee_rate": 0,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -86,9 +88,11 @@
|
|||||||
"node_2": "036264734b40c9e91d3d990a8cdfbbe23b5b0b7ad3cd0e080a25dcd05d39eeb7eb",
|
"node_2": "036264734b40c9e91d3d990a8cdfbbe23b5b0b7ad3cd0e080a25dcd05d39eeb7eb",
|
||||||
"channel_id": 15433,
|
"channel_id": 15433,
|
||||||
"channel_point": "33bd5d49a50e284221561b91e781f1fca0d60341c9f9dd785b5e379a6d88af3d:0",
|
"channel_point": "33bd5d49a50e284221561b91e781f1fca0d60341c9f9dd785b5e379a6d88af3d:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1000,
|
"min_htlc": 1000,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 200,
|
"fee_base_msat": 200,
|
||||||
"fee_rate": 0,
|
"fee_rate": 0,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -98,9 +102,11 @@
|
|||||||
"node_2": "0367cec75158a4129177bfb8b269cb586efe93d751b43800d456485e81c2620ca6",
|
"node_2": "0367cec75158a4129177bfb8b269cb586efe93d751b43800d456485e81c2620ca6",
|
||||||
"channel_id": 999991,
|
"channel_id": 999991,
|
||||||
"channel_point": "48a0e8b856fef01d9feda7d25a4fac6dae48749e28ba356b92d712ab7f5bd2d0:0",
|
"channel_point": "48a0e8b856fef01d9feda7d25a4fac6dae48749e28ba356b92d712ab7f5bd2d0:0",
|
||||||
"flags": 1,
|
"channel_flags": 1,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1000,
|
"min_htlc": 1000,
|
||||||
|
"max_htlc": 120000000,
|
||||||
"fee_base_msat": 10000,
|
"fee_base_msat": 10000,
|
||||||
"fee_rate": 100000,
|
"fee_rate": 100000,
|
||||||
"capacity": 120000
|
"capacity": 120000
|
||||||
@ -110,9 +116,11 @@
|
|||||||
"node_2": "0367cec75158a4129177bfb8b269cb586efe93d751b43800d456485e81c2620ca6",
|
"node_2": "0367cec75158a4129177bfb8b269cb586efe93d751b43800d456485e81c2620ca6",
|
||||||
"channel_id": 999991,
|
"channel_id": 999991,
|
||||||
"channel_point": "48a0e8b856fef01d9feda7d25a4fac6dae48749e28ba356b92d712ab7f5bd2d0:0",
|
"channel_point": "48a0e8b856fef01d9feda7d25a4fac6dae48749e28ba356b92d712ab7f5bd2d0:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1000,
|
"min_htlc": 1000,
|
||||||
|
"max_htlc": 120000000,
|
||||||
"fee_base_msat": 10000,
|
"fee_base_msat": 10000,
|
||||||
"fee_rate": 100000,
|
"fee_rate": 100000,
|
||||||
"capacity": 120000
|
"capacity": 120000
|
||||||
@ -122,9 +130,11 @@
|
|||||||
"node_2": "036264734b40c9e91d3d990a8cdfbbe23b5b0b7ad3cd0e080a25dcd05d39eeb7eb",
|
"node_2": "036264734b40c9e91d3d990a8cdfbbe23b5b0b7ad3cd0e080a25dcd05d39eeb7eb",
|
||||||
"channel_id": 99999,
|
"channel_id": 99999,
|
||||||
"channel_point": "05ffda8890d0a4fffe0ddca0b1932ba0415b1d5868a99515384a4e7883d96b88:0",
|
"channel_point": "05ffda8890d0a4fffe0ddca0b1932ba0415b1d5868a99515384a4e7883d96b88:0",
|
||||||
"flags": 1,
|
"channel_flags": 1,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1000,
|
"min_htlc": 1000,
|
||||||
|
"max_htlc": 120000000,
|
||||||
"fee_base_msat": 10000,
|
"fee_base_msat": 10000,
|
||||||
"fee_rate": 100000,
|
"fee_rate": 100000,
|
||||||
"capacity": 120000
|
"capacity": 120000
|
||||||
@ -134,9 +144,11 @@
|
|||||||
"node_2": "036264734b40c9e91d3d990a8cdfbbe23b5b0b7ad3cd0e080a25dcd05d39eeb7eb",
|
"node_2": "036264734b40c9e91d3d990a8cdfbbe23b5b0b7ad3cd0e080a25dcd05d39eeb7eb",
|
||||||
"channel_id": 99999,
|
"channel_id": 99999,
|
||||||
"channel_point": "05ffda8890d0a4fffe0ddca0b1932ba0415b1d5868a99515384a4e7883d96b88:0",
|
"channel_point": "05ffda8890d0a4fffe0ddca0b1932ba0415b1d5868a99515384a4e7883d96b88:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1000,
|
"min_htlc": 1000,
|
||||||
|
"max_htlc": 120000000,
|
||||||
"fee_base_msat": 10000,
|
"fee_base_msat": 10000,
|
||||||
"fee_rate": 100000,
|
"fee_rate": 100000,
|
||||||
"capacity": 120000
|
"capacity": 120000
|
||||||
@ -146,9 +158,11 @@
|
|||||||
"node_2": "0367cec75158a4129177bfb8b269cb586efe93d751b43800d456485e81c2620ca6",
|
"node_2": "0367cec75158a4129177bfb8b269cb586efe93d751b43800d456485e81c2620ca6",
|
||||||
"channel_id": 12345,
|
"channel_id": 12345,
|
||||||
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 1,
|
"channel_flags": 1,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1000,
|
"min_htlc": 1000,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 1000,
|
"fee_rate": 1000,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -158,9 +172,11 @@
|
|||||||
"node_2": "0367cec75158a4129177bfb8b269cb586efe93d751b43800d456485e81c2620ca6",
|
"node_2": "0367cec75158a4129177bfb8b269cb586efe93d751b43800d456485e81c2620ca6",
|
||||||
"channel_id": 12345,
|
"channel_id": 12345,
|
||||||
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 1000,
|
"fee_rate": 1000,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -170,9 +186,11 @@
|
|||||||
"node_2": "036264734b40c9e91d3d990a8cdfbbe23b5b0b7ad3cd0e080a25dcd05d39eeb7eb",
|
"node_2": "036264734b40c9e91d3d990a8cdfbbe23b5b0b7ad3cd0e080a25dcd05d39eeb7eb",
|
||||||
"channel_id": 3495345,
|
"channel_id": 3495345,
|
||||||
"channel_point": "9f155756b33a0a6827713965babbd561b55f9520444ac5db0cf7cb2eb0deb5bc:0",
|
"channel_point": "9f155756b33a0a6827713965babbd561b55f9520444ac5db0cf7cb2eb0deb5bc:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 110000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 1000,
|
"fee_rate": 1000,
|
||||||
"capacity": 110000
|
"capacity": 110000
|
||||||
@ -182,9 +200,11 @@
|
|||||||
"node_2": "036264734b40c9e91d3d990a8cdfbbe23b5b0b7ad3cd0e080a25dcd05d39eeb7eb",
|
"node_2": "036264734b40c9e91d3d990a8cdfbbe23b5b0b7ad3cd0e080a25dcd05d39eeb7eb",
|
||||||
"channel_id": 3495345,
|
"channel_id": 3495345,
|
||||||
"channel_point": "9f155756b33a0a6827713965babbd561b55f9520444ac5db0cf7cb2eb0deb5bc:0",
|
"channel_point": "9f155756b33a0a6827713965babbd561b55f9520444ac5db0cf7cb2eb0deb5bc:0",
|
||||||
"flags": 1,
|
"channel_flags": 1,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 110000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 1000,
|
"fee_rate": 1000,
|
||||||
"capacity": 110000
|
"capacity": 110000
|
||||||
@ -194,9 +214,11 @@
|
|||||||
"node_2": "03c19f0027ffbb0ae0e14a4d958788793f9d74e107462473ec0c3891e4feb12e99",
|
"node_2": "03c19f0027ffbb0ae0e14a4d958788793f9d74e107462473ec0c3891e4feb12e99",
|
||||||
"channel_id": 2340213491,
|
"channel_id": 2340213491,
|
||||||
"channel_point": "72cd6e8422c407fb6d098690f1130b7ded7ec2f7f5e1d30bd9d521f015363793:0",
|
"channel_point": "72cd6e8422c407fb6d098690f1130b7ded7ec2f7f5e1d30bd9d521f015363793:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 10000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 1000,
|
"fee_rate": 1000,
|
||||||
"capacity": 10000
|
"capacity": 10000
|
||||||
@ -206,9 +228,11 @@
|
|||||||
"node_2": "03c19f0027ffbb0ae0e14a4d958788793f9d74e107462473ec0c3891e4feb12e99",
|
"node_2": "03c19f0027ffbb0ae0e14a4d958788793f9d74e107462473ec0c3891e4feb12e99",
|
||||||
"channel_id": 2340213491,
|
"channel_id": 2340213491,
|
||||||
"channel_point": "72cd6e8422c407fb6d098690f1130b7ded7ec2f7f5e1d30bd9d521f015363793:0",
|
"channel_point": "72cd6e8422c407fb6d098690f1130b7ded7ec2f7f5e1d30bd9d521f015363793:0",
|
||||||
"flags": 1,
|
"channel_flags": 1,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 10000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 1000,
|
"fee_rate": 1000,
|
||||||
"capacity": 10000
|
"capacity": 10000
|
||||||
@ -218,9 +242,11 @@
|
|||||||
"node_2": "0367cec75158a4129177bfb8b269cb586efe93d751b43800d456485e81c2620ca6",
|
"node_2": "0367cec75158a4129177bfb8b269cb586efe93d751b43800d456485e81c2620ca6",
|
||||||
"channel_id": 689530843,
|
"channel_id": 689530843,
|
||||||
"channel_point": "25376aa6cb81913ad30416bd22d4083241bd6d68e811d0284d3c3a17795c458a:0",
|
"channel_point": "25376aa6cb81913ad30416bd22d4083241bd6d68e811d0284d3c3a17795c458a:0",
|
||||||
"flags": 1,
|
"channel_flags": 1,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 10,
|
"expiry": 10,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 1000,
|
"fee_rate": 1000,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -230,9 +256,11 @@
|
|||||||
"node_2": "0367cec75158a4129177bfb8b269cb586efe93d751b43800d456485e81c2620ca6",
|
"node_2": "0367cec75158a4129177bfb8b269cb586efe93d751b43800d456485e81c2620ca6",
|
||||||
"channel_id": 689530843,
|
"channel_id": 689530843,
|
||||||
"channel_point": "25376aa6cb81913ad30416bd22d4083241bd6d68e811d0284d3c3a17795c458a:0",
|
"channel_point": "25376aa6cb81913ad30416bd22d4083241bd6d68e811d0284d3c3a17795c458a:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 1000,
|
"fee_rate": 1000,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -242,9 +270,11 @@
|
|||||||
"node_2": "03c19f0027ffbb0ae0e14a4d958788793f9d74e107462473ec0c3891e4feb12e99",
|
"node_2": "03c19f0027ffbb0ae0e14a4d958788793f9d74e107462473ec0c3891e4feb12e99",
|
||||||
"channel_id": 523452362,
|
"channel_id": 523452362,
|
||||||
"channel_point": "704a5675c91b1c674309a6475fc51072c2913d6117ee6103c9f1b86956bcbe02:0",
|
"channel_point": "704a5675c91b1c674309a6475fc51072c2913d6117ee6103c9f1b86956bcbe02:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 50000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 1000,
|
"fee_rate": 1000,
|
||||||
"capacity": 50000
|
"capacity": 50000
|
||||||
@ -254,9 +284,11 @@
|
|||||||
"node_2": "03c19f0027ffbb0ae0e14a4d958788793f9d74e107462473ec0c3891e4feb12e99",
|
"node_2": "03c19f0027ffbb0ae0e14a4d958788793f9d74e107462473ec0c3891e4feb12e99",
|
||||||
"channel_id": 523452362,
|
"channel_id": 523452362,
|
||||||
"channel_point": "704a5675c91b1c674309a6475fc51072c2913d6117ee6103c9f1b86956bcbe02:0",
|
"channel_point": "704a5675c91b1c674309a6475fc51072c2913d6117ee6103c9f1b86956bcbe02:0",
|
||||||
"flags": 1,
|
"channel_flags": 1,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 50000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 1000,
|
"fee_rate": 1000,
|
||||||
"capacity": 50000
|
"capacity": 50000
|
||||||
|
84
routing/testdata/excessive_hops.json
vendored
84
routing/testdata/excessive_hops.json
vendored
@ -117,9 +117,11 @@
|
|||||||
"node_2": "022096b2b0ac083e708074a5ab57288bc821b6bef7b964185b307e073772c3748f",
|
"node_2": "022096b2b0ac083e708074a5ab57288bc821b6bef7b964185b307e073772c3748f",
|
||||||
"channel_id": 12345,
|
"channel_id": 12345,
|
||||||
"channel_point": "99dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "99dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 0.001,
|
"fee_rate": 0.001,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -129,9 +131,11 @@
|
|||||||
"node_2": "022a190ce901ab2b6f349483f18b28a1d72c64a7bccb8057291f25784c0899840f",
|
"node_2": "022a190ce901ab2b6f349483f18b28a1d72c64a7bccb8057291f25784c0899840f",
|
||||||
"channel_id": 12346,
|
"channel_id": 12346,
|
||||||
"channel_point": "79dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "79dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 0.001,
|
"fee_rate": 0.001,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -141,9 +145,11 @@
|
|||||||
"node_2": "022d855d09971dd047b7ecf929b23c6f147b568d4668af67fb2226eb8c15c4660d",
|
"node_2": "022d855d09971dd047b7ecf929b23c6f147b568d4668af67fb2226eb8c15c4660d",
|
||||||
"channel_id": 12347,
|
"channel_id": 12347,
|
||||||
"channel_point": "69dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "69dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 0.001,
|
"fee_rate": 0.001,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -153,9 +159,11 @@
|
|||||||
"node_2": "024ca436834b0d38d9dc7ee4d95aa21db321c45598dc5921a4a52304a8e0dd2952",
|
"node_2": "024ca436834b0d38d9dc7ee4d95aa21db321c45598dc5921a4a52304a8e0dd2952",
|
||||||
"channel_id": 12348,
|
"channel_id": 12348,
|
||||||
"channel_point": "59dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "59dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 0.001,
|
"fee_rate": 0.001,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -165,9 +173,11 @@
|
|||||||
"node_2": "025234a0c44cbf1b20c18e2c397107ad731376831e1c43ddb360b41dbb98c10266",
|
"node_2": "025234a0c44cbf1b20c18e2c397107ad731376831e1c43ddb360b41dbb98c10266",
|
||||||
"channel_id": 12349,
|
"channel_id": 12349,
|
||||||
"channel_point": "49dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "49dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 0.001,
|
"fee_rate": 0.001,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -177,9 +187,11 @@
|
|||||||
"node_2": "0253e9d03030f2ff08d3a7f1d824ad6d8c0dae422f324e72d5bb313e3f2a2d45a8",
|
"node_2": "0253e9d03030f2ff08d3a7f1d824ad6d8c0dae422f324e72d5bb313e3f2a2d45a8",
|
||||||
"channel_id": 12340,
|
"channel_id": 12340,
|
||||||
"channel_point": "39dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "39dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 0.001,
|
"fee_rate": 0.001,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -189,9 +201,11 @@
|
|||||||
"node_2": "0263d4f2baca258ff3bd5bce86c2754e95daaea27f268ae1a048c1253ff20de56e",
|
"node_2": "0263d4f2baca258ff3bd5bce86c2754e95daaea27f268ae1a048c1253ff20de56e",
|
||||||
"channel_id": 12344,
|
"channel_id": 12344,
|
||||||
"channel_point": "29dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "29dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 0.001,
|
"fee_rate": 0.001,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -201,9 +215,11 @@
|
|||||||
"node_2": "02650db8e44302f75e265e9427264bc0d7e2337831d6b9ceb7c58ed1e725d4576a",
|
"node_2": "02650db8e44302f75e265e9427264bc0d7e2337831d6b9ceb7c58ed1e725d4576a",
|
||||||
"channel_id": 12343,
|
"channel_id": 12343,
|
||||||
"channel_point": "19dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "19dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 0.001,
|
"fee_rate": 0.001,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -213,9 +229,11 @@
|
|||||||
"node_2": "02727bfd298aa055a6419404931dfc1ccb4f0eb7c9660a7df346b93d0025df3ba1",
|
"node_2": "02727bfd298aa055a6419404931dfc1ccb4f0eb7c9660a7df346b93d0025df3ba1",
|
||||||
"channel_id": 12342,
|
"channel_id": 12342,
|
||||||
"channel_point": "88dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "88dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 0.001,
|
"fee_rate": 0.001,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -225,9 +243,11 @@
|
|||||||
"node_2": "0280c83b3eded413dcec12f7952410e2738f079bd9cbc9a7c462e32ed4d74bd5b7",
|
"node_2": "0280c83b3eded413dcec12f7952410e2738f079bd9cbc9a7c462e32ed4d74bd5b7",
|
||||||
"channel_id": 12341,
|
"channel_id": 12341,
|
||||||
"channel_point": "87dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "87dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 0.001,
|
"fee_rate": 0.001,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -237,9 +257,11 @@
|
|||||||
"node_2": "0290bf454f4b95baf9227801301b331e35d477c6b6e7f36a599983ae58747b3828",
|
"node_2": "0290bf454f4b95baf9227801301b331e35d477c6b6e7f36a599983ae58747b3828",
|
||||||
"channel_id": 12355,
|
"channel_id": 12355,
|
||||||
"channel_point": "86dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "86dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 0.001,
|
"fee_rate": 0.001,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -249,9 +271,11 @@
|
|||||||
"node_2": "0297c8de635d17e3dd5775edfa2797be0874c53b0026f69009787cecd2fa577de8",
|
"node_2": "0297c8de635d17e3dd5775edfa2797be0874c53b0026f69009787cecd2fa577de8",
|
||||||
"channel_id": 12365,
|
"channel_id": 12365,
|
||||||
"channel_point": "85dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "85dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 0.001,
|
"fee_rate": 0.001,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -261,9 +285,11 @@
|
|||||||
"node_2": "02a27227113c71eab0c8609ac0cdc7e76791fc3163c16e643cb4658d1080c7e336",
|
"node_2": "02a27227113c71eab0c8609ac0cdc7e76791fc3163c16e643cb4658d1080c7e336",
|
||||||
"channel_id": 12375,
|
"channel_id": 12375,
|
||||||
"channel_point": "84dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "84dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 0.001,
|
"fee_rate": 0.001,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -273,9 +299,11 @@
|
|||||||
"node_2": "02f5f6bb6373fc60528118003f803557b916fbecd90c3a0c5df4c86c6a6e962fd1",
|
"node_2": "02f5f6bb6373fc60528118003f803557b916fbecd90c3a0c5df4c86c6a6e962fd1",
|
||||||
"channel_id": 12385,
|
"channel_id": 12385,
|
||||||
"channel_point": "83dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "83dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 0.001,
|
"fee_rate": 0.001,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -285,9 +313,11 @@
|
|||||||
"node_2": "02fd7a5f04d550cf0ba8af6053a20e0080d956f41b1221357a35fab3a363e5f78e",
|
"node_2": "02fd7a5f04d550cf0ba8af6053a20e0080d956f41b1221357a35fab3a363e5f78e",
|
||||||
"channel_id": 12395,
|
"channel_id": 12395,
|
||||||
"channel_point": "82dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "82dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 0.001,
|
"fee_rate": 0.001,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -297,9 +327,11 @@
|
|||||||
"node_2": "030da942ed7cfc7d3096811b3264e15115778e692eaacb2b7a76fb27a58cbb5359",
|
"node_2": "030da942ed7cfc7d3096811b3264e15115778e692eaacb2b7a76fb27a58cbb5359",
|
||||||
"channel_id": 12305,
|
"channel_id": 12305,
|
||||||
"channel_point": "81dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "81dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 0.001,
|
"fee_rate": 0.001,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -309,9 +341,11 @@
|
|||||||
"node_2": "0319d6b038e26ac89802e856d7e78f293e9d109c414614f98e3fa5c626f20934be",
|
"node_2": "0319d6b038e26ac89802e856d7e78f293e9d109c414614f98e3fa5c626f20934be",
|
||||||
"channel_id": 12335,
|
"channel_id": 12335,
|
||||||
"channel_point": "80dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "80dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 0.001,
|
"fee_rate": 0.001,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -321,9 +355,11 @@
|
|||||||
"node_2": "03384439e78e87d168fecabe8d88218dfd5983c5e14fd8fa6dc89caeb3cc0fb171",
|
"node_2": "03384439e78e87d168fecabe8d88218dfd5983c5e14fd8fa6dc89caeb3cc0fb171",
|
||||||
"channel_id": 12325,
|
"channel_id": 12325,
|
||||||
"channel_point": "89ec56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "89ec56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 0.001,
|
"fee_rate": 0.001,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -333,9 +369,11 @@
|
|||||||
"node_2": "0362002b8fbc1a799c839c8bcea43fce38a147467a00bc450414bbeab5c7a19efe",
|
"node_2": "0362002b8fbc1a799c839c8bcea43fce38a147467a00bc450414bbeab5c7a19efe",
|
||||||
"channel_id": 12315,
|
"channel_id": 12315,
|
||||||
"channel_point": "89fc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "89fc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 0.001,
|
"fee_rate": 0.001,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -345,9 +383,11 @@
|
|||||||
"node_2": "0369bca64993fce966745d32c09b882f668958d9bd7aabb60ba35ef1884013be1d",
|
"node_2": "0369bca64993fce966745d32c09b882f668958d9bd7aabb60ba35ef1884013be1d",
|
||||||
"channel_id": 12445,
|
"channel_id": 12445,
|
||||||
"channel_point": "89cc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "89cc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 0.001,
|
"fee_rate": 0.001,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -357,9 +397,11 @@
|
|||||||
"node_2": "0367cec75158a4129177bfb8b269cb586efe93d751b43800d456485e81c2620ca6",
|
"node_2": "0367cec75158a4129177bfb8b269cb586efe93d751b43800d456485e81c2620ca6",
|
||||||
"channel_id": 12545,
|
"channel_id": 12545,
|
||||||
"channel_point": "89bc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "89bc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 1,
|
"expiry": 1,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 10,
|
"fee_base_msat": 10,
|
||||||
"fee_rate": 0.001,
|
"fee_rate": 0.001,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
|
32
routing/testdata/spec_example.json
vendored
32
routing/testdata/spec_example.json
vendored
@ -29,9 +29,11 @@
|
|||||||
"node_2": "0367cec75158a4129177bfb8b269cb586efe93d751b43800d456485e81c2620ca6",
|
"node_2": "0367cec75158a4129177bfb8b269cb586efe93d751b43800d456485e81c2620ca6",
|
||||||
"channel_id": 12345,
|
"channel_id": 12345,
|
||||||
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 1,
|
"channel_flags": 1,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 10,
|
"expiry": 10,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 100,
|
"fee_base_msat": 100,
|
||||||
"fee_rate": 1000,
|
"fee_rate": 1000,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -42,9 +44,11 @@
|
|||||||
"node_2": "0367cec75158a4129177bfb8b269cb586efe93d751b43800d456485e81c2620ca6",
|
"node_2": "0367cec75158a4129177bfb8b269cb586efe93d751b43800d456485e81c2620ca6",
|
||||||
"channel_id": 12345,
|
"channel_id": 12345,
|
||||||
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 20,
|
"expiry": 20,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 200,
|
"fee_base_msat": 200,
|
||||||
"fee_rate": 2000,
|
"fee_rate": 2000,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -55,9 +59,11 @@
|
|||||||
"node_2": "0367cec75158a4129177bfb8b269cb586efe93d751b43800d456485e81c2620ca6",
|
"node_2": "0367cec75158a4129177bfb8b269cb586efe93d751b43800d456485e81c2620ca6",
|
||||||
"channel_id": 12345839,
|
"channel_id": 12345839,
|
||||||
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 1,
|
"channel_flags": 1,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 10,
|
"expiry": 10,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 100,
|
"fee_base_msat": 100,
|
||||||
"fee_rate": 1000,
|
"fee_rate": 1000,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -68,9 +74,11 @@
|
|||||||
"node_2": "0367cec75158a4129177bfb8b269cb586efe93d751b43800d456485e81c2620ca6",
|
"node_2": "0367cec75158a4129177bfb8b269cb586efe93d751b43800d456485e81c2620ca6",
|
||||||
"channel_id": 12345839,
|
"channel_id": 12345839,
|
||||||
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 40,
|
"expiry": 40,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 400,
|
"fee_base_msat": 400,
|
||||||
"fee_rate": 4000,
|
"fee_rate": 4000,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -81,9 +89,11 @@
|
|||||||
"node_2": "03c19f0027ffbb0ae0e14a4d958788793f9d74e107462473ec0c3891e4feb12e99",
|
"node_2": "03c19f0027ffbb0ae0e14a4d958788793f9d74e107462473ec0c3891e4feb12e99",
|
||||||
"channel_id": 1234583,
|
"channel_id": 1234583,
|
||||||
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 40,
|
"expiry": 40,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 400,
|
"fee_base_msat": 400,
|
||||||
"fee_rate": 4000,
|
"fee_rate": 4000,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -94,9 +104,11 @@
|
|||||||
"node_2": "03c19f0027ffbb0ae0e14a4d958788793f9d74e107462473ec0c3891e4feb12e99",
|
"node_2": "03c19f0027ffbb0ae0e14a4d958788793f9d74e107462473ec0c3891e4feb12e99",
|
||||||
"channel_id": 1234583,
|
"channel_id": 1234583,
|
||||||
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 1,
|
"channel_flags": 1,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 30,
|
"expiry": 30,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 300,
|
"fee_base_msat": 300,
|
||||||
"fee_rate": 3000,
|
"fee_rate": 3000,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -107,9 +119,11 @@
|
|||||||
"node_2": "03c19f0027ffbb0ae0e14a4d958788793f9d74e107462473ec0c3891e4feb12e99",
|
"node_2": "03c19f0027ffbb0ae0e14a4d958788793f9d74e107462473ec0c3891e4feb12e99",
|
||||||
"channel_id": 1234589,
|
"channel_id": 1234589,
|
||||||
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 1,
|
"channel_flags": 1,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 30,
|
"expiry": 30,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 300,
|
"fee_base_msat": 300,
|
||||||
"fee_rate": 3000,
|
"fee_rate": 3000,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
@ -120,9 +134,11 @@
|
|||||||
"node_2": "03c19f0027ffbb0ae0e14a4d958788793f9d74e107462473ec0c3891e4feb12e99",
|
"node_2": "03c19f0027ffbb0ae0e14a4d958788793f9d74e107462473ec0c3891e4feb12e99",
|
||||||
"channel_id": 1234589,
|
"channel_id": 1234589,
|
||||||
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
|
||||||
"flags": 0,
|
"channel_flags": 0,
|
||||||
|
"message_flags": 1,
|
||||||
"expiry": 20,
|
"expiry": 20,
|
||||||
"min_htlc": 1,
|
"min_htlc": 1,
|
||||||
|
"max_htlc": 100000000,
|
||||||
"fee_base_msat": 200,
|
"fee_base_msat": 200,
|
||||||
"fee_rate": 2000,
|
"fee_rate": 2000,
|
||||||
"capacity": 100000
|
"capacity": 100000
|
||||||
|
Loading…
Reference in New Issue
Block a user