mirror of
https://github.com/oxen-io/oxen-core.git
synced 2023-12-14 02:22:56 +01:00
ONS tests - allow for extra burn in certain situations
The ONS burn price was lowered in HF 18 and the testnet has transactions that are over the adjusted price. The codebase allows for transactions already on testnet but in process broke the test suite. See PR #1441 for further details
This commit is contained in:
parent
6d189d2ab0
commit
e21fe25d51
|
@ -2549,10 +2549,15 @@ bool oxen_name_system_wrong_burn::generate(std::vector<test_event_entry> &events
|
|||
else burn += 1;
|
||||
|
||||
cryptonote::transaction tx = gen.create_oxen_name_system_tx(miner, gen.hardfork(), type, name, value, nullptr /*owner*/, nullptr /*backup_owner*/, burn);
|
||||
if (new_hf_version == cryptonote::network_version_18 && !under_burn && new_height < 524'000)
|
||||
{
|
||||
gen.add_tx(tx, true /*can_be_added_to_blockchain*/, "Wrong burn for a ONS tx but workaround for testnet", true /*kept_by_block*/);
|
||||
} else {
|
||||
gen.add_tx(tx, false /*can_be_added_to_blockchain*/, "Wrong burn for a ONS tx", false /*kept_by_block*/);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue