lnd
lnd copied to clipboard
replace ioutil.WriteFile usage with Fsync and friends
ioutil.WriteFile doesn't sync the data to disk, so any data written with this function can easily be lost. It's even possible that only partial writes happen. Issuing an Fsync is a better alternative. There aren't many call-sites that do this and I wasn't able to evaluate whether any of these were critical, but better to be safe than sorry.
你们都在做什么项目
我是在币圈有自己的团队
Hi @Crypt-iQ I'm new to this repo. Can you please guide me to appropriate code part? and a bit of explanation about the issue would be really helpful!
I have bandwidth now. I'll push it to master