Skip to content

Commit

Permalink
Update test to resolve rare inconsistency (#1065)
Browse files Browse the repository at this point in the history
Co-authored-by: Prasanna Loganathar <pvl@prasannavl.com>
  • Loading branch information
Bushstar and prasannavl authored Jan 26, 2022
1 parent 532fca7 commit cb25b76
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/txmempool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,8 @@ void CTxMemPool::_clear()
lastRollingFeeUpdate = GetTime();
blockSinceLastRollingFeeBump = false;
rollingMinimumFeeRate = 0;
accountsViewDirty = false;
forceRebuildForReorg = false;
++nTransactionsUpdated;
}

Expand Down
9 changes: 5 additions & 4 deletions test/functional/feature_poolswap.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,18 +258,19 @@ def run_test(self):
# exchange tokens each other should work
self.nodes[0].poolswap({
"from": accountGN0,
"tokenFrom": symbolSILVER,
"tokenFrom": symbolGOLD,
"amountFrom": 200,
"to": accountGN0,
"tokenTo": symbolGOLD,
"tokenTo": symbolSILVER,
"maxPrice": maxPrice,
})
self.nodes[0].generate(1)
self.nodes[0].poolswap({
"from": accountGN0,
"tokenFrom": symbolGOLD,
"tokenFrom": symbolSILVER,
"amountFrom": 200,
"to": accountGN0,
"tokenTo": symbolSILVER,
"tokenTo": symbolGOLD,
"maxPrice": maxPrice,
})
self.nodes[0].generate(1)
Expand Down

0 comments on commit cb25b76

Please sign in to comment.