Questions tagged [block]

This tag should be used for questions related to Bitcoin blocks

38 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
4k 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
49 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)?
2
votes
0answers
44 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
125 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
74 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
197 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
622 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 ...
2
votes
2answers
67 views

Why do we often see 2 blocks mined within a few seconds of each other?

This seems to happen far more frequently than one would expect from a Poisson distribution with a ~10 minute mean. Am I just bad at statistics or is something else going on?
1
vote
0answers
28 views

Fork rate range in terms of network security

I am really new to bitcoin and am trying to understand the basics. Fork rate/Orphan rate is a measure of network security. The higher the fork rate, the more compromised the system. Also fork rate ...
1
vote
0answers
60 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
206 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
21 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
58 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
128 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
457 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
63 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
99 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
872 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
118 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
564 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
667 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
0answers
25 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 ...
0
votes
0answers
12 views

Corrupt block database

I activated the core with bitcoin-qt as I always do. What can be the cause of the database loss? Synchronization is restarted from the genesis block. I use the testnet with Pruned mode activated.
0
votes
0answers
27 views

What does the version number in the blockheader represent

While looking up how a block get mined I stumbled over the version number in the header - which is used to "keep track of changes to the protocol". But even in the last 5 blocks of the chain (at the ...
0
votes
0answers
18 views

GeForce GTX 780 desktop pc vs. old dell and toshiba laptops

I'm curious as to why when I mine Satoshis with the app "Bitcoin Miner" with my gaming computer I get slower or = to the hashrate that my older laptops are getting.. I assumed it would be 10x faster ...
0
votes
0answers
23 views

How can I do CDataStream to String to CDataStream conversion?

I'm developing a bitcoin application which saves Block to a file from which it can be read at later point of time. So I'm converting CDataStream vRecv to hex string using below bitcoin defined ...
0
votes
2answers
241 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
218 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
163 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
206 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
130 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.
-1
votes
1answer
20 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
23 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
-4
votes
1answer
55 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.
-4
votes
1answer
113 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 ...