core-lightning/wallet/test/test_utils.c
Michael Schmoock 3fa539fc1b chore: increase min-capacity-sat to 10k
The old value of 1000 sat was too small to cover the dust reserves.
This lead to the situation when trying to open a channel with minimal
amount, the channels got refused because they were not able cover the
commitment fees.

For this reason the minimal capacity should be increased to i.e. 10k
satoshi, as the technical minimum that also accounts for fees and
reserves is somewhere around 6k sat.
2019-04-16 15:01:28 -07:00

27 lines
669 B
C

#include "test_utils.h"
/*
* Copy of lightnind/options.c testnet_config
* To reduce code duplication move testnet_config from options.c to options.h.
*/
const struct config test_config = {
.locktime_blocks = 6,
.locktime_max = 14 * 24 * 6,
.anchor_confirms = 1,
.commitment_fee_min_percent = 0,
.commitment_fee_max_percent = 0,
.commitment_fee_percent = 500,
.cltv_expiry_delta = 6,
.cltv_final = 10,
.commit_time_ms = 10,
.fee_base = 1,
.fee_per_satoshi = 10,
.broadcast_interval_msec = 60000,
.channel_update_interval = 1209600/2,
.ignore_fee_limits = true,
.rescan = 30,
.max_fee_multiplier = 10,
.use_dns = true,
.min_capacity_sat = 10000,
};