Skip to content

Commit

Permalink
Use build-raw instead of build
Browse files Browse the repository at this point in the history
The `transaction build` command doesn't work when TX era is different
from network era.
  • Loading branch information
mkoura committed Jan 18, 2022
1 parent 5fb1b85 commit c14dbb3
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions cardano_node_tests/tests/test_staking.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,25 +881,17 @@ def _mir_tx(fund_src: str) -> clusterlib.TxRawOutput:
*cluster.genesis_keys.delegate_skeys,
],
)
mir_tx_raw_output = cluster.build_tx(
src_address=pool_owner.payment.address,
tx_name=f"{temp_template}_{fund_src}",
tx_files=mir_tx_files,
fee_buffer=1000_000,
witness_override=2,
)
mir_tx_signed = cluster.sign_tx(
tx_body_file=mir_tx_raw_output.out_file,
signing_key_files=mir_tx_files.signing_key_files,
tx_name=f"{temp_template}_{fund_src}",
)

LOGGER.info(
f"Submitting MIR cert for tranferring funds from {fund_src} to "
f"'{pool_reward.stake.address}' in epoch {cluster.get_epoch()} "
f"on cluster instance {cluster_manager.cluster_instance_num}"
)
cluster.submit_tx(tx_file=mir_tx_signed, txins=mir_tx_raw_output.txins)
mir_tx_raw_output = cluster.send_tx(
src_address=pool_owner.payment.address,
tx_name=f"{temp_template}_{fund_src}",
tx_files=mir_tx_files,
)

return mir_tx_raw_output

Expand Down

0 comments on commit c14dbb3

Please sign in to comment.