Passing this method to mempool.check() requires that you're holding cs_main. I'd feel safer documenting that :)