Bitcoin Forum
May 22, 2024, 12:00:34 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoin core database  (Read 255 times)
kopacb (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
October 24, 2017, 02:41:26 PM
 #1

Is bitcoin core database is supposed to be identical on each computer, if they have all blocks till the most recent block downloaded?
If two databases for users A and B have all blockchain blocks do they have them stored in the same order or different?
For example, if we consider some file blk00100.dat should it be the same file for on each computer where bitcoin core is installed and database is downloaded? Or A may have blocks Nx..Ny on his database whereas B may have Ny..Nz on his computer?
kopacb (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
October 24, 2017, 10:13:17 PM
 #2

 Huh
beatleap
Member
**
Offline Offline

Activity: 99
Merit: 12


View Profile
October 25, 2017, 03:35:19 PM
 #3

Is bitcoin core database is supposed to be identical on each computer, if they have all blocks till the most recent block downloaded?
If two databases for users A and B have all blockchain blocks do they have them stored in the same order or different?
For example, if we consider some file blk00100.dat should it be the same file for on each computer where bitcoin core is installed and database is downloaded? Or A may have blocks Nx..Ny on his database whereas B may have Ny..Nz on his computer?

everyones blockchain will be the same unless it's not up to date. So you could download it on one computer and move it to another very easily and it would be much quicker. Wallets don't affect the blockchain.
MFahad
Hero Member
*****
Offline Offline

Activity: 2464
Merit: 644


Eloncoin.org - Mars, here we come!


View Profile WWW
October 26, 2017, 05:13:47 PM
 #4

Is bitcoin core database is supposed to be identical on each computer, if they have all blocks till the most recent block downloaded?
If two databases for users A and B have all blockchain blocks do they have them stored in the same order or different?
For example, if we consider some file blk00100.dat should it be the same file for on each computer where bitcoin core is installed and database is downloaded? Or A may have blocks Nx..Ny on his database whereas B may have Ny..Nz on his computer?

I cannot speak for a bit for bit comparison, but that chain is based on a data chain from block 0 up. A downloaded chain is simply a copy of that original chain. Imagine a checkbook register, each copy still starts with the first transaction and onward, as though it were the original.

Each PC may lay it out a little different within the bit per bit, DD style memory, but those are not just flippant copies of the original block, each is a copy of that chain, perhaps copied over and over, but still a copy.









▄▄████████▄▄
▄▄████████████████▄▄
▄██
████████████████████▄
▄███
██████████████████████▄
▄████
███████████████████████▄
███████████████████████▄
█████████████████▄███████
████████████████▄███████▀
██████████▄▄███▄██████▀
████████▄████▄█████▀▀
██████▄██████████▀
███▄▄█████
███████▄
██▄██████████████
░▄██████████████▀
▄█████████████▀
████████████
███████████▀
███████▀▀
.
▄▄███████▄▄
▄███████████████▄
▄███████████████████▄
▄██████████
███████████
▄███████████████████████▄
█████████████████████████
█████████████████████████
█████████████████████████
▀█
██████████████████████▀
▀██
███████████████████▀
▀███████████████████▀
▀█████████
██████▀
▀▀███████▀▀
.
 ElonCoin.org 
.
████████▄▄███████▄▄
███████▄████████████▌
██████▐██▀███████▀▀██
███████████████████▐█▌
████▄▄▄▄▄▄▄▄▄▄██▄▄▄▄▄
███▐███▀▄█▄█▀▀█▄█▄▀
███████████████████
█████████████▄████
█████████▀░▄▄▄▄▄
███████▄█▄░▀█▄▄░▀
███▄██▄▀███▄█████▄▀
▄██████▄▀███████▀
████████▄▀████▀
█████▄▄
.
"I could either watch it
happen or be a part of it"
▬▬▬▬▬
BillyBobZorton
Legendary
*
Offline Offline

Activity: 1204
Merit: 1028


View Profile
October 26, 2017, 05:28:31 PM
 #5

Is bitcoin core database is supposed to be identical on each computer, if they have all blocks till the most recent block downloaded?
If two databases for users A and B have all blockchain blocks do they have them stored in the same order or different?
For example, if we consider some file blk00100.dat should it be the same file for on each computer where bitcoin core is installed and database is downloaded? Or A may have blocks Nx..Ny on his database whereas B may have Ny..Nz on his computer?

I cannot speak for a bit for bit comparison, but that chain is based on a data chain from block 0 up. A downloaded chain is simply a copy of that original chain. Imagine a checkbook register, each copy still starts with the first transaction and onward, as though it were the original.

Each PC may lay it out a little different within the bit per bit, DD style memory, but those are not just flippant copies of the original block, each is a copy of that chain, perhaps copied over and over, but still a copy.

If you wanted to re-use your existing blockchain files in another computer so you don't nee to download the whole thing, I think you should only copy the "blocks" folder and no the "chainstate" folder, im not sure exactly why but I was recommended this a long time ago when I wanted to install Bitcoin Core on a laptop and I tried to use the desktop blockchain files to save time.
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!