Skip to content

Commit

Permalink
func-test: change logic for verifying tx for submit_da_blob
Browse files Browse the repository at this point in the history
  • Loading branch information
voidash committed Dec 24, 2024
1 parent 423471b commit 055793d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions functional-tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,11 +484,10 @@ def get_envelope_pushdata(inp: str):
def submit_da_blob(btcrpc: BitcoindClient, seqrpc: JsonrpcClient, blobdata: str):
_ = seqrpc.strataadmin_submitDABlob(blobdata)

# Allow some time for sequencer to publish blob
time.sleep(SEQ_PUBLISH_BATCH_INTERVAL_SECS)

l1_status = seqrpc.strata_l1status()
txid = l1_status["last_published_txid"]

tx = btcrpc.gettransaction(txid)
# if blob data is present in tx witness then return the transaction
tx = wait_until_with_value(
lambda: btcrpc.gettransaction(seqrpc.strata_l1status()["last_published_txid"]),
predicate=lambda tx: blobdata in tx.witness_data().hex(),
timeout=10,
)
return tx

0 comments on commit 055793d

Please sign in to comment.