diff options
| author | Gavin Andresen <[email protected]> | 2011-12-25 10:08:01 -0500 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2011-12-25 10:08:01 -0500 |
| commit | 60835d96276549ce17fe163a18c2f78dc5b267bc (patch) | |
| tree | f9be11b57313385fba848ca3a7564bada67d0e31 /src/main.cpp | |
| parent | Check for valid prevout.n in FetchInputs. (diff) | |
| download | discoin-60835d96276549ce17fe163a18c2f78dc5b267bc.tar.xz discoin-60835d96276549ce17fe163a18c2f78dc5b267bc.zip | |
assert condition in previous commit was backwards
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 725fabff8..0277f5fa7 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; |