mirror of
https://codeberg.org/nahuhh/wownero
synced 2026-03-05 06:07:35 -05:00
Compare commits
1 Commits
v0.11.3.0
...
getOutputD
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
96a569eb69 |
@@ -2459,19 +2459,22 @@ void Blockchain::get_output_key_mask_unlocked(const uint64_t& amount, const uint
|
||||
bool Blockchain::get_output_distribution(uint64_t amount, uint64_t from_height, uint64_t to_height, uint64_t &start_height, std::vector<uint64_t> &distribution, uint64_t &base) const
|
||||
{
|
||||
// rct outputs don't exist before v4
|
||||
if (amount == 0)
|
||||
{
|
||||
switch (m_nettype)
|
||||
{
|
||||
case STAGENET: start_height = stagenet_hard_forks[3].height; break;
|
||||
case TESTNET: start_height = testnet_hard_forks[3].height; break;
|
||||
case MAINNET: start_height = 0; break;
|
||||
case FAKECHAIN: start_height = 0; break;
|
||||
default: return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
start_height = 0;
|
||||
// if (amount == 0)
|
||||
// {
|
||||
// switch (m_nettype)
|
||||
// {
|
||||
// case STAGENET: start_height = stagenet_hard_forks[3].height; break;
|
||||
// case TESTNET: start_height = testnet_hard_forks[3].height; break;
|
||||
// case MAINNET: start_height = 0; break;
|
||||
// case FAKECHAIN: start_height = 0; break;
|
||||
// default: return false;
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// start_height = 0;
|
||||
|
||||
// rct outputs start at genesis on wow
|
||||
start_height = 0;
|
||||
base = 0;
|
||||
|
||||
if (to_height > 0 && to_height < from_height)
|
||||
|
||||
Reference in New Issue
Block a user