I understand that PPC charges a larger network fee for a transaction if it uses a large number of inputs. This is because multiple inputs can make the transaction’s size in bytes larger so this is in part an anti spam measure.
Can someone point me to where this is enforced in the PPC code?
I’m keen to find out:
What’s the byte size threshold at which this fee is applied?
How much the fee is and in what ratio is it applied?
How much of this fee is passed to the miner and how much is destroyed?
The number of kilobytes is rounded up. For example:
[ul][li]Any transaction up to 1kb will require 0.01PPC to be destroyed[/li]
[li]Any transaction up to 2kb will require 0.02PPC to be destroyed[/li]
[li]Any transaction up to 3kb will require 0.03PPC to be destroyed[/li][/ul]
Thanks for these links and info. I have a further question:
Does anyone know how the price per multiple of 1000 bytes was arrived at? I.e. what is the overhead of adding each referenced transaction output to the new transaction’s input? I assume it scales linearly?
[quote=“No_2, post:5, topic:3251”]Thanks for these links and info. I have a further question:
Does anyone know how the price per multiple of 1000 bytes was arrived at? I.e. what is the overhead of adding each referenced transaction output to the new transaction’s input? I assume it scales linearly?[/quote]
The only one who could definitively answer that is Sunny King, but I’ve always worked under the belief that it was an educated, but arbitrary decision. 0.01 PPC was a tiny amount when the protocol was launched (and it’s still not a very large amount).
It does scale in a linear fashion.
[quote=“Chronos, post:3, topic:3251”]The number of kilobytes is rounded up. For example:
[ul][li]Any transaction up to 1kb will require 0.01PPC to be destroyed[/li]
[li]Any transaction up to 2kb will require 0.02PPC to be destroyed[/li]
[li]Any transaction up to 3kb will require 0.03PPC to be destroyed[/li][/ul]
a tx has A list of 1 or more transaction inputs or sources for coins.
One txin consists of
TxIn consists of the following fields:
32 Previous output hash (OutPoint)
4 Prevous output index (OutPoint)
1 length of signature script
? signature script (coinbase)
4 Sequence