aboutsummaryrefslogtreecommitdiff
path: root/src/policy/policy.cpp
diff options
context:
space:
mode:
authorBtcDrak <[email protected]>2016-02-19 19:52:31 +0000
committerBtcDrak <[email protected]>2016-03-18 08:09:06 +0000
commit12c89c918534f8e615e80381b692d89d6b09d174 (patch)
treebd6e0b0784da6ad7be58b0f01c408a2920b398f6 /src/policy/policy.cpp
parentSoft fork logic for BIP68 (diff)
downloaddiscoin-12c89c918534f8e615e80381b692d89d6b09d174.tar.xz
discoin-12c89c918534f8e615e80381b692d89d6b09d174.zip
Policy: allow transaction version 2 relay policy.
This commit introduces a way to gracefully bump the default transaction version in a two step process.
Diffstat (limited to 'src/policy/policy.cpp')
-rw-r--r--src/policy/policy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/policy/policy.cpp b/src/policy/policy.cpp
index 332abc430..e3ed7be00 100644
--- a/src/policy/policy.cpp
+++ b/src/policy/policy.cpp
@@ -55,7 +55,7 @@ bool IsStandard(const CScript& scriptPubKey, txnouttype& whichType)
bool IsStandardTx(const CTransaction& tx, std::string& reason)
{
- if (tx.nVersion > CTransaction::CURRENT_VERSION || tx.nVersion < 1) {
+ if (tx.nVersion > CTransaction::MAX_STANDARD_VERSION || tx.nVersion < 1) {
reason = "version";
return false;
}