You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
alert(`Received ${amount} sats on chain in block ${blockHeight}`)
99
-
}
100
-
},
101
-
(res) => {
102
-
//If this fails ever then we need to subscribe again
103
-
console.error(res);
104
-
},
105
-
);
106
-
107
-
108
-
```
109
-
110
-
### Using neutrino headers cache
111
-
Initial neutrino sync times can take a while for first time users. This is a trusted setup that allows the app to download a cached pre-synced archive of the neutrino headers. This speeds up the time it takes for LND to become usable as syncing doesn't need to start from scratch.
112
-
```bash
113
-
#Add these dependencies to your app
114
-
yarn add react-native-fs react-native-zip-archive
115
-
#or
116
-
npm i react-native-fs react-native-zip-archive -S
117
-
118
-
cd ios && pod install &&cd ../
119
-
````
120
-
121
-
Using it:
122
-
123
-
```javascript
124
-
import lndCache from '@synonymdev/react-native-lightning/dist/utils/neutrino-cache';
0 commit comments