aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2011-12-25 10:08:01 -0500
committerGavin Andresen <gavinandresen@gmail.com>2011-12-25 10:08:01 -0500
commit60835d96276549ce17fe163a18c2f78dc5b267bc (patch)
treef9be11b57313385fba848ca3a7564bada67d0e31 /src
parent6996a9d7131cc634cb67dcd56a71ca9744001c8f (diff)
assert condition in previous commit was backwards
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 725fabff86..0277f5fa75 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -284,7 +284,7 @@ bool CTransaction::AreInputsStandard(std::map<uint256, std::pair<CTxIndex, CTran
COutPoint prevout = vin[i].prevout;
assert(mapInputs.count(prevout.hash) > 0);
CTransaction& txPrev = mapInputs[prevout.hash].second;
- assert(prevout.n >= txPrev.vout.size());
+ assert(prevout.n < txPrev.vout.size());
vector<vector<unsigned char> > vSolutions;
txnouttype whichType;