mirror of
https://github.com/lightninglabs/pool.git
synced 2026-08-15 12:50:29 +02:00
cmd/pool: make min_chan_amt mandatory in auto mode
To avoid running into an error during automatic bid order submission when offering a sidecar channel, we need to make the --min_chan_amt flag of the order mandatory.
This commit is contained in:
parent
262eb198c5
commit
856e09e80d
1 changed files with 8 additions and 0 deletions
|
|
@ -128,6 +128,14 @@ func sidecarOffer(ctx *cli.Context) error {
|
|||
}
|
||||
|
||||
} else {
|
||||
// We must make sure that the min chan amount is set to the full
|
||||
// order amount, otherwise we'll get an error during the auto
|
||||
// bid submission.
|
||||
if ctx.Uint64("amt") != ctx.Uint64("min_chan_amt") {
|
||||
return fmt.Errorf("must set --min_chan_amt to same " +
|
||||
"value as --amt")
|
||||
}
|
||||
|
||||
// Otherwise, will parse out the full bid as normal.
|
||||
bid, _, err = parseBaseBid(ctx)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue