decred / tinydecred

Python tools for Decred
ISC License
27 stars 14 forks source link

app: Add relay fee setting #152

Closed JoeGruffins closed 4 years ago

JoeGruffins commented 4 years ago

Add a relay fee to settings and allow changing. The fee is not yet used.

In an attempt to keep prs small, this only adds the setting, it does not use it.

Related to #28

JoeGruffins commented 4 years ago

Here is a graph using https://github.com/JoeGruffins/pyscripts/blob/master/plotfees/main.py and looking at the last 10004 transactions on mainnet.

This graph uses 1e4 as the standard rate and multiples of that rate. i.e. 1e4 rates are shown as 1 on the x axis and 1e4 * 10 would be a 10. Rates near 400 are paying 400 times the default rate (actually a flat rate of 0.01dcr). y axis is number of instances.

fees

1047 or 10% of transactions used a fee higher than the default.

There are barely any low fee transactions. Only 9 in the set. But those that did pay a low fee paid 4000 a/kb fee.

The majority of high fee's came from 10 ~ 15 times the default. 198 cases or 19% of those that paid high fees at all. Of these the average was 114000 a/kb.

As such I think it makes sense for the low fee to be 4000 a/kb and high fee to be 114,000 a/kb.

JoeGruffins commented 4 years ago

Radio buttons: radio