Hi, I've been looking through the source code. How much is a CENT (tx fee) worth and where is it located in the source.
src/util.hline 31-32:
static const int64 COIN = 1000000;
static const int64 CENT = 10000;
Thanks for helping me
Although I'm still unsure what value 10000 has.
Please tell me how to calculate it.
It is not calculated.
per
cent = 1% = 1/100
coin = 1 000 000
coin / 100 = cent
It is simply selected out of the air.(Although perhaps the developer had some reasons for exactly this value, but I do not know them...)
CENT used for:
1)determining low input or not
(src/qt/coincontroldialog.cpp , line 434)
if(amount < CENT)
fLowOutput = true;
2)PoW reward rounded to CENT.
(main.cpp, function int64 GetProofOfWorkReward)
nSubsidy = (nSubsidy / CENT) * CENT;
3) PoS annual interest also rounded to CENT
(main.cpp, function int64 GetProofOfStakeReward)
nRewardCoinYear = min((nRewardCoinYear / CENT) * CENT, MAX_MINT_PROOF_OF_STAKE);
4) In RPC reservebalance, amount rounded to CENT
(rpcwallet.cpp, function Value reservebalance)
nAmount = (nAmount / CENT) * CENT;
5) Maybe I missed the other uses