Questions tagged [block]

This tag should be used for questions related to Bitcoin blocks

Filter by
Sorted by
Tagged with
0
votes
0answers
26 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
1answer
30 views

Why downloaded Block Size doesn't match with actual block size mentioned on network?

I am trying to download a block(Height:474044) using an API from here in python. Block is obviously downloaded in JSON format. But when I store it in a file on my system it shows very weird size ...
1
vote
1answer
25 views

Re-index/Re-download from specific height?

I seem to have discovered corrupt blocks on one of my nodes. The node is on all the time to keep up to sync and the rest of my nodes connect to it to retrieve block data when they need to sync. 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 ...
1
vote
1answer
56 views

What does best block time mean in wallet.dat

I have a wallet.dat file that states: Best block at time of backup was 42603 (0000000013136bd812212959a15ef0ea0f084ee2c64e2f7f0e127d198f67a37f), mined on 2010-02-26T00:36:08Z Does that mean that one ...
0
votes
1answer
28 views

Calculate Transaction Confirmations

I am writing an API for one of my systems which can verify if a monitored address is receiving Bitcoin, I can already check if the address is on the newly received block, save it to a database for ...
2
votes
0answers
46 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)?
1
vote
3answers
65 views

Does each block contain all the Bitcoin transactions for that time period?

When a miner validates a block, does the block contain all transactions in Bitcoin for that time period? So does a miner validate an individual transaction between two parties, or are they validating ...
1
vote
0answers
23 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 ...
0
votes
0answers
14 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
1answer
20 views

Improve uniqueness of block for nonce creation

I am going through online Blockchain course and in the course, they have mentioned that uniqueness of a block is defined using hashes with leading zeros as well as timestamp. Since, in the training, ...
0
votes
2answers
53 views

bitcoin back-end blockchain storage

bitcoin uses blockchain so blockchain is peer to peer, every peer stores the data so I wonder where does the data of all the bitcoins is stored? who is peer in case of bitcoin? so that peer gets ...
0
votes
2answers
40 views

How Bitcoin mining contributes to confirmations?

Based on my knowledge I know (maybe wrong) when a miner is doing hash, he is inputting any arbitrary values, in order to get a value that can be hashed into something with certain preceding zeros. ...
2
votes
1answer
65 views

Is the ordering of blocks in the rev*.dat files same as the blk*.dat files?

I understand that blk*.dat files save the blocks in the order it gets them from it's peers. Is the rev*.dat files in the same order as the blk*.dat files? For example, would the 400th magicbyte in ...
1
vote
1answer
45 views

When exactly do the transactions get validated?

I have some gaps in my understanding to the life cycle of the transaction that I want someone to help me fill them specially with the validation. What I understand about the life cycle with my ...
0
votes
1answer
18 views

how the miner start to count the timestamp to insert in the block

I have a doubt, how the miner starts to count the timestamp to insert in the block. An example the timestamp insert inside the genesis block is 1/3/2009, 7:15:05 PM GMT+1. If the genesis block would ...
1
vote
1answer
57 views

Why Block Chain not Transactions Chain? [closed]

I believe that, for some people, the term Block is a sort of holy notion. However, there exist yet some block-free blockchains such as Libra (Sometimes referred to as Zuck Buck). Unlike previous ...
1
vote
0answers
54 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 ...
0
votes
4answers
100 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, ...
3
votes
2answers
110 views

What would happen if miners refused halving

In may 2020 the supply of bitcoin per block is supposed to be reduced by half https://www.bitcoinblockhalf.com/ What if after this phase the first miner or more than 51% of them decide to keep the ...
0
votes
1answer
29 views

How can size of a block be significantly small? [duplicate]

As we all know bitcoin block size should be sth about 1MiB. (Some blocks about 2MB). And this is because miners put all transactions to the block every 10 minutes. So what happens technically that ...
0
votes
0answers
14 views

Regarding 51% attacks in blockchain [duplicate]

Can anyone tell me, What is 51% attack in blockchain how this attack is prevented
0
votes
0answers
25 views

Block validation process [duplicate]

Can some one explain how the block validation is done in blockchain based system with suitable example.
0
votes
1answer
35 views

Block validation in blockchain

if i am saying that node A is having some block (B) and other nodes X,Y,Z are wants to validate the block B than node A has to send the block B to nodes X,Y,Z. This block B contains the hash of ...
1
vote
1answer
37 views

Regarding block validation in blockchain

In mining process, miners validate the block based on proof of work or using some other consensus mechanism. Miners also validate the block. So in this validation process, miners validate only hash ...
2
votes
1answer
58 views

What is the actual Bitcoin block size? 2mb or 1mb?

I am not asking about block weight. I hear many people saying that the actual Bitcon block size is 2mb. However, in any block explorer, I can see that blocks are around 1200kb. This is very confusing, ...
0
votes
1answer
33 views

what file/method is block reward processed?

I have managed to build an altcoin (from litecoin source) but my coin requires that I make changes to the way rewards are made. I have been looking at the source code to try to find where block reward ...
0
votes
2answers
58 views

Including transactions in a block - rules and time / technical aspect

I’ve a question regarding block and transactions included in the next block that is solved. Let us assume theoretically that there is newly propagated solved block. And now there are: tx0 and tx1 –...
0
votes
0answers
22 views

Where can I find a detailed network protocol spec? [duplicate]

I have been trying for a while to understand how the bitcoin network works, which I (kind of) do on a high level. However, all of the sources I read don't go into the details of the protocol that ...
5
votes
1answer
117 views

How long are orphaned or stale blocks kept in bitcoin core nodes memory?

If there was a chain reorg, for example: Blockchain: 0a---1a---2a---3a becomes... 0a---1a---2b---3b How long are blocks 2b and 3b kept in memory on the node? If I query the node for block 2b ...
4
votes
1answer
82 views

How has the Bitcoin average block size recently risen above 3 MB?

I was aware that the block size could rise above the 1 MB cap due to SegWit. However, my understanding was that the block size would still be limited under SegWit. My understanding of SegWit is that ...
2
votes
1answer
67 views

Can a miner give themselves less than the maximum block subsidy if they wish to do so?

The current maximum block subsidy is 12.5 bitcoin. A mined block recently got rejected from full nodes after a miner tried to post the block subsidy as 13.26 bitcoin. But what about in the other ...
1
vote
1answer
19 views

Doubt regarding hashing function in Merkle trees

From what I read, say in a block, there are 4 transactions. The hash value of transactions A and B are combined together to get the hash AB. Same goes for transactions C and D to get hash CD. Later AB ...
0
votes
1answer
16 views

CDiskBlockIndex: NFile and NDataPos not defined

This is the source code snippet that is used for the serialization of block indexes (found in leveldb). Block 478573 index is (as of my node's leveldb) ...
2
votes
1answer
136 views

Does assumevalid lower the security of Bitcoin?

Bitcoin's assumption was to download the blocks and verify it in order to prevent getting fooled. But by default, the assumevalid option is enabled in the software, which, as I understand it, makes ...
2
votes
1answer
61 views

How to parse values in block index leveldb?

So I'm trying to read the block files with Python. From this link, What are the keys used in the blockchain levelDB (ie what are the key:value pairs)?, it tells you how to access the files with ...
1
vote
3answers
124 views

What is a bitcoin incoming transaction with value = 0.00000546?

I wrote a script that downloads and parses blocks. I see a lot of incoming payments with value = 0.00000546. Any explanation? Thanks!
1
vote
1answer
45 views

Bitcoin Blocks Date not coherent? [duplicate]

I was taking data from the BTC Blockchain with a custom script. I found something really weird. Block nr. 24668 was created at 2009-10-09 23:02:57 Block nr. 24669 was created at 2009-10-10 00:15:48 ...
2
votes
0answers
43 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...
0
votes
1answer
48 views

Do Full Nodes validate all transactions and make new blocks after all bitcoin are mined?

Do Full Nodes validate all transactions after all bitcoin are mined? A fork of bitcoin core with all coins pre mined would be behaving in this way too I'd imagine..? Also, would these nodes still ...
1
vote
1answer
37 views

What happens in a small scale blockchain network?

My main question here is, is this understanding correct or have I misunderstood something? If this question would be better for Reddit then I apologise in advance and I'll move to there. Thanks. ...
2
votes
1answer
42 views

What if an intruder modify scriptSig to get the same hashMerkleRoot of a block?

What if an intruder try to modify the coinbase transaction of a block buried in the blockchain, writing as output some other address. The arbitrary content of the scriptSig field could be modified as ...
1
vote
1answer
31 views

Tracking inventory messages

I am trying to connect to different nodes and keep track of the inventory messages that they send to me. I tried to do this with bitcoinj and libbitcoin, but I didn't make it. The goal is to connect ...
1
vote
1answer
28 views

Which is the better estimator for future mining intervals, the 10 minute protocol target or the observed, historical average?

The Bitcoin protocol is designed so that the network difficulty is periodically adjusted so that new blocks are mined on average every 10th minute. However, looking back the last 10 years, it appears ...
1
vote
1answer
72 views

Block size limit in Bitcoin v0.01

In main.h (line 17) we have a constant MAX_SIZE static const unsigned int MAX_SIZE = 0x02000000; which in decimal format equals to 33554432 (32MB) This constant is used to verify if the block ...
0
votes
1answer
32 views

How and why we need to validate a transaction?

I've starting doing some researches about the Bitcoin protocol and the blockchain. I'm trying to understand all the sections in the Bitcoin white-paper. So far, i couldn't understand what is the ...
1
vote
1answer
38 views

How chaining the blocks protect against altering data?

I am confused with the block chaining, as i know a block header contains a reference to the previous block header hash with the merkle root and other fields. This header hash is related (computed) to ...
0
votes
1answer
87 views

How can get balance for btc/bch address and block?

How can get balance for btc/bch address and block ? Similar to web3.eth.getBalance for Ethereum
0
votes
1answer
51 views

Bitcoin fork resolution - Fork losers download previous blocks 'til common block?

When resolving a naturally occurring fork in Bitcoin, do the miners who were working on the orphaned fork download previous blocks from the miner who won the block reward that resolved the fork until ...
0
votes
2answers
60 views

Bitcoin checks and balances

When a new block is created, does each block need to be validated? How does it differ from validating transactions? Why miners would waste time validating transactions and blocks when they could ...

1
2 3 4 5
11