wallet: do not try to use rct txes a few blocks before the fork

This commit is contained in:
moneromooo-monero
2016-07-27 21:18:08 +01:00
parent 1bf069825b
commit c27194a444
3 changed files with 31 additions and 22 deletions
+2 -2
View File
@@ -235,7 +235,7 @@ namespace tools
try
{
uint64_t mixin = req.mixin;
if (mixin < 2 && m_wallet.use_fork_rules(2)) {
if (mixin < 2 && m_wallet.use_fork_rules(2, 10)) {
LOG_PRINT_L1("Requested mixin " << req.mixin << " too low for hard fork 2, using 2");
mixin = 2;
}
@@ -309,7 +309,7 @@ namespace tools
try
{
uint64_t mixin = req.mixin;
if (mixin < 2 && m_wallet.use_fork_rules(2)) {
if (mixin < 2 && m_wallet.use_fork_rules(2, 10)) {
LOG_PRINT_L1("Requested mixin " << req.mixin << " too low for hard fork 2, using 2");
mixin = 2;
}