This is a simple test PR that does two things:
- Raise an exception in
_bulk_tx_
whentarget_weight
is too low, i.e., below the tx weight. - Addresses some review comments from #30162, which are:
- Use
WITNESS_SCALE_FACTOR
instead of the magic number 4. - Use
PADDING_OFFSET
instead of the magic number 3. - Raise an exception if the output value is less than or equal to zero in
create_self_transfer
. This prevents creating transactions with a value of 0 or less. - Add a test to verify that
create_self_transfer_multi
also respects the passedtarget_weight
."
- Use