SkycoinProject / docs

3 stars 0 forks source link

Create document explaining transaction rate #14

Open vidya88 opened 4 years ago

vidya88 commented 4 years ago

@gz-c commented on Mar 6, 2018

Transaction rate is ultimately limited by computational power and bandwidth, but there are two parameters that control the rate the network operates at:

These parameters are adjustable.

Transactions have variable byte size, so the block size measured in number of transactions is also variable.

If the total size of transactions in the unconfirmed pool exceeds the max block size at the time of block creation, the transactions are prioritized by the number of coin hours destroyed per byte.

Given the current parameters of 10 seconds and 32kB per block, the max transaction rate can be calculated by using the smallest possible transaction size (a transaction with one input and one output). The actual transaction rate will be less, since transactions will often have multiple inputs and two outputs (an additional output for change), increasing the average transaction size.