Unify parameters, add config sample

pull/1/head
rkfg 2 years ago
parent b543a33096
commit 69855695c8

@ -0,0 +1,29 @@
{
"macaroon_dir": "/home/user/.lnd/data/chain/bitcoin",
"macaroon_filename": "admin.macaroon",
"network": "mainnet",
"tlscert": "/home/user/.lnd/tls.cert",
"perc": 20,
"econ_ratio": 0.5,
"amount": 100000,
"probe_steps": 5,
"pfrom": 10,
"pto": 30,
"exclude_channels_in": [
821913529170526209,
821280210377179136
],
"exclude_channels_out": [
821264817346314240,
818108119373578240
],
"exclude_channels": [
802741344926629888
],
"exclude_nodes": [
"0363749dbdb99321177082935bf7c36978fc46c725c5c452d48d721ab31e7682c2",
"026165850492521f4ac8abd9bd8088123446d126f648ca35e60f88177dc149ceb2"
],
"from": 824787652482170883,
"to": 822784342311501826
}

@ -25,15 +25,15 @@ var params struct {
Config string `short:"f" long:"config" description:"config file path"`
Connect string `short:"c" long:"connect" description:"connect to lnd using host:port" json:"connect"`
TLSCert string `short:"t" long:"tlscert" description:"path to tls.cert to connect" required:"false" json:"tlscert"`
MacaroonDir string `long:"macaroon.dir" description:"path to the macaroon directory" required:"false" json:"macaroon.dir"`
MacaroonFilename string `long:"macaroon.filename" description:"macaroon filename" json:"macaroon.filename"`
MacaroonDir string `long:"macaroon-dir" description:"path to the macaroon directory" required:"false" json:"macaroon_dir"`
MacaroonFilename string `long:"macaroon-filename" description:"macaroon filename" json:"macaroon_filename"`
Network string `short:"n" long:"network" description:"bitcoin network to use" json:"network"`
FromPerc int64 `long:"pfrom" description:"channels with less than this inbound liquidity percentage will be considered as source channels" json:"pfrom"`
ToPerc int64 `long:"pto" description:"channels with less than this outbound liquidity percentage will be considered as target channels" json:"pto"`
Perc int64 `short:"p" long:"perc" description:"use this value as both pfrom and pto from above" json:"perc"`
Amount int64 `short:"a" long:"amount" description:"amount to rebalance" json:"amount"`
EconRatio float64 `long:"econ-ratio" description:"economical ratio for fee limit calculation as a multiple of target channel fee (for example, 0.5 means you want to pay at max half the fee you might earn for routing out of the target channel)" json:"econ_ratio"`
ProbeSteps int `short:"b" long:"probe" description:"if the payment fails at the last hop try to probe lower amount using this many steps" json:"probe_steps"`
ProbeSteps int `short:"b" long:"probe-steps" description:"if the payment fails at the last hop try to probe lower amount using this many steps" json:"probe_steps"`
ExcludeChannelsIn []uint64 `short:"i" long:"exclude-channel-in" description:"don't use this channel as incoming (can be specified multiple times)" json:"exclude_channels_in"`
ExcludeChannelsOut []uint64 `short:"o" long:"exclude-channel-out" description:"don't use this channel as outgoing (can be specified multiple times)" json:"exclude_channels_out"`
ExcludeChannels []uint64 `short:"e" long:"exclude-channel" description:"don't use this channel at all (can be specified multiple times)" json:"exclude_channels"`

Loading…
Cancel
Save