mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-12 19:20:42 +02:00
GUI/Options: When changing mempoolreplacement, update settings.json with mempoolfullrbf too
This commit is contained in:
parent
1f15d0d2ee
commit
63b246b956
@ -992,10 +992,13 @@ bool OptionsModel::setOption(OptionID option, const QVariant& value, const std::
|
||||
QString nv = value.toString();
|
||||
if (nv == "never") {
|
||||
node().mempool().m_rbf_policy = RBFPolicy::Never;
|
||||
node().updateRwSetting("mempoolfullrbf", "0");
|
||||
} else if (nv == "fee,optin") {
|
||||
node().mempool().m_rbf_policy = RBFPolicy::OptIn;
|
||||
node().updateRwSetting("mempoolfullrbf", "0");
|
||||
} else { // "fee,-optin"
|
||||
node().mempool().m_rbf_policy = RBFPolicy::Always;
|
||||
node().updateRwSetting("mempoolfullrbf", "1");
|
||||
}
|
||||
gArgs.ModifyRWConfigFile("mempoolreplacement", nv.toStdString());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user