Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [block]

The components of the blockchain and a data structure that collects transactions.

50 questions with no upvoted or accepted answers
2 votes
0 answers
36 views

Will Bitcoin Core still respond quickly to a rpc-call when new blocks come in fast?

I had my Core Lightning node crash a few times because Bitcoin Core didn't respond in time to a rpc-call. I found that this happens when new blocks are generated quickly, like below: 849683 2024-06-...
sumBTC's user avatar
  • 41
2 votes
0 answers
44 views

Difference between pprev and pskip pointers in the CBlockIndex class?

In the Bitcoin Core there is class called CBlockIndex which as its name appears is the implementation of blocks. This class has two variable that for me they looks the same: class CBlockIndex { public:...
Amir reza Riahi's user avatar
2 votes
0 answers
57 views

Transaction validation cost

what relation is between transaction size or a number of input and validation cost? for example, It's o(n) or o(n^2)?
Maha's user avatar
  • 41
2 votes
0 answers
51 views

Is there a way to get stats about fees paid (highest, lowest, average) in a specific block?

I'd prefer to get the stats from my full node via bitcoin-cli, but if that's not possible some API would do the job too...
Joe's user avatar
  • 21
2 votes
1 answer
222 views

Different balances in API block explorers for BTC

BTC.com block explorer shows bigger balance than for example Insight or Blockchair. For example: https://btc.com/1FLDCfr9iG7n6bAdGsqBXmhaLgC4aSze72 https://insight.bitpay.com/address/...
wallebach's user avatar
2 votes
0 answers
110 views

The blockchain lookup speed in a local machine

How to determine the exact required time (seconds, milliseconds) to find a particular block when searching within a local blockchain using address? Is there any way to make a benchmark to study the ...
Noureddine's user avatar
2 votes
0 answers
90 views

Source for accurate block timestamps?

Is there a source of historical data which assigns a relatively consistent and accurate timestamp to each block? This might take the form of a server having precisely logged when they first heard ...
Arthur B's user avatar
  • 121
2 votes
0 answers
68 views

Which function is called to mine a block, broadcast the newly mined block & receive a newly mined block?

I am trying to understand the control flow and handling of transactions in the memory pool.
somesh's user avatar
  • 457
2 votes
0 answers
665 views

How to determine how many coins have been mined regardless of block count in main.cpp

Been working my way trough the main.cpp trying to see where this value is grabbed if at all. I need a way to check how many coins have been mined regardless of block count. For example if every ...
user12970's user avatar
1 vote
0 answers
40 views

Should I stop bitcoind when backing up chainstate/ and blocks/ directories?

This is how one might back up their Bitcoin Core data directories in order to save time on syncing in the future: #!/usr/bin/bash local_d=/root/btc_db rsync -av --delete chainstate "$local_d&...
John Smith's user avatar
1 vote
0 answers
50 views

How can I collate blocks in blk*.dat files and rev*.dat files?

According to this answer, blocks in blk*.dat files and rev*.dat files don't necessarily appear in the same order, nor are either files necessarily in monotonic order, and blocks not part of the active ...
Vojtěch Strnad's user avatar
1 vote
1 answer
80 views

Wrong hashes for blocks when parsing from blk

Hello I'm using a python script to actually retrieve information from a blk file and to read data. import datetime # Read block ! file = open("REDACTED\blocks\\blk00000.dat", 'rb') ...
LuckyAutomata's user avatar
1 vote
0 answers
53 views

Pseudocode for Bitcoin's P2P block propagation

I am going through Bitcoin's block propagation method at https://developer.bitcoin.org/devguide/p2p_network.html Are you aware of any pseudocode available on how blocks are propagated during the ...
satya's user avatar
  • 171
1 vote
0 answers
67 views

DB Structure for bitcoin blocks

https://github.com/blockchain-etl/bitcoin-etl#schema I found a library to parse the block data in json format. I want to parse that json and put it into a db to then use that for calculating balances. ...
UnknownHex64's user avatar
1 vote
0 answers
703 views

Pruning Blockstore has been running for days

After activating the core (Testnet - Pruned) with the command bitcoin-qt i received the following error: Corrupt Block Database I restarted the synchronization always using the Pruned mode. The core ...
MaXbeMan's user avatar
  • 125

15 30 50 per page