Skip to content

Commit 5456354

Browse files
committed
fix: trivial safety belt
1 parent 58f671c commit 5456354

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/instantsend/instantsend.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@ Uint256HashSet GetIdsFromLockable(const std::vector<T>& vec)
4444
if (vec.empty()) return ret;
4545
ret.reserve(vec.size());
4646
for (const auto& in : vec) {
47-
if constexpr (std::is_same_v<T, CTxIn>) {
47+
if constexpr (std::is_same_v<T, COutPoint>) {
48+
ret.emplace(instantsend::GenInputLockRequestId(in));
49+
} else if constexpr (std::is_same_v<T, CTxIn>) {
4850
ret.emplace(instantsend::GenInputLockRequestId(in.prevout));
4951
} else {
50-
ret.emplace(instantsend::GenInputLockRequestId(in));
52+
assert(false);
5153
}
5254
}
5355
return ret;

0 commit comments

Comments
 (0)