pub fn check_transaction_sanity(tx: &Transaction) -> Result<(), TxError>
Basic checks that don’t depend on any context.