aboutsummaryrefslogtreecommitdiff
path: root/src/consensus/tx_verify.cpp
diff options
context:
space:
mode:
authorBen Woosley <[email protected]>2018-06-22 18:27:18 +0000
committerBen Woosley <[email protected]>2018-09-11 00:58:05 -0400
commitda74db0940720407fafaf3582bbaf9c81a4d3b4d (patch)
tree12ea45e64d4da961a7f89a718ea3c9bb233ea173 /src/consensus/tx_verify.cpp
parentMerge #14097: validation: Log FormatStateMessage on ConnectBlock error in Con... (diff)
downloaddiscoin-da74db0940720407fafaf3582bbaf9c81a4d3b4d.tar.xz
discoin-da74db0940720407fafaf3582bbaf9c81a4d3b4d.zip
Drop unused GetType() from CSizeComputer
Diffstat (limited to 'src/consensus/tx_verify.cpp')
-rw-r--r--src/consensus/tx_verify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/consensus/tx_verify.cpp b/src/consensus/tx_verify.cpp
index be73d0a2f..0628ec1d4 100644
--- a/src/consensus/tx_verify.cpp
+++ b/src/consensus/tx_verify.cpp
@@ -164,7 +164,7 @@ bool CheckTransaction(const CTransaction& tx, CValidationState &state, bool fChe
if (tx.vout.empty())
return state.DoS(10, false, REJECT_INVALID, "bad-txns-vout-empty");
// Size limits (this doesn't take the witness into account, as that hasn't been checked for malleability)
- if (::GetSerializeSize(tx, SER_NETWORK, PROTOCOL_VERSION | SERIALIZE_TRANSACTION_NO_WITNESS) * WITNESS_SCALE_FACTOR > MAX_BLOCK_WEIGHT)
+ if (::GetSerializeSize(tx, PROTOCOL_VERSION | SERIALIZE_TRANSACTION_NO_WITNESS) * WITNESS_SCALE_FACTOR > MAX_BLOCK_WEIGHT)
return state.DoS(100, false, REJECT_INVALID, "bad-txns-oversize");
// Check for negative or overflow output values