Skip to content

Commit 4201c97

Browse files
committed
tests: added outputSpendingFee to test fees
1 parent 7a8537a commit 4201c97

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

example/ldk/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ export const setupLdk = async (
134134
maxAllowedNonAnchorChannelRemoteFee: 10,
135135
onChainSweep: 10,
136136
minAllowedNonAnchorChannelRemoteFee: 10,
137+
outputSpendingFee: 10,
137138
}),
138139
getTransactionData,
139140
getTransactionPosition,

example/tests/eclair.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ describe('Eclair', function () {
112112
anchorChannelFee: 10,
113113
nonAnchorChannelFee: 20,
114114
channelCloseMinimum: 5,
115+
outputSpendingFee: 10,
115116
});
116117
},
117118
});

example/tests/unit.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ describe('Unit', function () {
7171
minAllowedAnchorChannelRemoteFee: 5,
7272
minAllowedNonAnchorChannelRemoteFee: 5,
7373
onChainSweep: 5,
74+
outputSpendingFee: 5,
7475
});
7576
},
7677
getTransactionData: async () => ({
@@ -214,6 +215,7 @@ describe('Unit', function () {
214215
minAllowedAnchorChannelRemoteFee: 5,
215216
minAllowedNonAnchorChannelRemoteFee: 5,
216217
onChainSweep: 5,
218+
outputSpendingFee: 5,
217219
});
218220
},
219221
getTransactionData: async () => ({

example/tests/utils/test-profile.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export default class TestProfile {
8282
anchorChannelFee: 2,
8383
nonAnchorChannelFee: 3,
8484
channelCloseMinimum: 1,
85+
outputSpendingFee: 5,
8586
}),
8687
getTransactionData: this.getTransactionData,
8788
getTransactionPosition: this.getTransactionPosition,

lib/src/lightning-manager.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2466,7 +2466,6 @@ class LightningManager {
24662466
EEventTypes.channel_manager_channel_closed,
24672467
(eventRes: TChannelManagerChannelClosed) => {
24682468
if (eventRes.channel_id === res.value) {
2469-
24702469
clearTimeout(timeout);
24712470
if (eventRes.peer_message) {
24722471
resolve(err(eventRes.peer_message));

0 commit comments

Comments
 (0)