Fix incorrect validations of block transactions

This commit is contained in:
miketout
2018-05-07 10:29:43 -07:00
parent b45d65b46c
commit 68334c8dae
3 changed files with 27 additions and 28 deletions

View File

@@ -267,6 +267,14 @@ public:
}
return ret;
}
int64_t TotalTxValue() const {
int64_t total = 0;
BOOST_FOREACH(const CTxOut &out, vout) {
total += out.nValue;
}
return total;
}
};
class CCoinsKeyHasher