-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transaction fees and dust values #2
Comments
ping? :) |
ping? :\ |
last ping :) |
Question 1: In FairCoin we don't have the fee competition. So both values are the same. But the reference to REFERENCE_DEFAULT_MIN_TX_FEE make more sense because in FairCoin higher fees will also accepted but lower fees not. MIN_NONDUST_OUTPUT, here I have found a good explanation in the bitcoinj In my opinion it is the same calculation as the fee. So I would remove the .multiply(3) Question 2: In my opinion the value should be ( minimum tx size * 0.008 / 1000 ) = 192 * 0.008 / 1000 = 153600satFAIR I have used 192bytes in the calculation because I have found this size in the faircoin blockchain single tx. |
So this doesn't apply to PoC algorithm. Right? As any transaction in the block is confirmed and there is no way to have a fork in the blockchain, because CVNs always need to agree before posting the block.
FYI: There are some clients that calculate different fees than others. I have posted in telegram some examples of such blocks in the past. So we may need to describe exactly how the fees should be calculated. |
I have found this in the faircoin sources. https://github.com/faircoin/faircoin/blob/master/src/primitives/transaction.h#L138
the GetFee method is defined here the GetSerializeSize here
This would be the same ratio as in bitcoin ( dust/fee 546/1000 ) |
Nice! That might be something! Thanks again! :) |
TransactionOutput::getMinNonDustValue()
defines "the minimum value for this output to be considered "not dust"" as
(Transaction::REFERENCE_DEFAULT_MIN_TX_FEE * 3) * (33 + 148)
where (33 + 148) is the size of the transaction's output in bytes and requires an input of 148 bytes as seen at
TransactionOutput::getMinNonDustValue(Coin)
Faircoin's current blockchain parameters define a Transaction fee equal to 0.008 FAIR.
Question 1: Does it refer to Transaction::REFERENCE_DEFAULT_MIN_TX_FEE or to Transaction::DEFAULT_TX_FEE ???
The blockchain parameters also define a Dust threshold equal also to 0.008 FAIR which I guess refers to Transaction::MIN_NONDUST_OUTPUT. Right?
Question 2: I am not sure how is this connected to the TransactionOutput::getMinNonDustValue() above. In bitcoin branch Transaction::MIN_NONDUST_OUTPUT and the output of TransactionOutput::getMinNonDustValue() are about the same. In faircoin's branch I fail to see how are these related. :\
The text was updated successfully, but these errors were encountered: