firoorg / firo

The privacy-focused cryptocurrency
https://firo.org
MIT License
720 stars 354 forks source link

Saving the blockchain to network storage (NAS) does not work correctly #1302

Open vampyren opened 1 year ago

vampyren commented 1 year ago

Describe the issue

When using network drive to save the blockchain wallet does some nasty stuff which sort of don't make any sense. I believe the code underneath does not handle network drive in a correct way. Almost half the files are stored correct and other half not so.

Local setup

Windows 11 x64. Firo Core version v0.14.12.1-gc7e3ef0e6 (64-bit)

Any extra information that might be useful in the debugging process.

path firo_folders

As seen from the images i wanted to have my data folder at: \myVault\Temp\Blockchain\firo

But as the other image shows files under \myVault\Temp\Blockchain\firo\blocks are stored correctly while files under these folders are still stored locally under C:\Util\Crypto\firo-0.14.12.1\bin \myVault\Temp\Blockchain\firo\blocks\index \myVault\Temp\Blockchain\firo\blocks \myVault\Temp\Blockchain\firo\chainstate \myVault\Temp\Blockchain\firo\evodb \myVault\Temp\Blockchain\firo\llmq

This does not make any sense! To me this is a coding error in how path's are handled in the wallet. Also as a proof for my own theory When i tried to move the data dir to the default location: \AppData\Roaming\firo and started with a fresh wallet (clean registry) it had to re-download the whole chain again since allot of files were missing due to the above mentioned issue. The whole data is not saved correctly when using network folder!

And this is nothing special. I have BTC, LTC, Dash, Pivx all using network storage with no issue.