Merge pull request #1631 from input-output-hk/more_invalid_before_negative
Fix other places where `invalid_before` can be negative
Fix other places where `invalid_before` can be negative
invalid_before=invalid_before,
invalid_hereafter=slot_step2 + slots_offset,
)
tx_signed_step2 = cluster.g_transaction.sign_tx(
tx_body_file=tx_output_step2.out_file,
signing_key_files=tx_files_step2.signing_key_files,
*mint_txouts1,
*mint_txouts2,
]
invalid_before = max(1, slot_step2 - slots_offset)
tx_output_step2 = cluster.g_transaction.build_tx(
src_address=payment_addr.address,
tx_name=f"{temp_template}_step2",
tx_files=tx_files_step2,
txins=mint_utxos,
txouts=txouts_step2,
mint=plutus_mint_data,
invalid_before=slot_step2 - slots_offset,
invalid_before=invalid_before,
invalid_hereafter=slot_step2 + slots_offset,
)
plutus_costs = cluster.g_transaction.calculate_plutus_script_cost(
txins=mint_utxos,
txouts=txouts_step2,
mint=plutus_mint_data,
invalid_before=slot_step2 - slots_offset,
invalid_before=invalid_before,
invalid_hereafter=slot_step2 + slots_offset,
)
tx_signed_step2 = cluster.g_transaction.sign_tx(
tx_body_file=tx_output_step2.out_file,
signing_key_files=tx_files_step2.signing_key_files,
mint=plutus_mint_data,
tx_files=tx_files_step2,
fee=minting_cost.fee + mint_raw.FEE_MINT_TXSIZE,
invalid_before=slot_step2 - slots_offset,
invalid_before=max(1, slot_step2 - slots_offset),
invalid_hereafter=slot_step2 + slots_offset,
)
tx_signed_step2 = cluster.g_transaction.sign_tx(
mint=plutus_mint_data,
tx_files=tx_files_step2,
fee=fee_step2_total,
invalid_before=slot_step2 - slots_offset,
invalid_before=max(1, slot_step2 - slots_offset),
invalid_hereafter=slot_step2 + slots_offset,
)
tx_signed_step2 = cluster.g_transaction.sign_tx(
- Update readme to address issues and questions presented by CPS-0001 - Update CDDL to support a more flexible scoping structure for future expansion
4470: db-analyser: make tracer atomic r=amesgen a=amesgen # Description When enabling verbose logging, tracers from ChainDB background threads can cause undesirable interleavings. Co-authored-by: Alexander Esgen <[email protected]>
When enabling verbose logging, tracers from ChainDB background threads can cause undesirable interleavings.
Co-authored-by: Robert Phair <[email protected]>