tendermint/peer/README.md

88 lines
1.7 KiB
Markdown
Raw Normal View History

2014-06-24 23:49:06 -07:00
## Channel ""
2014-06-24 23:58:38 -07:00
<table>
<tr>
2014-06-25 11:40:26 -07:00
<td><b>Filter</b></td>
2014-06-24 23:58:38 -07:00
<td>None</td>
</tr>
<tr>
2014-06-25 11:40:26 -07:00
<td><b>Message</b></td>
2014-06-24 23:58:38 -07:00
<td>
<ul>
<li>RefreshFilterMsg</li>
<li>PeerExchangeMsg</li>
</ul>
</td>
</tr>
</table>
2014-06-24 23:49:06 -07:00
## Channel "block"
2014-06-24 23:58:38 -07:00
<table>
<tr>
2014-06-25 11:40:26 -07:00
<td><b>Filter</b></td>
<td>
Custom<br/>
Nodes should only advertise having a header or block at height 'h' if it also has all the headers or blocks less than 'h'. Thus this filter need only keep track of two integers -- one for the most recent header height 'h_h' and one for the most recent block height 'h_b', where 'h_b' &lt;= 'h_h'.
</td>
2014-06-24 23:58:38 -07:00
</tr>
<tr>
2014-06-25 11:40:26 -07:00
<td><b>Messages</b></td>
2014-06-24 23:58:38 -07:00
<td>
<ul>
<li>RequestMsg</li>
<li>BlockMsg</li>
<li>HeaderMsg</li>
</ul>
</td>
</tr>
</table>
2014-06-24 23:49:06 -07:00
## Channel "mempool"
2014-06-24 23:58:38 -07:00
<table>
<tr>
2014-06-25 11:40:26 -07:00
<td><b>Filter</b></td>
2014-06-24 23:58:38 -07:00
<td>
Bloom filter (n:10k, p:0.02 -> k:6, m:10KB)<br/>
Refreshes every new block
</td>
</tr>
<tr>
2014-06-25 11:40:26 -07:00
<td><b>Messages</b></td>
2014-06-24 23:58:38 -07:00
<td>
<ul>
<li>MempoolTxMsg</li>
</ul>
</td>
</tr>
</table>
## Channel "consensus"
<table>
<tr>
2014-06-25 11:40:26 -07:00
<td><b>Filter</b></td>
2014-06-24 23:58:38 -07:00
<td>
Bitarray filter<br/>
Refreshes every new consensus round
</td>
</tr>
<tr>
2014-06-25 11:40:26 -07:00
<td><b>Messages</b></td>
2014-06-24 23:58:38 -07:00
<td>
<ul>
<li>ProposalMsg</li>
<li>VoteMsg</li>
<li>NewBlockMsg</li>
</ul>
</td>
</tr>
</table>
2014-06-24 23:49:06 -07:00