Questions tagged [blocks]

44 questions
8
votes
3 answers

How many blocks are there in blockchain as of today?

I have currently downloaded 300,000 blocks and the last one is generated 1 year and 19 weeks ago. I wonder how many blocks are more to go, before I am up to date.
user30244
  • 81
  • 1
  • 1
  • 2
7
votes
2 answers

What is the difference between chainstate and blocks folder?

Is the blocks and chainstate folder store the same blocks data ? How can we read those data using code and display that on the web frontend like the blockchain explorer websites
Pankaj Kumar
  • 375
  • 2
  • 11
6
votes
2 answers

Does a Block contain the list of transactions? Or only the Merkle Tree?

I was wondering how a block encodes its set of transactions. I know a Merkle Tree is generated, and that it encodes a Hashed version of the transactions. But is the Merkle Tree included in the Block that gets sent to the other nodes for validation? …
3mrsh
  • 65
  • 5
4
votes
2 answers

Download blocks in blk00000.dat format from a specific period

For study purposes, I would like to download blocks from a specific period, i.e. January 2017 - June 2017, in blk.dat format (blk00000.dat, blk*.dat). I downloaded blockchain.core but it makes me download the whole blockchain - correct me if I'm…
4
votes
2 answers

Bitcoin Difficulty granularity

Difficulty adjusts by very granular percentages to target for 10 minutes blocks. But adding another zero at the end of the chain of zeroes from the header hash requirement for a valid block would increase the difficulty exponential. So how does the…
zndtoshi
  • 153
  • 6
4
votes
2 answers

Sender, nodes or miners? Who validates transactions?

I have been reading a lot about the validation of transactions. I understand the actual method in which a transaction is composed (inputs and outputs). However, I don't know what happens with that transaction once its "ready": Do miners check it…
Nacho
  • 41
  • 4
4
votes
1 answer

Default behaviour when network partitions/pruned network

From people oposed to SegWit I have heard about the argument, that after SegWit activation, nodes may chose to drop/prune all Witnesses. From my understanding, this may not be much different from nodes who are already only storing a pruned version…
Bjarne Magnussen
  • 937
  • 5
  • 16
4
votes
1 answer

RPC getblockstats call using genesis block

I am running a full node, bitcoin core 22. It is not in pruned mode. But when I try to run RPC getblockstats call I get this. $ bitcoin-cli getblockstats 0 error code: -1 error…
3
votes
3 answers

Why we need mining?

I know is related to these: What is the rationale behind Bitcoin mining? Why do we need Proof of Work in bitcoin? But I don't fully understand those answers, and I think usually is much easier to understand the concept if we know the problem it…
3
votes
1 answer

Block #338819 deemed invalid by v0.15.1

I am attempting to sync from scratch a full node (v0.15.1) on a linux machine (Linux Mint running Ubuntu precise 12.04.1 LTS). The sync grinds to a halt on block #338818. From examining debug.log I can see the issue is the next block #338819 being…
Assaf Shomer
  • 553
  • 2
  • 10
3
votes
2 answers

Get Latest blocks with bitcoind on Ubuntu

The total blockcount on my machine is not increasing. I have tried doing a bitcoind -reindex -daemon, but it didn't ultimately increase the number of blocks. Attaching machine and bitciond information below. Operating System: my_machine ~ $…
Idr
  • 131
  • 4
3
votes
1 answer

Is there a correct way to refer to "orphan" blocks?

I was reading a passage on the bitcoin wiki that pointed out that it doesn't make sense to call invalid chains "orphans," since, by definition, every block in the blockchain except the genesis block has a parent. Blocks in shorter chains (or…
Nick ODell
  • 29,184
  • 11
  • 69
  • 129
3
votes
1 answer

How does node discovery and miner discovery work?

I am wondering how nodes discover other nodes and miners, basically, who to broadcast received transactions and blocks to. I'm assuming that when a new node or miner wants to be discovered, it broadcasts to all known nodes informing them that its a…
2
votes
2 answers

How can bitcoin transactions for the same coin belong in different blocks?

Isn't each transaction dependent on a hash of the previous transaction? Wouldn't that mean all of the transactions for a particular coin would have to be grouped in the same block? As far I can tell this is not true, so by what mechanism are…
srlrs20020
  • 23
  • 2
2
votes
2 answers

Block inventory messages

I've written some code for connecting to the network, receiving inventories, and requesting data. What I am noticing is that my local node never sends me inventory messages with blocks in them unless I specifically request blocks. So if I do a…
MattyB
  • 91
  • 6
1
2 3