Title: Time of block signing Post by: ArsenShnurkov on January 19, 2013, 10:13:00 PM Does the time to sign the block depend on the length of block?
Title: Re: Time of block signing Post by: kokjo on January 19, 2013, 10:16:09 PM Does the time to sign the block depend on the length of block? blocks are not signed.Title: Re: Time of block signing Post by: ArsenShnurkov on January 19, 2013, 10:20:47 PM blocks are not signed. How to name the operation miners do with the block? Title: Re: Time of block signing Post by: kokjo on January 19, 2013, 10:28:26 PM blocks are not signed. How to name the operation miners do with the block? Miners mine. They are calculating hashes(double sha256). and yes, it takes longer time to hash a bigger block, then a smaller one. but it not much. sha256 can hash 100-200mb/sec, so it takes under a second to build the merkel tree of the transactions. Title: Re: Time of block signing Post by: ArsenShnurkov on January 19, 2013, 10:32:18 PM Ok, let's call this operation "hashing"
and yes, it takes longer time to hash a bigger block, then a smaller one I am not sure in this, because I don't know what is hashed - the whole body of the block or the header (with constant size) of the block only here https://en.bitcoin.it/wiki/Block_hashing_algorithm is written that only header is hashed, and the transactions themself are not needed for obtaining each hash Title: Re: Time of block signing Post by: kokjo on January 19, 2013, 11:00:00 PM Ok, let's call this operation "hashing" and yes, it takes longer time to hash a bigger block, then a smaller one I am not sure in this, because I don't know what is hashed - the whole body of the block, or the header (with constant size) of the block only each transaction is hashed to create a transaction id, all these transactions id are hashed together in a tree, called a merkel tree(http://en.wikipedia.org/wiki/Hash_tree). and root hash of this tree is but in the block header. a block header is always 80 bytes long, and this is what miner are hashing on. this means that every time there comes in a transaction the merkel tree has to be rebuild, but this takes only a small small part of a second to do so, so this is not the problem, and this is done on a mining server. The reason why mining blocks is slow, is that hash are completely random, and you want to get as many 0's as possible(fliping a coin, and trying to get 60 tails in a row). Title: Re: Time of block signing Post by: ArsenShnurkov on January 19, 2013, 11:03:38 PM now it become clear for me
thanks |