diff --git a/test/functional/abc-magnetic-anomaly-activation.py b/test/functional/abc-magnetic-anomaly-activation.py --- a/test/functional/abc-magnetic-anomaly-activation.py +++ b/test/functional/abc-magnetic-anomaly-activation.py @@ -18,6 +18,7 @@ # far into the future MAGNETIC_ANOMALY_START_TIME = 2000000000 +RPC_VERIFY_REJECTED = -26 class PreviousSpendableOutput(): @@ -261,6 +262,11 @@ # Rewind bad block. tip(4444) + # Verfiy that ATMP doesn't accept undersize transactions + undersized_tx = transaction(out[1], MIN_TX_SIZE - 1) + assert_raises_rpc_error(RPC_VERIFY_REJECTED, "bad-txns-undersize", + node.sendrawtransaction, ToHex(undersized_tx), True) + # But large transactions are still ok. large_tx_block = block(3333, transaction(out[1], MIN_TX_SIZE)) assert_equal(len(large_tx_block.vtx[1].serialize()), MIN_TX_SIZE)