Skip to main content
28 votes

What is TxIn's sequence?

Note that the accepted answer is outdated. Currently, sequence numbers are mainly used for signaling RBF - replace-by-fee - that allows you to resend a transaction with a higher fee. See https://...
Karel Bílek's user avatar
  • 2,715
13 votes
Accepted

Why is there a 5 days gap between genesis and block 1?

While the Genesis block is timestamped 3rd of January, the hash of the Genesis block is astonishingly low. It has been theorized that Satoshi set himself a more challenging target for the Genesis ...
Murch's user avatar
  • 77.8k
10 votes

Why can’t the genesis block coinbase be spent?

How would you change it to allow it to be spent? In order to make the coinbase spendable, the following changes have to be made to validation.cpp (v0.16.2). Note: as mentioned this would be ...
JBaczuk's user avatar
  • 7,428
8 votes
Accepted

What is Bitcoin's "genesis hash"?

They're exactly the same number; one is written in little endian notation and the other is big endian. Notice that the bytes (two-hex-digit pairs) are exactly reversed from one to the other. Block ...
Nate Eldredge's user avatar
7 votes
Accepted

Blocks from before the genesis block

The design of the blockchain is such that such a scenario is not possible. By definition, the genesis block does not have an ancestor block. While it has a field for the previous block hash, this ...
Ava Chow's user avatar
  • 72.2k
6 votes

RPC getblockstats call using genesis block

This occurs because the genesis block is a special block. It is not written to disk like all other blocks are. It cannot be undone so there is no undo data for it. getblockstats uses the undo data (...
Ava Chow's user avatar
  • 72.2k
5 votes
Accepted

What are all the small transactions in Satoshi's address?

Of course, because Bitcoin is (mostly) anonymous, we can't know for sure who has been sending these, let alone their reasons. But some guesses: People donating money to Satoshi, since it's known to ...
Nate Eldredge's user avatar
5 votes
Accepted

Where is debug.log file in Bitcoin source code?

On Unix systems the debug.log file, as well as all other files created by the client (blockchain data, databases, etc) are placed by default in ~/.bitcoin; that is, a subdirectory of your home ...
Nate Eldredge's user avatar
4 votes
Accepted

How to create a new genesis block using CreateGenesisBlock() function

The genesis block still must meet the proof of work requirements that other blocks must also meet. So you must actually mine the genesis block. To do this, you need to put CreateGenesisBlock in a ...
Ava Chow's user avatar
  • 72.2k
4 votes
Accepted

How to read the transaction of a block?

The transaction, like the block, is in a serialized format. A description of the format is available on bitcoin.org
Ava Chow's user avatar
  • 72.2k
4 votes

Why do we need a genesis block?

I think your misunderstanding is in the assumption that the genesis block must be a block. There is no need for that. For all we care the genesis block is just a specific hash that is used as ...
Pieter Wuille's user avatar
4 votes
Accepted

Altcoin Genesis block fails after changing block reward

Looks like amount is a part of block information influencing hashes. Try to debug or log resulting hashes before assert: logging.info("Genesis Block Hash " + consensus.hashGenesisBlock); logging.info(...
Oleksandr Stepaniuk's user avatar
4 votes
Accepted

How is PSZ Timestamp encoded in Bitcoin core code?

04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b73 The above is actually Bitcoin Script, not ...
Raghav Sood's user avatar
  • 17.3k
4 votes
Accepted

Why is the scriptSig formatted this way in the Genesis Block (inside function CreateGenesisBlock)

The scriptSig field of a coinbase transaction is special. It doesn't need any signatures at all, as no coins are being spent. The ability to produce new coins, which that input represents, is inherent ...
Pieter Wuille's user avatar
4 votes

How did Satoshi Nakamoto mine 50 bitcoins by creating genesis block? And where can I see blockchain?

The blockchain is the shared journal of all transactions on the network. Mining is the process which authors new blocks to extend the blockchain. Miners do not need unconfirmed transactions to create ...
Murch's user avatar
  • 77.8k
4 votes
Accepted

How did the first transactions take place without balances?

The coinbase transaction in each block creates new coins and as a result does not require any pre-existing balances. You can accept new coins in an address even if you have no balance. The fact that ...
Mike D's user avatar
  • 3,589
3 votes

Can malicious peer hack freshly installed bitcoin-core node

Does freshly installed bitcoin-core node have genesis block included in the installation? Yes. This fresh node contacts some peer for downloading blockchain. Can malicious peer give node wrong ...
David Schwartz's user avatar
3 votes
Accepted

How we decode output address from Bitcoin genesis transaction

This is a pay-to-pubkey (P2PK) script, where the transaction contains the destination public key itself. These were common in the early days of Bitcoin, and were originally the type of script that ...
Nate Eldredge's user avatar
3 votes
Accepted

New params of chainparams.cpp. What put on them and how generate?

uint256S("00000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); //what this do ? end what put to here The first line describes a minimum difficulty. consensus....
Nick ODell's user avatar
  • 29.5k
3 votes

Is the transaction within Genesis block spendable?

Are the transactions added to the genesis block spendable, just like any other transactions from other blocks, or is that an unspendable coinbase transaction. Transactions aren't spendable; ...
Pieter Wuille's user avatar
3 votes

What would be the easiest way to test the submitblock method?

regtest is the test network best suited for this kind of testing. While it does still have a PoW requirement, the work required is basically negligible. It also does not do retargeting so the ...
Ava Chow's user avatar
  • 72.2k
3 votes
Accepted

Why is the full blockchain required, effectively forever?

How likely is it that some block from 1 year ago later turns out to be invalid? Very unlikely, but I think that isn't the problem. The problem is, how does a new user find out the current state (UTXO ...
RedGrittyBrick's user avatar
3 votes
Accepted

Meaning of SigScript in Satoshi Nakamoto's "Genesis" coinbase transaction

What is this bytes sequence: 04ffff001d0104 Non-functional data that probably only has meaning to the miner? See What is the coinbase? where Murch answers The coinbase transaction can have an ...
RedGrittyBrick's user avatar
2 votes

What is the public key used to generate the Genesis block?

As a great answer to a related question points out: "merkle root of the genesis block is equal to the hash of the transaction in it" How do I compute merkle root for genesis block?
Tearo Dactyl's user avatar
2 votes

Before Mining Genesis Block

2014 methods no longer work. 2017 Bitcoin / Litecoin codebase update http://practicecoin.com/index.php/2017/04/19/genesis-block/ Every cryptocurrency derived from Bitcoin has a Genesis Block, the ...
Tearo Dactyl's user avatar
2 votes

How to find details about very first block mined for any crypto?

If you have an altcoin's node software and that software is based off of Bitcoin Core, then you can use the following RPC commands to get information about the genesis block: getblockhash 0 This ...
Ava Chow's user avatar
  • 72.2k
2 votes

How to read the transaction of a block?

I have got this resource for you may be this could be useful: https://bitfalls.com/2017/10/03/read-bitcoin-blockchain-data-blockexplorer/
saikumar02's user avatar
2 votes

Altcoin (Litecoin fork) creation. No synchronisation

remove the chainTxData chainTxData = ChainTxData{ 0, 0, 0 }; and make sure also that your first block is mined soon after the genesis time.
Alex's user avatar
  • 121
2 votes
Accepted

How to Create New Genesis Block?

genesis.GetHash(""); This is incorrect. GetHash does not take a parameter, as said in the compiler error. This should just be genesis.GetHash();. I have checked the debug.log but i dont see new ...
Ava Chow's user avatar
  • 72.2k
2 votes

Why does the Genesis block coinbase input script push bits and the value 0x04 before the famous "Chancellor" message?

I found some more information on the Wiki: Generations have a single input, and this input has a "coinbase" parameter instead of a scriptSig. The data in "coinbase" can be anything; it isn't used. ...
Rich Apodaca's user avatar
  • 2,431

Only top scored, non community-wiki answers of a minimum length are eligible