Bitcoin Forum

Bitcoin => Mining => Topic started by: Geremia on June 16, 2015, 09:25:25 PM



Title: How does the getblocktemplate request rate correlate with a miner's hashrate?
Post by: Geremia on June 16, 2015, 09:25:25 PM
What is the relationship between a miner's hashrate and the getblocktemplate (GBT) (https://en.bitcoin.it/wiki/Getblocktemplate) request rate?

(The question "How does the rate of getwork requests correlate with the hashrate of a miner? (http://bitcoin.stackexchange.com/q/3427/4334)" discusses getwork (https://en.bitcoin.it/wiki/Getwork), but that's outdated.)

(cf. the related Bitcoin StackExchange question (https://bitcoin.stackexchange.com/q/38026/4334))


Title: Re: How does the getblocktemplate request rate correlate with a miner's hashrate?
Post by: -ck on June 16, 2015, 09:31:42 PM
It makes absolutely no difference to the hashrate since work generation is done on the miner. The frequency of getblocktemplate requests correlates with the amount of transactions you are likely to include from the current set of transactions. The more frequently you do it, the more transactions on average you will have. It is the pool/pool software that determines the frequency of GBT requests. Stratum stipulates updates should occur every minute and usually the pool software will have an updated set of transactions along with each stratum update, but there is nothing stopping the pool from just sending the old set of transactions every minute. Most pools send out a new set of transactions every minute; p2pool does not, usually waiting longer, and ckpool defaults to doing it every 30 seconds which is why the ckpool instances out there have more transactions on average (it also NEVER generates transaction free work templates).