https://github.com/ethereum/go-ethereum/blob/master/miner/worker.go#L863-L875 for example in this code the when `core.ApplyTransaction` returns an error the pool will be reduced where in fact the tx is not added to the state.