Skip to content

Commit

Permalink
test: check that assetlock/unlock payload is shown as an object in json
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Oct 20, 2023
1 parent 4ca295e commit a097d2a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/functional/feature_asset_locks.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ def run_test(self):
self.check_mempool_result(tx=asset_lock_tx, result_expected={'allowed': True})
self.validate_credit_pool_balance(0)
txid_in_block = self.send_tx(asset_lock_tx)
assert "assetLockTx" in node.getrawtransaction(txid_in_block, 1)
self.validate_credit_pool_balance(0)
node.generate(1)
assert_equal(self.get_credit_pool_balance(node=node_wallet), 0)
Expand Down Expand Up @@ -327,7 +328,8 @@ def run_test(self):

assert_equal(asset_unlock_tx_payload.quorumHash, int(self.mninfo[0].node.quorum("selectquorum", llmq_type_test, 'e6c7a809d79f78ea85b72d5df7e9bd592aecf151e679d6e976b74f053a7f9056')["quorumHash"], 16))

self.send_tx(asset_unlock_tx)
txid = self.send_tx(asset_unlock_tx)
assert "assetUnlockTx" in node.getrawtransaction(txid, 1)
self.mempool_size += 1
self.check_mempool_size()
self.validate_credit_pool_balance(locked_1)
Expand Down

0 comments on commit a097d2a

Please sign in to comment.