mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-17 15:21:30 +02:00
offset wallet2 get_payments() min_height by -1 because it's exclusive
This commit is contained in:
@@ -1308,6 +1308,7 @@ namespace monero {
|
||||
// build parameters for wallet2->get_payments()
|
||||
uint64_t minHeight = txReq.minHeight == boost::none ? 0 : *txReq.minHeight;
|
||||
uint64_t maxHeight = txReq.maxHeight == boost::none ? CRYPTONOTE_MAX_BLOCK_NUMBER : min((uint64_t) CRYPTONOTE_MAX_BLOCK_NUMBER, *txReq.maxHeight);
|
||||
if (minHeight > 0) minHeight--; // TODO monero core: wallet2::get_payments() min_height is exclusive, so manually offset to match intended range (https://github.com/monero-project/monero/issues/5751)
|
||||
boost::optional<uint32_t> accountIndex = boost::none;
|
||||
if (request.accountIndex != boost::none) accountIndex = *request.accountIndex;
|
||||
std::set<uint32_t> subaddressIndices;
|
||||
|
||||
Reference in New Issue
Block a user