Skip to content

Commit 2dd9ca5

Browse files
authored
Merge pull request #257 from synonymdev/backup-peers
fix: backup persisted peers
2 parents 9cfbd5f + 7003b03 commit 2dd9ca5

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

backup-server/src/server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const ldkLabels = [
3030
'bolt11_invoices',
3131
'channel_opened_with_custom_keys_manager',
3232
'confirmed_watch_outputs',
33+
'addresses',
3334
];
3435
const bitkitLabels = [
3536
'bitkit_settings',

lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@synonymdev/react-native-ldk",
33
"title": "React Native LDK",
4-
"version": "0.0.145",
4+
"version": "0.0.146",
55
"description": "React Native wrapper for LDK",
66
"main": "./dist/index.js",
77
"types": "./dist/index.d.ts",

lib/src/lightning-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1953,7 +1953,7 @@ class LightningManager {
19531953
return await ldk.writeToFile({
19541954
fileName: ELdkFiles.peers,
19551955
content: JSON.stringify(peers),
1956-
remotePersist: false,
1956+
remotePersist: true,
19571957
});
19581958
};
19591959

lib/src/utils/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ export enum ELdkFiles {
489489
payments_claimed = 'payments_claimed.json', // Written in swift/kotlin and read from JS
490490
payments_sent = 'payments_sent.json', // Written in swift/kotlin and read from JS
491491
bolt11_invoices = 'bolt11_invoices.json', // Saved/read from JS
492-
addresses = 'addresses.json',
492+
addresses = 'addresses.json', // Saved/read from JS
493493
confirmed_watch_outputs = 'confirmed_watch_outputs.json',
494494
}
495495

0 commit comments

Comments
 (0)