Bitcoin Forum
May 09, 2024, 06:54:18 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Possible bug on the bitcoin blockchain? Weird - please explain  (Read 85 times)
ldrapeau (OP)
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
April 22, 2024, 05:43:20 PM
 #1

I just don't get it, maybe I don't understand the blockchain correctly, how can block 839972 and block 839973 have a time earlier than block 839971?  Thanks, if someone could explain, best, Louis




Code:
bitcoin@bitcoin:~$ for block in {839968..839975}; do echo $block: $(bitcoin-cli getblock $(bitcoin-cli getblockhash $block) 2 | ./jq ".time"); done
839968: 1713555843
839969: 1713556158
839970: 1713556364
839971: 1713558153
839972: 1713558054
839973: 1713558091
839974: 1713558976
839975: 1713559220
bitcoin@bitcoin:~$
1715237658
Hero Member
*
Offline Offline

Posts: 1715237658

View Profile Personal Message (Offline)

Ignore
1715237658
Reply with quote  #2

1715237658
Report to moderator
Every time a block is mined, a certain amount of BTC (called the subsidy) is created out of thin air and given to the miner. The subsidy halves every four years and will reach 0 in about 130 years.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
bipshuffle
Newbie
*
Offline Offline

Activity: 17
Merit: 30


View Profile
April 22, 2024, 06:12:33 PM
Merited by pooya87 (4), ABCbits (1)
 #2

See: https://en.bitcoin.it/wiki/Block_timestamp

Timestamps only need to satisfy the following:
"A timestamp is accepted as valid if it is greater than the median timestamp of previous 11 blocks, and less than the network-adjusted time + 2 hours. "Network-adjusted time" is the median of the timestamps returned by all nodes connected to you. As a result block timestamps are not exactly accurate, and they do not need to be. Block times are accurate only to within an hour or two."
ldrapeau (OP)
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
April 22, 2024, 07:55:53 PM
 #3

Ok, I see, many thanks for the explanation.  Does make sense, regards, Louis
Bitcoin_Arena
Copper Member
Legendary
*
Offline Offline

Activity: 2030
Merit: 1788


฿itcoin for all, All for ฿itcoin.


View Profile
April 22, 2024, 10:35:41 PM
 #4

I also had a similar question sometime back, so this thread[1] might also be worth looking in to for any one looking for further answers. Some members there gave some excellent responses.
1. What is with these Bitcoin blocks?

.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
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!