Author

Topic: Question about transactions and blocks (Read 672 times)

full member
Activity: 137
Merit: 100
Semi-retired software developer, tech consultant
September 27, 2012, 03:12:58 PM
#3
Transactions are incorporated into blocks, right?

Yes.

Each transaction's hash is incorporate into a hash tree, whose root is stored in the block header.  Every new transaction changes that merkle root.

Quote
That means every transaction that is incorporated into a block will change the block's hash. So let's say a server has just an average speed processor which might take a week or more to generate a block. Does it stop incorporating transactions when it's begun a search for a conforming hash, or does it just keep throwing them in there and changing the nonce as well? Seems like it has to be the latter.

Remember that you don't "lose" any progress, or work, by hashing a different block header, with an updated merkle root.

The probability of finding a hash is the same either way.



Yes, same probability is what I figured, but thanks for verifying that.

legendary
Activity: 1596
Merit: 1100
September 27, 2012, 03:00:10 PM
#2
Transactions are incorporated into blocks, right?

Yes.

Each transaction's hash is incorporated into a hash tree, whose root is stored in the block header.  Every new transaction changes that merkle root.

Quote
That means every transaction that is incorporated into a block will change the block's hash. So let's say a server has just an average speed processor which might take a week or more to generate a block. Does it stop incorporating transactions when it's begun a search for a conforming hash, or does it just keep throwing them in there and changing the nonce as well? Seems like it has to be the latter.

Remember that you don't "lose" any progress, or work, by hashing a different block header, with an updated merkle root.

The probability of finding a hash is the same either way.

full member
Activity: 137
Merit: 100
Semi-retired software developer, tech consultant
September 27, 2012, 02:25:58 PM
#1
Transactions are incorporated into blocks, right? That means every transaction that is incorporated into a block will change the block's hash. So let's say a server has just an average speed processor which might take a week or more to generate a block. Does it stop incorporating transactions when it's begun a search for a conforming hash, or does it just keep throwing them in there and changing the nonce as well? Seems like it has to be the latter.

Can someone clear this up for me? Thanks!!
Jump to: