1
0

qt/kivy: show warning when sending tx with high fee/amount ratio

related: #6162
This commit is contained in:
SomberNight
2020-05-15 19:21:28 +02:00
parent 937c0f36ae
commit 7da8c2dfe5
3 changed files with 24 additions and 10 deletions

View File

@@ -33,6 +33,8 @@ FEERATE_STATIC_VALUES = [1000, 2000, 5000, 10000, 20000, 30000,
50000, 70000, 100000, 150000, 200000, 300000]
FEERATE_REGTEST_HARDCODED = 180000 # for eclair compat
FEE_RATIO_HIGH_WARNING = 0.05 # warn user if fee/amount for on-chain tx is higher than this
_logger = get_logger(__name__)