Questions tagged [block]

This tag should be used for questions related to Bitcoin blocks

44 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
51 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
46 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
136 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
78 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
201 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
625 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
32 views

Upgrading - OLD PC - Wallet v0.8.1-beta and qt v4.8.3

Can you advise me on upgrading my wallet and bitcoin software. Are there files I should save before upgrading? what should I upgrade to? Other basic questions. I have a number of bitcoin files in my ...
1
vote
0answers
125 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 ...
1
vote
0answers
30 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
102 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
240 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
59 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
136 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
465 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
65 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
100 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
882 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
119 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
567 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
688 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
19 views

unconfirmed transaction 1/2fdlhhxj

I have seen a transaction in my wallet that was not made by me how can I stop it please it’s still on 1to6 unconfirmed
0
votes
0answers
18 views

What is the total number (or rate) of orphaned blocks in Bitcoin in 2020?

Apparently, blockchain.com stopped to provide such information in 2017. Obviously, we still have orphaned/stale blocks in Bitcoin (see, e.g., BitMEX Research: Bitcoin Has a Stale Block For The First ...
0
votes
0answers
19 views

Is it normal that blk and rev files are blank?

I am trying to run a full node on a Raspberry Pi 3. My computer is also not so good for initial block download. So I got a borrowed computer and synced the whole blockchain overnight. Then I copied &...
0
votes
0answers
26 views

bitcoin-cli getblockchaininfo “blocks”: 0 “headers” 0

Noob question. I've been following the raspibolt set up (https://stadicus.github.io/RaspiBolt/raspibolt_30_bitcoin.html), but I'm stuck trying to get the initial sync started. It is active (running) ...
0
votes
0answers
22 views

how does node remove conflicting transactions from memory pool?

Sorry for the long text. This is just my observation and was wondering if you could let me know if I am correct or not. Case 1) Let's say minerA and minerB both have the same transaction in their ...
0
votes
1answer
38 views

How to search for an address in last block?

I want to check in bitcoin-core and see if there is any of my watching addresses in last block. So my question is how can I know a specific address is included in last block or not? I can search with ...
0
votes
0answers
29 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
29 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
20 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
37 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
336 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
260 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
0answers
213 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
131 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
0answers
42 views

I'm not able to spend unconfirmed balance bitcoin core spendzeroconfchange option not working

I'm trying to make my wallet to spend unconfirmed transactions , I searched over the internet with no luck to fix this , I tried spendzeroconfchange=0 spendzeroconfchange=1 in bitcoin.conf still ...
-1
votes
1answer
21 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
57 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
116 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 ...