xmr-btc-swap/swap/src/bitcoin
Philipp Hoenisch ee90c228b4
Dynamically calculate fees using electrum's estimate_fee.
Electrum has an estimate-fee feature which takes as input the block you want a tx to be included.
The result is a recommendation of BTC/vbyte.
Using this recommendation and the knowledge about the size of our transactions we compute an appropriate fee.
The size of the transactions were taken from real transactions as published on bitcoin testnet.
Note: in reality these sizes might fluctuate a bit but not for much.
2021-05-07 10:24:41 +10:00
..
cancel.rs Dynamically calculate fees using electrum's estimate_fee. 2021-05-07 10:24:41 +10:00
lock.rs Dynamically calculate fees using electrum's estimate_fee. 2021-05-07 10:24:41 +10:00
punish.rs Dynamically calculate fees using electrum's estimate_fee. 2021-05-07 10:24:41 +10:00
redeem.rs Dynamically calculate fees using electrum's estimate_fee. 2021-05-07 10:24:41 +10:00
refund.rs Dynamically calculate fees using electrum's estimate_fee. 2021-05-07 10:24:41 +10:00
timelocks.rs Greatly reduce load onto the Electrum backend 2021-03-16 19:24:31 +11:00
wallet.rs Dynamically calculate fees using electrum's estimate_fee. 2021-05-07 10:24:41 +10:00