Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GRIN-Node] Choose a different default directory for grin blockchain storage #1

Closed
MCM-Mike opened this issue Dec 12, 2020 · 4 comments
Assignees
Labels
beginners Grin-Node Test cases for GRIN-Node reviewed Assigning this label after tester's findings are reviewed Test-Case New test case

Comments

@MCM-Mike
Copy link
Member

Description:
Choose a different path for storing the GRIN blockchain.

Prerequisites:
Run a GRIN-Node and make changes the following changes to you grin-server.toml:

grin-server.toml

#the directory, relative to current, in which the grin blockchain
#is stored
d_root = "/some/other/path"

Expected result:
After the GRIN-Node is fully synced all related GRIN blockchain files should be in the specified folder.
Example:

lrwxrwxrwx 1 grin grin        40 Apr 22  2020 grin 
-rw-r--r-- 1 grin grin         0 Apr 22  2020 grin.lock
-rw-r--r-- 1 grin grin      7905 Nov 10 10:10 grin-server.toml
drwx------ 4 grin grin      4096 Jan 15  2019 header
drwx------ 2 grin grin      4096 Jan 15  2019 lmdb
drwxr-xr-x 2 grin grin      4096 Apr 22  2020 peer
drwx------ 5 grin grin     4096 Jan 15  2019 txhashset
-rw-r--r-- 1 grin grin 831392297 Dez 11 17:40 txhashset_snapshot_0004fa3384d3.zip
@MCM-Mike MCM-Mike added the Test-Case New test case label Dec 12, 2020
@MCM-Mike MCM-Mike changed the title Choose a different default directory for grin blockchain storage [GRIN-Node] Choose a different default directory for grin blockchain storage Dec 12, 2020
@MCM-Mike MCM-Mike added the Grin-Node Test cases for GRIN-Node label Dec 12, 2020
@marekyggdrasil marekyggdrasil added ready-for-test Ready to be assigned and be worked on beginners labels Dec 13, 2020
@marekyggdrasil marekyggdrasil removed the ready-for-test Ready to be assigned and be worked on label Dec 19, 2020
@cekickafa
Copy link
Collaborator

I have tested version grin-5.0.0-beta.3 on windows 10 Home (1903)
I have first run grin to generate server-toml then edited d_root
d_root = "C:\GrinTest"
I run and sync node successfully. Node is synced fully.

Following files are generated in folder "C:\GrinTest"

  • header (folder)
  • Imdb (folder)
  • peer (folder)
  • txhashset (file)

Following files are in default location C:\Users\username.grin\main

  • chain_data (folder)
  • .api_secret (file)
  • .foreign_api_secret (file)
  • grin-server.log (file)
  • grin-server.toml

Some of the folders stated in "Expected results" are missing in specified folder.

@marekyggdrasil
Copy link
Collaborator

Good work @cekickafa ! Could you copy paste some terminal outputs? I think on Windows you can list content of directory with ‘dir’ command.

also, could you list which folders are missing? Or better provide a terminal output that shows they are missing

@cekickafa
Copy link
Collaborator

cekickafa commented Dec 20, 2020

Content of folder in modified path (C:\GrinTest)

20.12.2020  13:19    <DIR>          .
20.12.2020  13:19    <DIR>          ..
20.12.2020  11:52                 0 grin.lock
20.12.2020  11:52    <DIR>          header
20.12.2020  11:52    <DIR>          lmdb
20.12.2020  11:52    <DIR>          peer
20.12.2020  13:12    <DIR>          txhashset
               1 File(s)              0 bytes
               6 Dir(s)  121.486.356.480 bytes free

These are the missing files/folders:

lrwxrwxrwx 1 grin grin        40 Apr 22  2020 grin 
-rw-r--r-- 1 grin grin      7905 Nov 10 10:10 grin-server.toml
-rw-r--r-- 1 grin grin 831392297 Dez 11 17:40 txhashset_snapshot_0004fa3384d3.zip

@marekyggdrasil
Copy link
Collaborator

Now its clear, thanks!

@marekyggdrasil marekyggdrasil added the reviewed Assigning this label after tester's findings are reviewed label Dec 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginners Grin-Node Test cases for GRIN-Node reviewed Assigning this label after tester's findings are reviewed Test-Case New test case
Projects
None yet
Development

No branches or pull requests

3 participants