diff options
| author | Gavin Andresen <[email protected]> | 2012-06-27 12:43:19 -0400 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2012-07-06 11:37:01 -0400 |
| commit | dae3e10a5abe93833c57183b7c00f1db9200f46e (patch) | |
| tree | 52799f24df21e1785c0e58e43438a8b130642ad5 /src/main.cpp | |
| parent | Merge pull request #1304 from rebroad/ShowBlockTimestamp (diff) | |
| download | discoin-dae3e10a5abe93833c57183b7c00f1db9200f46e.tar.xz discoin-dae3e10a5abe93833c57183b7c00f1db9200f46e.zip | |
Treat non-version-1 transactions as non-standard
Adds CBlock::CURRENT_VERSION and CTransaction::CURRENT_VERSION
constants, and makes non-CURRENT_VERSION transactions nonstandard.
This will help make future upgrades smoother.
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index b4e827098..499f4e336 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -268,6 +268,9 @@ bool CTransaction::ReadFromDisk(COutPoint prevout) bool CTransaction::IsStandard() const { + if (nVersion > CTransaction::CURRENT_VERSION) + return false; + BOOST_FOREACH(const CTxIn& txin, vin) { // Biggest 'standard' txin is a 3-signature 3-of-3 CHECKMULTISIG |