Skip to content

Commit

Permalink
Merge pull request #257 from synonymdev/backup-peers
Browse files Browse the repository at this point in the history
fix: backup persisted peers
  • Loading branch information
Jasonvdb authored Jul 2, 2024
2 parents 9cfbd5f + 7003b03 commit 2dd9ca5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
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 @@ -1953,7 +1953,7 @@ class LightningManager {
return await ldk.writeToFile({
fileName: ELdkFiles.peers,
content: JSON.stringify(peers),
remotePersist: false,
remotePersist: true,
});
};

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

0 comments on commit 2dd9ca5

Please sign in to comment.