Can't we change the block data instead of a nonce?

0

In the process of solving a hash puzzle, isn't it possible to change the transaction data instead of changing a nonce?

sflow

Posted 2018-11-02T02:02:24.067

Reputation: 199

Answers

2

It's possible, and this does happen (refered to as extraNonce), but this is orders of magnitude more resource intensive to do, as you need at least the left hand side of the merkle tree, rather than just 64 bytes of the header.

In Bitcoin the nonce is only 32 bits, which means every 4.2 Billion hashes you need to either update the timestamp, or modify the transaction tree to create fresh work. For a standard block today, this is more than 22 SHA256 hash invocations, versus less than one for modifying the nonce alone.

Anonymous

Posted 2018-11-02T02:02:24.067

Reputation: 10 054

1There is also ASICBOOST, one of which modifies the block version bytesJBaczuk 2018-11-02T04:31:44.850

Which is part of the header.Anonymous 2018-11-02T06:00:51.293