Refactor HaveInputsDuplicate() out of the core and Blockchain, it doesn't depend on the Blockchain state. Make it more efficient.
Which allows to use it for ClaimTX. Make it also a bit more efficient as maps are expensive.