wallettx GetDepthInMainChain take doublespend flag into consideration