Skip to content

Commit 2540633

Browse files
Merge pull request #54 from kumulynja/default-anchor-config
Default anchor config
2 parents 32a8818 + d46b9ea commit 2540633

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

lib/src/root.dart

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -853,20 +853,26 @@ class Builder {
853853
/// Creates a new builder instance with the default configuration.
854854
///
855855
factory Builder() {
856-
return Builder._(types.Config(
857-
storageDirPath: '',
858-
network: types.Network.bitcoin,
859-
listeningAddresses: [
860-
types.SocketAddress.hostname(addr: "0.0.0.0", port: 9735)
861-
],
862-
onchainWalletSyncIntervalSecs: BigInt.from(60),
863-
walletSyncIntervalSecs: BigInt.from(20),
864-
feeRateCacheUpdateIntervalSecs: BigInt.from(200),
865-
logLevel: types.LogLevel.debug,
866-
defaultCltvExpiryDelta: 144,
867-
trustedPeers0Conf: [],
868-
probingLiquidityLimitMultiplier: BigInt.from(3),
869-
));
856+
return Builder._(
857+
types.Config(
858+
storageDirPath: '',
859+
network: types.Network.bitcoin,
860+
listeningAddresses: [
861+
types.SocketAddress.hostname(addr: "0.0.0.0", port: 9735)
862+
],
863+
onchainWalletSyncIntervalSecs: BigInt.from(60),
864+
walletSyncIntervalSecs: BigInt.from(20),
865+
feeRateCacheUpdateIntervalSecs: BigInt.from(200),
866+
logLevel: types.LogLevel.debug,
867+
defaultCltvExpiryDelta: 144,
868+
trustedPeers0Conf: [],
869+
probingLiquidityLimitMultiplier: BigInt.from(3),
870+
anchorChannelsConfig: types.AnchorChannelsConfig(
871+
trustedPeersNoReserve: [],
872+
perChannelReserveSats: BigInt.from(25000),
873+
),
874+
),
875+
);
870876
}
871877

872878
/// Creates a new builder instance with default services configured for testnet.

0 commit comments

Comments
 (0)