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: backup persisted peers #257

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions backup-server/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const ldkLabels = [
'bolt11_invoices',
'channel_opened_with_custom_keys_manager',
'confirmed_watch_outputs',
'addresses',
];
const bitkitLabels = [
'bitkit_settings',
Expand Down
2 changes: 1 addition & 1 deletion lib/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@synonymdev/react-native-ldk",
"title": "React Native LDK",
"version": "0.0.145",
"version": "0.0.146",
"description": "React Native wrapper for LDK",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion lib/src/lightning-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
TCreatePaymentReq,
TBackupServerDetails,
IAddress,
TLspLogPayload,

Check warning on line 58 in lib/src/lightning-manager.ts

View workflow job for this annotation

GitHub Actions / e2e-android

'TLspLogPayload' is defined but never used

Check warning on line 58 in lib/src/lightning-manager.ts

View workflow job for this annotation

GitHub Actions / e2e-ios

'TLspLogPayload' is defined but never used

Check warning on line 58 in lib/src/lightning-manager.ts

View workflow job for this annotation

GitHub Actions / mocha-android

'TLspLogPayload' is defined but never used

Check warning on line 58 in lib/src/lightning-manager.ts

View workflow job for this annotation

GitHub Actions / mocha-ios

'TLspLogPayload' is defined but never used

Check warning on line 58 in lib/src/lightning-manager.ts

View workflow job for this annotation

GitHub Actions / Run lint check

'TLspLogPayload' is defined but never used

Check warning on line 58 in lib/src/lightning-manager.ts

View workflow job for this annotation

GitHub Actions / Run lint check

'TLspLogPayload' is defined but never used
TLspLogEvent,
TChannelMonitor,
} from './utils/types';
Expand Down Expand Up @@ -1953,7 +1953,7 @@
return await ldk.writeToFile({
fileName: ELdkFiles.peers,
content: JSON.stringify(peers),
remotePersist: false,
remotePersist: true,
});
};

Expand Down Expand Up @@ -2129,7 +2129,7 @@
}

private onChannelManagerPendingHtlcsForwardable(
res: TChannelManagerPendingHtlcsForwardable,

Check warning on line 2132 in lib/src/lightning-manager.ts

View workflow job for this annotation

GitHub Actions / e2e-android

'res' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 2132 in lib/src/lightning-manager.ts

View workflow job for this annotation

GitHub Actions / e2e-ios

'res' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 2132 in lib/src/lightning-manager.ts

View workflow job for this annotation

GitHub Actions / mocha-android

'res' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 2132 in lib/src/lightning-manager.ts

View workflow job for this annotation

GitHub Actions / mocha-ios

'res' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 2132 in lib/src/lightning-manager.ts

View workflow job for this annotation

GitHub Actions / Run lint check

'res' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 2132 in lib/src/lightning-manager.ts

View workflow job for this annotation

GitHub Actions / Run lint check

'res' is defined but never used. Allowed unused args must match /^_/u
): void {
ldk.processPendingHtlcForwards().catch(console.error);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/src/utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ export enum ELdkFiles {
payments_claimed = 'payments_claimed.json', // Written in swift/kotlin and read from JS
payments_sent = 'payments_sent.json', // Written in swift/kotlin and read from JS
bolt11_invoices = 'bolt11_invoices.json', // Saved/read from JS
addresses = 'addresses.json',
addresses = 'addresses.json', // Saved/read from JS
confirmed_watch_outputs = 'confirmed_watch_outputs.json',
}

Expand Down
Loading