New answers tagged

2 votes

Where Is Signature Data Stored In Post-SegWit Transactions?

From the perspective of new post-segwit nodes, the witness data is part of the transaction data. It is serialized in a new field, after all the transaction outputs, before the locktime field. However, ...
user avatar
0 votes

What's the logic behind the way block proofs (in GetBlockProof) is calculated?

Any block, no matter how low its block hash is, contributes the same amount of work. This work depends on the current difficulty, as an average expected amount of work that should be performed to find ...
user avatar
6 votes
Accepted

How are validity flags in block index set in concurrent blocks when one of them is chosen?

What will happen to the index entry for the abandoned block? Nothing. The block index contains information about the available blocks and branches, and their validity. It does not contain any ...
user avatar
6 votes
Accepted

Does local blockchain database (blkXXXXX.dat) contain abandoned forks forever?

When my node realizes that the given block needs to be abandoned - does it leave it in the database or replace the block with a valid one? It remains on disk along with its entry in the block index ...
user avatar
  • 61.3k
3 votes

How are TXIDs determined from the raw hex data of a block? Also, what is the coinbase transaction?

Its a double SHA256 hash of the binary transaction data See https://go.dev/play/p/PDURm9NTLYm for a worked example using your data. package main import ( "crypto/sha256" "...
user avatar
2 votes
Accepted

How are TXIDs determined from the raw hex data of a block? Also, what is the coinbase transaction?

Transaction ID (TXID) are determined by a double SHA256 hash of the transaction data, but represented in little-endian. For example, the transaction data of the coinbase transaction is: ...
user avatar
6 votes
Accepted

What are the components of the raw block shown in this image?

The diagram is wrong The data in the gap between the two brackets is the count of transactions and most of the first coinbase transaction. The brackets are positioned incorrectly. Various components ...
user avatar
1 vote

Is there a way to know how many of currently unconfirmed transactions in the MemPool is currently being attempted by other miners?

No one cares (about what other miners are exactly working on) Miners have no way of knowing the contents of block templates being used by other independent miners. There is nothing in the Bitcoin ...
user avatar

Top 50 recent answers are included