Skip to content

Commit

Permalink
adds impact of mempool on other network aspects
Browse files Browse the repository at this point in the history
  • Loading branch information
staheri14 committed Sep 28, 2023
1 parent 4f5fd86 commit 50405c9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions blockchain/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,21 @@ In a network, with transaction rate `transaction_rate` and a node with `d` degre
`traffic_rate (=incoming_traffic_rate + outgoing_traffic_rate) = d * transaction_rate`



### Impact of mempool on other network aspects
- **Block size**: One immediate impact of mempool, is the size of mempool on the block size. Clearly, block size can not exceed the mempool size. In the current setting, the mempool size is at max `7.897 MB` meaning Celestia blocks can get as large as that (excluding block header).
- **Network throughput**: Desired network transaction throughput `max_network_tx_throughput` in bytes/sec
is capped by the `block_size` and `block_time` as follows:
`max_network_tx_throughput = block_size / block_time`

For a node, in order to be able to handle this throughput in the worst case,
the node will undertake the following traffic:
`itr = d * max_network_tx_throughput`
`otr = d * max_network_tx_throughput`

So the minimum bandwidth requirement for a node, just due to the mempool
operation is, `2* d * max_network_tx_throughput` for download and upload.

If we set the bw requirement to `bw_limit`, then the `nextwork_tx_throughput`
is at most `bw_limit / d` bytes/sec.

0 comments on commit 50405c9

Please sign in to comment.