Skip to content

Commit

Permalink
suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
ogabrielides committed Dec 20, 2023
1 parent c4155c2 commit 0bd48aa
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions test/functional/feature_asset_locks.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,13 +332,7 @@ def run_test(self):
assert "assetUnlockTx" in node.getrawtransaction(txid, 1)

indexes_statuses = self.nodes[0].getassetunlockstatuses(["101", "102", "300"])
self.log.info(f'{indexes_statuses}')
assert any('101' in d for d in indexes_statuses)
assert_equal(next((d['101'] for d in indexes_statuses if '101' in d), None), "mempooled")
assert any('102' in d for d in indexes_statuses)
assert_equal(next((d['102'] for d in indexes_statuses if '102' in d), None), None)
assert any('300' in d for d in indexes_statuses)
assert_equal(next((d['300'] for d in indexes_statuses if '300' in d), None), None)
assert_equal([{'101': 'mempooled'}, {'102': None}, {'300': None}], indexes_statuses)

self.mempool_size += 1
self.check_mempool_size()
Expand Down Expand Up @@ -513,13 +507,7 @@ def run_test(self):
self.sync_all()

indexes_statuses = self.nodes[0].getassetunlockstatuses(["101", "102", "103"])
self.log.info(f'{indexes_statuses}')
assert any('101' in d for d in indexes_statuses)
assert_equal(next((d['101'] for d in indexes_statuses if '101' in d), None), "mined")
assert any('102' in d for d in indexes_statuses)
assert_equal(next((d['102'] for d in indexes_statuses if '102' in d), None), "mined")
assert any('103' in d for d in indexes_statuses)
assert_equal(next((d['103'] for d in indexes_statuses if '103' in d), None), None)
assert_equal([{'101': 'mined'}, {'102': 'mined'}, {'103': None}], indexes_statuses)

self.log.info("generate many blocks to be sure that mempool is empty after expiring txes...")
self.slowly_generate_batch(60)
Expand Down

0 comments on commit 0bd48aa

Please sign in to comment.