mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-02 03:22:25 +02:00
config: default autopilot min confs to 1
This prevents spending unconfirmed funds by default. Users will have to explicitly set this to 0 in order to do so.
This commit is contained in:
@ -391,6 +391,7 @@ func loadConfig() (*config, error) {
|
|||||||
Allocation: 0.6,
|
Allocation: 0.6,
|
||||||
MinChannelSize: int64(minChanFundingSize),
|
MinChannelSize: int64(minChanFundingSize),
|
||||||
MaxChannelSize: int64(MaxFundingAmount),
|
MaxChannelSize: int64(MaxFundingAmount),
|
||||||
|
MinConfs: 1,
|
||||||
ConfTarget: autopilot.DefaultConfTarget,
|
ConfTarget: autopilot.DefaultConfTarget,
|
||||||
Heuristic: map[string]float64{
|
Heuristic: map[string]float64{
|
||||||
"preferential": 1.0,
|
"preferential": 1.0,
|
||||||
|
Reference in New Issue
Block a user