Function bee_message::output::dust_outputs_max[][src]

pub fn dust_outputs_max(dust_allowance_sum: u64) -> u64
Expand description

The maximum number of allowed dust outputs on an address is dust_allowance_sum divided by DUST_ALLOWANCE_DIVISOR and rounded down, i.e. 10 outputs for each 1 Mi deposited. dust_allowance_sum is the sum of all the amounts of all unspent SigLockedDustAllowanceOutputs on this address. Regardless of dust_allowance_sum, the number of dust outputs must never exceed DUST_OUTPUTS_MAX per address.