Use a better RoutingFeeBase and RoutingFeeRate

pull/107/head
Nicholas Shelby 5 years ago
parent c4ee036f9b
commit 2bd0f2a0e6

@ -44,6 +44,10 @@ var loopOutCommand = cli.Command{
"should be swept within",
Value: uint64(loop.DefaultSweepConfTarget),
},
cli.Uint64Flag{
Name: "max_swap_routing_fee",
Usage: "max off-chain swap routing fee",
},
},
Action: loopOut,
}
@ -104,6 +108,11 @@ func loopOut(ctx *cli.Context) error {
unchargeChannel = ctx.Uint64("channel")
}
// var maxSwapRoutingFee uint64
// if ctx.IsSet("max_swap_routing_fee") {
// maxSwapRoutingFee = ctx.Uint64("max_swap_routing_fee")
// }
resp, err := client.LoopOut(context.Background(), &looprpc.LoopOutRequest{
Amt: int64(amt),
Dest: destAddr,

@ -23,9 +23,9 @@ var (
// Define route independent max routing fees. We have currently no way
// to get a reliable estimate of the routing fees. Best we can do is
// the minimum routing fees, which is not very indicative.
maxRoutingFeeBase = btcutil.Amount(10)
maxRoutingFeeBase = btcutil.Amount(2)
maxRoutingFeeRate = int64(0)
maxRoutingFeeRate = int64(4)
)
func printRespJSON(resp proto.Message) {

Loading…
Cancel
Save