mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Merge ElementsProject/elements#1041: re-enable fallbackfee by default
1204b91c2dre-enable fallbackfee by default (Andrew Poelstra) Pull request description: Upstream disabled the default `fallbackfee` option in 0.17, which caused us some user error reports in 0.18. Re-enable the option in 0.21. ACKs for top commit: stevenroose: utACK1204b91c2dTree-SHA512: 62d053405c00f5ca31ae3fb24ab8def2c9e3bd52909dfac57e65224947295a56f0b8a322ffeb0dfcdcb3103fcaf310a9554f3ed3a8490859ca82aaeae26c7fb2
This commit is contained in:
commit
ade32378c1
1 changed files with 3 additions and 0 deletions
|
|
@ -4916,6 +4916,9 @@ std::shared_ptr<CWallet> CWallet::Create(interfaces::Chain& chain, const std::st
|
|||
_("This is the transaction fee you may pay when fee estimates are not available."));
|
||||
}
|
||||
walletInstance->m_fallback_fee = CFeeRate(nFeePerK);
|
||||
} else {
|
||||
// ELEMENTS: re-enable fallbackfee at 0.1 sat/byte
|
||||
walletInstance->m_fallback_fee = CFeeRate(100);
|
||||
}
|
||||
// Disable fallback fee in case value was set to 0, enable if non-null value
|
||||
walletInstance->m_allow_fallback_fee = walletInstance->m_fallback_fee.GetFeePerK() != 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue