Package utils
Class WalletTxTracker
java.lang.Object
utils.WalletTxTracker
Tracks wallets which are in sync with the tx pool and therefore whose txs in the pool
do not need to be waited on for up-to-date pool information e.g. to create txs.
This is only necessary because txs relayed outside wallets are not fully incorporated
into the wallet state until confirmed.
TODO monero-project: sync txs relayed outside wallet so this class is unecessary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
reset()
waitForUnlockedBalance
(MoneroWallet wallet, Integer accountIndex, Integer subaddressIndex, BigInteger minAmount) void
waitForWalletTxsToClearPool
(MoneroWallet... wallets) Waits for transactions in the pool belonging to the given wallets to clear.
-
Constructor Details
-
WalletTxTracker
public WalletTxTracker()
-
-
Method Details
-
reset
public void reset() -
waitForWalletTxsToClearPool
Waits for transactions in the pool belonging to the given wallets to clear.- Parameters:
wallets
- have transactions to wait on if in the pool
-
waitForUnlockedBalance
public BigInteger waitForUnlockedBalance(MoneroWallet wallet, Integer accountIndex, Integer subaddressIndex, BigInteger minAmount)
-