Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: restart node after restore test in example app #271

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion example/Dev.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
// @ts-ignore
paymentSubscription = ldk.onEvent(
EEventTypes.channel_manager_payment_claimed,
(res: TChannelManagerClaim) => alert(`Received ${res.amount_sat} sats`),

Check warning on line 106 in example/Dev.tsx

View workflow job for this annotation

GitHub Actions / Run lint check

Unexpected alert
);
}

Expand Down Expand Up @@ -134,7 +134,7 @@
onChannelSubscription = ldk.onEvent(
EEventTypes.new_channel,
(res: TChannelUpdate) =>
alert(

Check warning on line 137 in example/Dev.tsx

View workflow job for this annotation

GitHub Actions / Run lint check

Unexpected alert
`Channel received from ${res.counterparty_node_id} Channel ${res.channel_id}`,
),
);
Expand Down Expand Up @@ -720,7 +720,15 @@
return;
}

setMessage('Successfully restored wallet');
const setupResponse = await setupLdk();
if (setupResponse.isErr()) {
setMessage(setupResponse.error.message);
return;
}

setNodeStarted(true);

setMessage('Successfully restored and started wallet');
}}
/>
<Button
Expand Down
Loading