lnd icon indicating copy to clipboard operation
lnd copied to clipboard

replace ioutil.WriteFile usage with Fsync and friends

Open Crypt-iQ opened this issue 2 years ago • 2 comments

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.

Crypt-iQ avatar Jul 11 '22 19:07 Crypt-iQ

你们都在做什么项目

JOM6262 avatar Aug 06 '22 03:08 JOM6262

我是在币圈有自己的团队

JOM6262 avatar Aug 06 '22 03:08 JOM6262

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!

rdanielwetan avatar Oct 01 '22 04:10 rdanielwetan

I have bandwidth now. I'll push it to master

mauricepoirrier avatar Dec 21 '23 20:12 mauricepoirrier