<blockquote>
  <p>"Relayed By"</p>
</blockquote>

<p>Bitcoin Core doesn't track which node relayed a transaction, and I doubt most other nodes do either.  In addition, this information is likely to be different for different nodes as each one may first receive a transaction from a different peer.</p>

<blockquote>
  <p>figure out hash rate of specific mining pool as a % of total in the real time</p>
</blockquote>

<p>Full nodes don't have the information necessary to determine anything about mining in real time as they only receive information about blocks when those blocks are distributed (on average every 10 minutes, but with high variance).  Because block finding is so variable, it's additionally necessary to average results over large numbers of blocks to get reasonably accurate numbers, meaning the statistics you typically see are either trailing actual block production by several days or are probably quite inaccurate.</p>

<p>In addition, miners don't have to identify themselves in the blocks they create, and the way they do optionally identify themselves is not standardized, so no stock full node provides any method for telling you which miner created which block.</p>

CC BY-SA 4.0
2018-05-24T22:04:09.490Z
Are you referring to solo miners?                                                               I was inquiring regarding mining pool?                                            How does blockchain.infor or similar sites figure out which mining pool mined specific block?
Dmitry Savelyev
CC BY-SA 4.0
2018-05-25T11:12:27.947Z
The details apply to both solo miners and mining pools.  Most mining pools add some text to a special field in blocks (called the "coinbase field", not directly related to the company); block explorers like Blockchain.info look at this text and guess which pool created the block.  However, pools don't just put their names there, so you need to guess which pool uses which text, and anyone can put any text they want, so there's no guarantee a particular pool created a block attributed to it.
David A. Harding
CC BY-SA 4.0
2018-05-24T21:43:24.110Z
2018-05-24T21:43:24.110Z
David A. Harding
<p>Block explorer websites will run full node(s) of their own, and then use data obtained by their node(s) to calculate and present much of the info shown on their website. Not all info shown on the block explorer sites is explicitly present in the block data, some may be calculated or inferred by the block explorer website.</p>

<blockquote>
  <p>Relayed By", there was a block that was listed as unknown on blockchain.info and showed as "relayed by" by specific mining pool on btc.com</p>
</blockquote>

<p>This information is not present in the block, so block explorer websites must use another method to determine it. Note that the peer you hear about a new block from is not necessarily the peer that mined that block.</p>

<blockquote>
  <p>Is there a way to figure out hash rate of specific mining pool as a % of total in the real time.</p>
</blockquote>

<p>This information is also not included in a block. </p>

<p>The total amount of hashing power pointed at the network cannot be measured directly, rather it can be calculated by considering the current difficulty, and the rate of block generation. Knowing the total, you can count how many blocks (of the last x blocks) were generated by a certain pool, to estimate that pool's share of the total hashing power over that time frame. </p>

<p>Note that there is no requirement for a miner to put their name on a mined block, but historically many miners have elected to do so. </p>

<p>For these reasons, it is not possible to make a real time measurement of the hashpower controlled by a certain pool, and even the method described above is not guaranteed to be accurate.</p>

CC BY-SA 4.0
2018-05-24T22:15:59.287Z
2018-05-24T22:15:59.287Z
chytrik
<p>There seem to be some discrepancies between blockchain.info and btc.com, specifically I am looking to extract the following info:</p>

<ol>
<li><p>"Relayed By", there was a block that was listed as unknown on blockchain.info and showed as "relayed by" by specific mining pool on btc.com</p></li>
<li><p>Is there a way to figure out hash rate of specific mining pool as a % of total in the real time.</p></li>
</ol>

<mining-pools><blockchain.info><hash>
Can I get the same stats as are on blockchain.info and btc.com by running a full node?
Dmitry Savelyev
# Can I get the same stats as are on blockchain.info and btc.com by running a full node?

(Asked by: username_0 on 2018-05-24)

There seem to be some discrepancies between blockchain.info and btc.com, specifically I am looking to extract the following info:

1. "Relayed By", there was a block that was listed as unknown on blockchain.info and showed as "relayed by" by specific mining pool on btc.com
2. Is there a way to figure out hash rate of specific mining pool as a % of total in the real time.

**Tags:** mining-pools, blockchain.info, hash


---

## 2 answers

### Answer by username_1 on 2018-05-24. Score: 3

> "Relayed By"

Bitcoin Core doesn't track which node relayed a transaction, and I doubt most other nodes do either. In addition, this information is likely to be different for different nodes as each one may first receive a transaction from a different peer.

> figure out hash rate of specific mining pool as a % of total in the real time

Full nodes don't have the information necessary to determine anything about mining in real time as they only receive information about blocks when those blocks are distributed (on average every 10 minutes, but with high variance). Because block finding is so variable, it's additionally necessary to average results over large numbers of blocks to get reasonably accurate numbers, meaning the statistics you typically see are either trailing actual block production by several days or are probably quite inaccurate.

In addition, miners don't have to identify themselves in the blocks they create, and the way they do optionally identify themselves is not standardized, so no stock full node provides any method for telling you which miner created which block.

> **Comments:**
> **username_0**: Are you referring to solo miners?                                                               I was inquiring regarding mining pool?                                            How does blockchain.infor or similar sites figure out which mining pool mined specific block?  
> **username_1**: The details apply to both solo miners and mining pools.  Most mining pools add some text to a special field in blocks (called the "coinbase field", not directly related to the company); block explorers like Blockchain.info look at this text and guess which pool created the block.  However, pools don't just put their names there, so you need to guess which pool uses which text, and anyone can put any text they want, so there's no guarantee a particular pool created a block attributed to it.  

---

### Answer by username_2 on 2018-05-24. Score: 2

Block explorer websites will run full node(s) of their own, and then use data obtained by their node(s) to calculate and present much of the info shown on their website. Not all info shown on the block explorer sites is explicitly present in the block data, some may be calculated or inferred by the block explorer website.

> Relayed By", there was a block that was listed as unknown on blockchain.info and showed as "relayed by" by specific mining pool on btc.com

This information is not present in the block, so block explorer websites must use another method to determine it. Note that the peer you hear about a new block from is not necessarily the peer that mined that block.

> Is there a way to figure out hash rate of specific mining pool as a % of total in the real time.

This information is also not included in a block.

The total amount of hashing power pointed at the network cannot be measured directly, rather it can be calculated by considering the current difficulty, and the rate of block generation. Knowing the total, you can count how many blocks (of the last x blocks) were generated by a certain pool, to estimate that pool's share of the total hashing power over that time frame.

Note that there is no requirement for a miner to put their name on a mined block, but historically many miners have elected to do so.

For these reasons, it is not possible to make a real time measurement of the hashpower controlled by a certain pool, and even the method described above is not guaranteed to be accurate.


---

