mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-20 08:38:41 +02:00
MoneroSyncResult does not use pointers
This commit is contained in:
@@ -475,12 +475,8 @@ namespace monero {
|
||||
|
||||
// sync wallet
|
||||
wallet2Listener->onSyncStart(syncStartHeight, listener);
|
||||
|
||||
|
||||
MoneroSyncResult result;
|
||||
result.numBlocksFetched = shared_ptr<uint64_t>(new uint64_t());
|
||||
result.receivedMoney = shared_ptr<bool>(new bool());
|
||||
wallet2->refresh(wallet2->is_trusted_daemon(), syncStartHeight, *result.numBlocksFetched, *result.receivedMoney, true);
|
||||
wallet2->refresh(wallet2->is_trusted_daemon(), syncStartHeight, result.numBlocksFetched, result.receivedMoney, true);
|
||||
wallet2Listener->onSyncEnd();
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user