Implement sweep all WIP

This commit is contained in:
Blazebrain 2023-06-23 06:08:06 +01:00
parent 3d3bdf3de5
commit 0667e7fdcc

View file

@ -396,8 +396,12 @@ abstract class MoneroWalletBase extends WalletBase<MoneroBalance,
int _getFullBalance() =>
monero_wallet.getFullBalance(accountIndex: walletAddresses.account!.id);
int _getUnlockedBalance() => monero_wallet.getUnlockedBalance(
accountIndex: walletAddresses.account!.id);
int _getUnlockedBalance() {
final unlockedBalance = monero_wallet.getUnlockedBalance(
accountIndex: walletAddresses.account!.id);
print('Unlocked balance within the function: $unlockedBalance');
return unlockedBalance;
}
void _onNewBlock(int height, int blocksLeft, double ptc) async {
print('----------------');