Bitcoin Forum
May 09, 2024, 08:10:45 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Bitcoin Core] Where is -datadir -- how to use blocks in alternative directory?  (Read 1225 times)
C. Bergmann (OP)
Hero Member
*****
Offline Offline

Activity: 803
Merit: 500



View Profile
March 20, 2014, 06:36:43 PM
 #1

Hi,

with bitcoin-qt I used
-datadir=<directory> to redirect qt on another directory to save the blocks (had them on another hd).
My c:\ is pretty full, the complete blockchain would be too much, so it is important for me to redirect the client to use the btc.

Now I updated the client, and it has to reconstruct alle those blocks. I think it won't fit in my hd.

I tried to use -datadir in the console, but it didn't work. My .conf still has the line datadir=<d:\...>, but it seems not to work.

Anyone knows more?

<b>edit</b>: solved. I should have known the difference between console and command line


▄▄████▄▄
▄████████████▄
▄▄█████▀▀    ▀▀█████▄▄
▄█████▀▀            ▀▀█████▄
▄███▀       ▄████▄       ▀███▄
███      ▄██████████▄      ███
███    ▄██████████████▄    ███
███    ████████████████    ███
███    ████████████████    ███
███    ████████████████    ███
███    ▀██████████████▀    ███
███      ▀██████████▀      ███
▀███▄       ▀████▀       ▄███▀
▀█████▄▄            ▄▄█████▀
▀▀█████▄▄    ▄▄█████▀▀
▀████████████▀
▀▀████▀▀
Gabro███
███
███
███
███
███
███
███
███
███
███
███
███
███
███
███
███
███
███
███
███
███
███
███
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
WHITEPAPER
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
TOKEN SALES
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
1715242245
Hero Member
*
Offline Offline

Posts: 1715242245

View Profile Personal Message (Offline)

Ignore
1715242245
Reply with quote  #2

1715242245
Report to moderator
Each block is stacked on top of the previous one. Adding another block to the top makes all lower blocks more difficult to remove: there is more "weight" above each block. A transaction in a block 6 blocks deep (6 confirmations) will be very difficult to remove.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715242245
Hero Member
*
Offline Offline

Posts: 1715242245

View Profile Personal Message (Offline)

Ignore
1715242245
Reply with quote  #2

1715242245
Report to moderator
1715242245
Hero Member
*
Offline Offline

Posts: 1715242245

View Profile Personal Message (Offline)

Ignore
1715242245
Reply with quote  #2

1715242245
Report to moderator
1715242245
Hero Member
*
Offline Offline

Posts: 1715242245

View Profile Personal Message (Offline)

Ignore
1715242245
Reply with quote  #2

1715242245
Report to moderator
yabtcl
Full Member
***
Offline Offline

Activity: 189
Merit: 103



View Profile
March 20, 2014, 08:35:57 PM
 #2

you can't use -datadir on the configuration file:


From https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File
Quote
Bitcoin.conf Configuration File

All command-line options (except for -datadir and -conf) may be specified in a configuration file, and all configuration file options may also be specified on the command line. Command-line options override values set in the configuration file.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!