Author

Topic: Set percent fees of amount (Read 506 times)

legendary
Activity: 1008
Merit: 1000
December 31, 2014, 05:22:00 PM
#7
i was thinking about this but was unable to do this
i hope some expert in coding will post a solution for this

also make sure there is a minimum fees also
and as tx fee 2% or minimum is charged which of them is higher

So you want 2% to go directly into the next Block? sounds like a lucky payday for whoever mines that Block.

I've looked into this quite a bit and would only really be possible if you can average out the fees over a large number of Blocks, also you need to take into account the actual cost of the transaction in terms of the amount of data it adds to the Blockchain.

A Coin called FractalCoin tried to implement this but the Coin was abandoned pretty early on and so it didn't progress.
i m not saying that it will 2%, it was just an example
also there should be a minimum and maximum tx fees cap limit
legendary
Activity: 882
Merit: 1024
December 31, 2014, 02:10:52 PM
#6
This could only be achievable with a POS only Coin, if it were POW only (as in the case of FractalCoin), it would quickly collapse the price. If using POW/POS where Stakers claimed fees but POW destroyed fees then POW could hurt the total liquidly of the active Coins.

2% is also way too much, often you need to move around your Coins to other wallets or combine your inputs into larger Blocks and if you own a lot of Coins, that can be a large amount of fees.

Storage is the real cost of the Blockchain and it's why fees are charged as a constant per kb of data added to the Blockchain. If you step away from that and charge as a percentage of the transaction (or minimum whichever is higher), you may break the cycle of reward as a small holder may Stake the next Block and gain a massive amount of Coins in fees.

The way I could think to combat this is if you could average all the fees over a large timespan such as 1-2 weeks. Let's say the timespan is 10,000 Blocks and there is a large % transaction that includes 10,000 Coins in fees, it would then add 1 Coin to the Base Block Reward for the next 10,000 Blocks. Then in the next Block is another 10,000 Coins in fees so that adds another 1 Coin to the Base Block reward for the next 10,000 Blocks and so the base reward is now 2 Coins for the next 9,999 Blocks and 1 Coin at Block 10,000 and then this goes on and on.

The issue I've encountered here is that there is no real mechanism to average out the Fees over a large timespan, POS bases everything on the last Block seen. You also don't want the process to create transactions for the Fee rewards every Block as that would create a unbelievable amount of Bloat. You would also need to take into account the actual cost of the transaction in accounting for the Fees charged (the amount of inputs combined into the transaction).

I guess what I'm trying to say is that the first step isn't about being able to charge Fees as a percent of transaction, but being able to average out those Fees over a long period without adding a lot of extra data to the Blockchain.
member
Activity: 72
Merit: 10
December 31, 2014, 06:04:02 AM
#5
Thank you for your information, I wanted to discourage large transaction and establish a system based on the Reward on fees,

My system is used in small community
legendary
Activity: 882
Merit: 1024
December 31, 2014, 05:45:47 AM
#4
i was thinking about this but was unable to do this
i hope some expert in coding will post a solution for this

also make sure there is a minimum fees also
and as tx fee 2% or minimum is charged which of them is higher

So you want 2% to go directly into the next Block? sounds like a lucky payday for whoever mines that Block.

I've looked into this quite a bit and would only really be possible if you can average out the fees over a large number of Blocks, also you need to take into account the actual cost of the transaction in terms of the amount of data it adds to the Blockchain.

A Coin called FractalCoin tried to implement this but the Coin was abandoned pretty early on and so it didn't progress.
member
Activity: 72
Merit: 10
December 31, 2014, 05:25:31 AM
#3
Can you give me the variable that contains Send amount ?
legendary
Activity: 1008
Merit: 1000
December 31, 2014, 05:18:30 AM
#2
i was thinking about this but was unable to do this
i hope some expert in coding will post a solution for this

also make sure there is a minimum fees also
and as tx fee 2% or minimum is charged which of them is higher
member
Activity: 72
Merit: 10
December 31, 2014, 05:15:47 AM
#1
Hi,

I need help for set percent fees of amount.

how i can change my code for that ?

/** Fees smaller than this (in satoshi) are considered zero fee (for transaction creation) */
int64 CTransaction::nMinTxFee = 100000;
/** Fees smaller than this (in satoshi) are considered zero fee (for relaying) */
int64 CTransaction::nMinRelayTxFee = 100000;


I want replace "nMinTxFee = 100000" to 2 % of amount

Thank you

Best Redargs
Jump to: