Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [block]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
29 views

Must input UTXO references be unique in a transaction, and/or unique in a block?

Must input UTXO references (txid + vout) be unique in a transaction, and/or be unique in a block? Put another way, is it a rule that UTXOs can be consumed piecemeal in transactions and blocks, so long ...
Lee's user avatar
  • 815
3 votes
1 answer
267 views

What's the smallest possible coinbase transaction / block size?

Let's say that, for some ununderstandable reason, a miner does not care about receiving the block reward. Rather, the miner cares only about achieving the smallest ever block. What would be the size ...
Lee's user avatar
  • 815
1 vote
1 answer
115 views

What does the block time represent?

I've always been under the impression that a block's timestamp represents the second at which a block was found. For this to be true, it would seem that the time header field must be modified along ...
user49396's user avatar
  • 245
0 votes
1 answer
176 views

How do miners manually add transaction to a block template?

Here's my idea from the quick research: Miners use getblocktemplate RPC method. In the obtained block template, they remove some transaction and instead place in other transaction that wouldn't ...
pycan's user avatar
  • 111
0 votes
0 answers
32 views

what is expectedFees and expectedWeight in a block and why its changing frequently?

what is expectedFees and expectedWeight in a block and why its changing frequently ? https://mempool.space/api/v1/block/00000000000000000001c680ee86b8eaa43c94ac9012f4d2dcbfa9f45beadf06 when i last ...
N.dhanush raj's user avatar
1 vote
0 answers
30 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
2 votes
1 answer
89 views

Why was there a jump in transactions per block in 2023?

I noticed that there was a jump in the number of transactions per block (from ~2000 to ~3000) in April-May 2023. The size of the serialised UTXO set also ~doubled from ~5GB to ~10GB over the following ...
Lee's user avatar
  • 815
0 votes
0 answers
23 views

How can I tell who mined a certain block? [duplicate]

Just like title says, how can I tell who mined a certain block. Is it just the decoded hex value of the OP_RETURN in the first tx?
user2880722's user avatar
1 vote
1 answer
74 views

Is there any way for a script to depend on blockchain info?

The locktime opcodes OP_CHECKLOCKTIMEVERIFYand OP_CHECKSEQUENCEVERIFY indirectly allow for an approximate block number check, is there any way to obtain other information such as the previously mined ...
Tobias Kienzler's user avatar
2 votes
1 answer
59 views

What determines the block's timestamp?

As a miner, what happens if I propogate a block with a future timestamp, or yesterday's timestamp? What determines the block time? Can I just give any time here or is it okay to change it with 1-2 ...
Efe's user avatar
  • 407
0 votes
1 answer
78 views

How to pick the block in which a transaction will get mined?

I am developping a bot for a customer with the following goals in mind: to inscribe a satoshi with the block number that it has been mined in (ordinal inscription) on every block. i think this is ...
Yann's user avatar
  • 3
0 votes
1 answer
54 views

bitcoin block time analysis with conjuction to propagation

For both scenarios that I will describe below, assume the 2 things. that network propagation for blocks always 6 seconds. that we start looking at my analysis from time = t0 and at that t0, every ...
Giorgi Lagidze's user avatar
0 votes
0 answers
40 views

High end electrum servers directly reading blk.dat files

These days, high end electrum servers directly read blk.dat files straight from Bitcoin Core's blocks folder in the process of creating their initial internal indexes. I guess they also do in the ...
RooSoft's user avatar
  • 157
1 vote
1 answer
100 views

What are ALL the consensus rules?

I asked this question before, and it was quickly locked and pointed to a thread about mempool policy... yet my question remains unanswered. Let it be known, I don't want to know what policy is [or is ...
DoctorBuzz1's user avatar
3 votes
1 answer
295 views

On average what percentage of the total block reward comes from transaction fees?

Question Hello. At the time of this question the reward per block is 6.25 bitcoins. But if I understand correctly that does not include transaction fees. On average, in addition to the 6.25 bitcoins, ...
Usman Mutawakil's user avatar
1 vote
1 answer
78 views

What happens to the blocks that do not pass the acceptance rules?

One of the acceptance rule for the blocks is that the block timestamp cannot be more than 2 hours in the future. What happens to blocks whose timestamp does not meet this rule, i.e. blocks that ...
LeaBit's user avatar
  • 940
3 votes
1 answer
69 views

When chains branch, are there multiple UTXO sets?

If there are "fork" chains coming off a block, how do we keep track of the UTXOs of different public keys? Would I just store UTXOs derived from the longest chain and recalculate if another &...
Shay's user avatar
  • 33
1 vote
0 answers
126 views

Bitcoin core synchronizing gets stuck on block [duplicate]

I have bitcoin core version 25 and the blockchain is fully synchronized. Every 2-3 days I open up core to sync with the newest blocks. When i am syncing the newest blocks from the past few days the ...
John's user avatar
  • 41
1 vote
1 answer
64 views

Is a block without transactions valid: also not including a coinbase?

We know blocks can have one transaction: the coinbase. Some call this an "empty block". But I'd argue technically there is a transaction. Question: is a block WITHOUT A COINBASE a valid ...
Marnix's user avatar
  • 13
7 votes
2 answers
1k views

What is the Block 1,983,702 Problem?

The issue, transition to requiring block height in block coinbases, was discussed back in 2012, however I just stumbled upon it, and would like to understand more about its significance.
BitcoinFanatic's user avatar
2 votes
1 answer
64 views

What are the exact degrees of freedom in finding a valid block?

I am working on an educational project for bitcoin mining. I searched as much as I could but still haven't understood the following questions: What are the "exact" degrees of freedom in ...
Marlex Blank's user avatar
0 votes
1 answer
137 views

processing input tx in bitcoin's block response and obtain transaction value of each input

so i was parsing the block #496 of bitcoin which contains two transactions, first tx in the list is the reward tx and the second tx contains three inputs and one output. i tried to parse each ...
Monte Conte's user avatar
0 votes
0 answers
30 views

NodeJS code to deobfuscate chainstate data

I am currently working on a Blockchain trading platform for a company and I want to have all the unspent output saved to a local database by reading the contents of chainstate folder but I couldn't ...
Topman's user avatar
  • 11
0 votes
2 answers
43 views

Are the blocks produced by different nodes in the network comparable in terms of the order of transactions contained in them?

Having a transaction from person A to B and another transaction from person C to D that both took place in more or less the same time I assume that there might be a situation in which different nodes ...
bridgemnc's user avatar
  • 133
0 votes
2 answers
135 views

What is the format of a Bitcoin block body?

To my understanding, the miners solve the nonce to get a valid block header based on the difficulty target. In the header, you have the Merkle root, which is generated from the transactions included ...
Edile's user avatar
  • 1
3 votes
2 answers
201 views

Are blocks containing non-standard transactions relayed through the network or not as in the case of non-standard transactions?

When a node receives a non-standard transaction (for example, it has more than one OP_return output or has some of the non-standard outputs), it will not be relayed further through the network, ...
dassd's user avatar
  • 1,099
0 votes
1 answer
50 views

What prevents a faster, better-connected node stealing a miner's block solution?

Some questions already adressed similar issues (preventing fraud in a mining pool, what prevents a pool miner for stealing an entire block) but my question is different from those, if I understand ...
totalMongot's user avatar
4 votes
2 answers
587 views

Is there a well defined last block?

It's fairly well known when the last bitcoin will be mined, but is there a well defined last block? By that I mean, is there a block height H after which Bitcoin Core nodes will refuse to accept any ...
Tyler Levine's user avatar
0 votes
2 answers
62 views

Can the price of bitcoin be obtained from the block data?

I am trying to understand the bitcoin block structure and if it's possible to obtain the price of a bitcoin coin from within the bitcoin block itself. If the price of bitcoin is not obtained from the ...
Philoxopher's user avatar
3 votes
1 answer
106 views

How does node discovery and miner discovery work?

I am wondering how nodes discover other nodes and miners, basically, who to broadcast received transactions and blocks to. I'm assuming that when a new node or miner wants to be discovered, it ...
CJ-Programmer's user avatar
1 vote
1 answer
751 views

Read ordinal transaction data

I want to read an ordinal transaction on the Bitcoin blockchain and see its payload data. Say I use the getrawtransaction RPC Method for bitcoin receiving a JSON of the form specified here. Where ...
BAR's user avatar
  • 119
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
5 votes
1 answer
145 views

Can I replace a single corrupted block?

I'm running Bitcoin Core on Linux and it seems I have a single corrupted block file which is causing problems. It's taken me 2 weeks to download 75% of the blockchain, so I'd like to replace the ...
Bob Suruncle's user avatar
9 votes
3 answers
1k views

How many sigops are in the invalid block 783426?

On April 1st 2023 F2Pool mined block 00000000000000000002ec935e245f8ae70fc68cc828f05bf4cfa002668599e4 (full block) which my node failed with bad-blk-sigops. Bitcoin Core stops counting as soon as it ...
Sjors Provoost's user avatar
1 vote
1 answer
64 views

There's any open API to gather the blockNumber data?

Trying to create a scrip to convert wordpress posts/pages date and display it as blockNumber instead. For context, a similar question also posted on this stack. Do anyone knows if there's any open API ...
SuperAtic's user avatar
  • 131
2 votes
1 answer
65 views

python bitcoin_explorer can't read block 761249

I installed bitcoin node, synced up to date. I am using python bitcoin_explorer to read the block data. I can read all blocks, however, I can't read block 761249 I am not sure it's my syncing problem, ...
Lenny's user avatar
  • 21
0 votes
0 answers
36 views

How to display {block number} instead {date value} on Wordpress posts?

Ideally, the goal is to show the block number (ie: 782667) instead of the date value (ie: 26 March 2023 4:44PM CT) on all wordpress posts and pages that currently display it. There's maybe a script we ...
SuperAtic's user avatar
  • 131
1 vote
1 answer
70 views

Reading blk.dat files using pybtc does not yield transactions

I am trying to parse the blk.dat files using pybtc but I can't seem to get this right. f = open(block_filename, "rb") lines = f.readlines() for block in tqdm(lines): ...
bitcoinluvr6969's user avatar
2 votes
1 answer
203 views

How is it resolved when two miners find the block at the same time?

I am new in this world and I am trying to understand some simple concept of Blockchain and the propagation of transaction. Let say that a transaction x is made so from what i understand until now this ...
andrealorenzetti's user avatar
3 votes
1 answer
198 views

Relation between transaction data and transaction id

What is the relationship between transaction data and transaction id (which is used at mempool to generate Merkle root)? Note : when we query the getblock with verbosity 2, we get raw block in json ...
Ali's user avatar
  • 71
-2 votes
1 answer
85 views

Block packets contain tx_in_sig_script, is this shared with tx data from tx packets?

I'm trying to find the signature script that is in a tx message so I can better parse data. I have found that it is in there sometimes, but largely the tx packets don't contain anything in the block ...
bitcoinluvr6969's user avatar
-2 votes
1 answer
149 views

How did Satoshi Nakamoto create the first Bitcoin? The Genesis Block

How did Satoshi Nakamoto create the first Bitcoin? I have never read any statement where he recommends specific tools like CGMiner. You can't mine with the Bitcoin Core software. Actually, Bitcoin ...
user avatar
0 votes
1 answer
168 views

Transaction Wallet-Address extraction

When taking a look at the blk.dat files I am confused about how I would go about getting sender(s) and receiver(s). It is clear to me that if I have multiple inputs / outputs that there might be ...
TheEyeOfAr3s's user avatar
2 votes
1 answer
66 views

Bitcoin P2P network: unable to receive the full block data (witness stripped off)

I wrote a small script to play with the bitcoin P2P network. The script advertises itself as (NODE_NETWORK | NODE_WITNESS), and connects to a full node running on the LAN. Everything seems to work ...
Simon L's user avatar
  • 111
1 vote
1 answer
354 views

Bitcoin chain reorganization

When two blocks are mined and propagated at similar times times causing a fork, how long would a node store a stale chain until considered orphaned? How many blocks (work) are needed on chain I for ...
Yazid's user avatar
  • 13
4 votes
2 answers
203 views

Is it possible to retrieve input addresses and input values of bitcoin transactions from raw blk.dat files?

I'm developing a script that processes blk.dat files from bitcoin core. So far, I am able to retrieve the following attributes for transaction inputs: "vin", "index", "...
Andreas's user avatar
  • 89
0 votes
2 answers
88 views

Transaction blocks vs bitcoins

Sorry if this question is too basic or if it has somehow been answered before... My understanding is that any type of Bitcoin block must be first mined, which applies to transaction confirmations, for ...
Julius Lerm's user avatar
1 vote
1 answer
326 views

How can an attacker change the address to receive someone's reward

At the end of my lecture, my lecturer asked a question that we never had time to cover: A miner creates a block A, which contains address b, on which they want to receive their rewards. An attacker ...
Krzysztof Jaminski's user avatar
0 votes
1 answer
87 views

Exploiting the use of signature?

I've just learned signatures and why they're used in blockchain. As I understand there is a key pair that consist of one public key and one private key: Private keys are used to sign a message(...
BooRuleDie's user avatar
2 votes
1 answer
320 views

Number of transactions per blk.dat files

I am working on a parser for the blk.dat files being returned by the Bitcoin Core node. It seems to slow down considerably after a point and I am pretty sure it's because the number of transactions is ...
Rohan Maheshwari's user avatar

1
2 3 4 5
14