synonymdev / react-native-ldk

React Native LDK
MIT License
51 stars 16 forks source link

`Error: file_does_not_exist` after upgrading to 0.0.58 #62

Open tanx opened 1 year ago

tanx commented 1 year ago

I was testing on 0.0.54 before and wanted to upgrade to 0.0.58 to test native persistence of the network graph. The LDK node still works but now I see the following error messages in the metro logs:

NATIVE LOG: Error: file_does_not_exist. Message: 'Could not locate file at /Users/tanx/Library/Developer/CoreSimulator/Devices/CCDB2E39-C1FE-4C14-881F-E8BE9F8967DD/data/Containers/Data/Application/B56477E5-16CA-44C1-8A71-3DD46B6A7C81/Documents/ldk/wallet3/confirmed_outputs.json'
NATIVE LOG: Error: file_does_not_exist. Message: 'Could not locate file at /Users/tanx/Library/Developer/CoreSimulator/Devices/CCDB2E39-C1FE-4C14-881F-E8BE9F8967DD/data/Containers/Data/Application/B56477E5-16CA-44C1-8A71-3DD46B6A7C81/Documents/ldk/wallet3/broadcasted_transactions.json'
Jasonvdb commented 1 year ago

Thanks yes the node will still work fine with these errors. What's happening is those files don't yet exist until you have a channel. So the error is managed but it should probably just be silenced in this scenario. Will make a PR to fix this but for now it's safe to ignore.