mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
fix: a pr2444 introduced valgrind complaint
This will add the testnet config copyNpaste to test_utils.c, so that the test stups can set these. Alternatively, to reduce code duplication, we can move the testnet_config and mainnet_config from options.c to options.h.
This commit is contained in:
committed by
Christian Decker
parent
9a25b5dd87
commit
1853b399b0
25
wallet/test/test_utils.c
Normal file
25
wallet/test/test_utils.c
Normal file
@@ -0,0 +1,25 @@
|
||||
#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,
|
||||
};
|
||||
Reference in New Issue
Block a user