PoC-Consortium / burstcoin-mobile

Burstcoin mobile wallet for Android and iOS https://play.google.com/store/apps/details?id=org.icewave.burstcoinwallet
GNU General Public License v3.0
21 stars 20 forks source link

Equip the wallet with an "optimum fee guesser" #44

Closed rico666 closed 6 years ago

rico666 commented 6 years ago

The mobile wallet should suggest the optimum fee for a transaction to make sure - with sufficient confidence - that transaction gets incorporated in the next block (or into one of the next blocks) - certainly before the tx timeout runs out.

Having a fixed tx fee is problematic, because it may be too low in high traffic conditions and too high in low traffic times.

The guesser could look at the average fill of the past 10 blocks and use the median of transactions * FEE_QUANT for a good approximation of the optimum fee.

rico666 commented 6 years ago

Wait for https://github.com/PoC-Consortium/burstcoin/issues/360 as it will simplify the job greatly.

rico666 commented 6 years ago

And done: https://github.com/PoC-Consortium/burstcoin/pull/361

Robust implementation would be:

(the user can edit the fee always)