Skip to content

Commit

Permalink
Clear pending queue after refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
bbedward committed Jan 19, 2021
1 parent a6368ad commit 4e66eae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/appstate_container.dart
Expand Up @@ -584,6 +584,7 @@ class StateContainerState extends State<StateContainer> {
sl.get<AccountService>().processQueue();
// Receive pendings
if (pending) {
pendingRequests.clear();
PendingResponse pendingResp = await sl.get<AccountService>().getPending(wallet.address, max(wallet.blockCount ?? 0, 10), threshold: receiveMinimum);
// Initiate receive/open request for each pending
for (String hash in pendingResp.blocks.keys) {
Expand Down

0 comments on commit 4e66eae

Please sign in to comment.