Questions tagged [block]

This tag should be used for questions related to Bitcoin blocks

36 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
3k views

How to recover corrupted Bitcoin-Core blockchain?

I recently experienced a I/O error resulting in data block corruption or index corruption cause bitcoin-qt wasn't quitting so I forced bitcoin core to shutdown without killin it properly. I checked ...
2
votes
0answers
42 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...
2
votes
1answer
106 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/...
2
votes
0answers
92 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 ...
2
votes
0answers
70 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 ...
2
votes
0answers
188 views

Get as many blocks as possible (stale, invalid, orphans)

I would like to download (and access) as much blocks as possible - including stale (extinct) blocks, orphans blocks and invalid blocks. I have 0.11 official client. My node is already synchronized but ...
2
votes
0answers
61 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.
2
votes
0answers
621 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 ...
1
vote
0answers
24 views

What is the formula for inferring hash rate from difficulty and block frequency?

Two parts to this question 1/ There have recently been concerns over drops in hash rate observed on sites such as blockchain.com. However, my understanding is that hash rate is inferred from the ...
1
vote
0answers
132 views

Estimated number of hashes

This is not a duplicate of previous, similar questions I've read on StackExchange, since none of those questions, nor the answers, go into the difficulty theory, as espoused on the Bitcoin Wiki. ...
1
vote
0answers
20 views

What needs to be done inorder to change difficulty?

I'm trying for a while to reduce difficulty of main network to do some experiments on transactions and maybe simulate some possible attacks.I came up to change nBits field in chainparams.cpp but it ...
1
vote
0answers
53 views

Segwit and block size limit

I'am learning about Bitcoin and I didn't understand something. Maybe someone could clarify. I [think] I understood what Segwit does (increases block size, solves malleability and works better with ...
1
vote
0answers
121 views

Bitcoin mining specification to write own mining application

Where can I find the design specifications to write my own mining application for mining bitcoin. More I read I find there are number of implementations and some pools only work with specific mining ...
1
vote
0answers
435 views

BitcoinCore walletnotify before blocknotify?

I want to use bitcoind's walletnotify and blocknotify features. The question is: Is blocknotify script always triggered after walletnotify script? Imagine, I have an unconfirmed transaction in my ...
1
vote
0answers
59 views

Reorganize chain

BitcoinJ: Is is possible to get somehow transactions from ReorganizeListener in block chain? I'm able to get list of new blocks which are represented by StoredBlock but from StoredBlock I can't get ...
1
vote
0answers
92 views

Why do transactions get verified before it is clear that the block header is valid?

When I researched for the answer on What happens in detail, when Bitcoin Core verifies a block during synchronization?, I noticed something: According to the Wiki-Entry on Protocol rules some of the ...
1
vote
0answers
859 views

(Bither) how can i send my bitcoins?

i downloaded Bither as my virtual wallet and added bitcoins in a Hot Wallet Address. But when i try to send bitcoins, i can't. i fill the address, the amount of bitcoins and i type my password but ...
1
vote
0answers
118 views

Submitted blocks get rejected on Litecoin testnet

I'm trying to submit blocks to the Litecoin Testnet, however everything gets rejected. I got my raw value as ...
1
vote
0answers
115 views

What is block forwarding logic of the Satoshi Client?

Could anyone explain in simple words what does the reference client do when it receives a orphan, stale or best-chain block regarding sending "inv", "block" and "getdata" commands? An interaction ...
1
vote
0answers
552 views

Cannot synchronize with Bitcoin in testnet mode

I downloaded Bitcoin-QT for Windows 7 into: MYUSERNAME/Downloads/bitcoin-0.8.6-win32/bitcoin-0.8.6-win32 I want to run Bitcoin in testnet mode, so I created bitcoin.conf with only the following ...
1
vote
1answer
617 views

Where can i find proof of work in bitcoin core source code?

does anyone knows which part of the bitcoin core source code contains the proof of work for mining, creating of block and adding to blockchain? what are the files and functions involves? https://...
0
votes
2answers
47 views

How the blockchain knows that its been tampered with?

I know that the transactions stay in the block and hashed alongside few other things and that hash is stored in the next block. And I understand that if you try to tamper with one of the transactions, ...
0
votes
0answers
30 views

Is it possible to get a block by timestamp?

I use Bitcoin Core API and I can retrieve a block by header hash as parameter using the getblock method. I need to get a block by given timestamp (median time). I found some solution. ...
0
votes
0answers
37 views

Locating Bitcoin mining activity

There is any systematic way to locate Bitcoin mining activity (either block creation or node activity). I stumble upon with Bitnodes code which implements a recursive search using some nodes as "seed",...
0
votes
2answers
112 views

Is there any python library could be used to decodescript in output

For example decode the ScriptPubKey like 4104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac to some data like ...
0
votes
1answer
167 views

How do I double SHA-256 the header of block #59,500?

I'm not sure how to combine all of this information. https://blockchain.info/block/00000000096af43105123c499521e1d131d172e7e1bf2ed0843290a921f1f6a7 Version 1 Time Bits 470771548 (is this the right ...
0
votes
1answer
72 views

A part I do not get about SPV

SPV (lightweight) users do not have a chain. (Well, some SPV users have a fraction of the full chain, but some SPV users only have block headers. Am I correct?) If a block is created by a miner and a ...
0
votes
1answer
155 views

Testing altcoin reward halving - Help!

I am currently working on reward halving changes for a test coin and i have added all the necessary changes but my question is how do i safely test this new halving without affecting production. I ...
0
votes
0answers
187 views

How generate a hex string for a block

I have written this code to create and submit a new minned block to the bitcoin network: unsigned long magic_number = 0xD9B4BEF9; unsigned long block_size = 89 + (strlen(coinbase_transaction)-1) +...
0
votes
1answer
123 views

Tool to build a relational db from .dat block files

No need to elaborate too much. I'd like to build a real SQL db starting from the directory blocks. Is there any tool out there? I work on a mac and I'd prefer something cross OS if possible.
0
votes
2answers
100 views

What is the most optimal way to parse a raw bitcoin block with python?

Let's say one is connected to a zmq socket and listening for rawblock. How you'd parse the block header is as follows: block_header = raw[:80] version = block_header[:4] prev_merkle_root = ...
-1
votes
0answers
26 views
-1
votes
1answer
19 views

How to prevent nodes from creating only small blocks to earn fee?

I read What are the minimum sizes for transactions and blocks in Bitcoin? that there is no min limit - just a max limit of 128MB - for a block. For example if a miner always takes a single ...
-1
votes
1answer
19 views

Pertaining to slushpool mining . What is the most lucrative way to vote ? Or does it matter

What is the most lucrative way to vote on slushpool? Or does it matter
-3
votes
1answer
54 views

decentralized cryto currency without block time

Block time or delay is often a problem in Bitcoin. Then would it be possible to develop a decentralized cryto currency with zero delay/block time? Any reference will be appreciated.
-3
votes
1answer
106 views

what this parameters do end what i need put on them in blockchain ver2

/** What block version to use for new blocks (pre versionbits) */ static const int32_t VERSIONBITS_LAST_OLD_BLOCK_VERSION = 4; /** What bits to set in version for versionbits blocks */ static const ...