class TxValidatorAccountStateValidator implements TxValidatorStep {

    @Override
    public boolean validate(Transaction tx, @Nullable AccountState state, BigInteger gasLimit, Coin minimumGasPrice, long bestBlockNumber, boolean isFreeTx) {
        return isFreeTx || (state != null && !state.isDeleted());
    }

}