diff options
| author | practicalswift <[email protected]> | 2018-03-21 10:54:17 +0100 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2018-03-21 10:54:17 +0100 |
| commit | d27327c79a651fab77e032fa1f00ce4458db959b (patch) | |
| tree | b31605a352ad7ee1a68d5a524b0bb9335e9592cf /src/consensus/validation.h | |
| parent | Merge #12737: Remove unnecessary NONNEGATIVE_SIGNED (diff) | |
| download | discoin-d27327c79a651fab77e032fa1f00ce4458db959b.tar.xz discoin-d27327c79a651fab77e032fa1f00ce4458db959b.zip | |
Fix typos
Diffstat (limited to 'src/consensus/validation.h')
| -rw-r--r-- | src/consensus/validation.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/consensus/validation.h b/src/consensus/validation.h index 757df518a..28d3c4a11 100644 --- a/src/consensus/validation.h +++ b/src/consensus/validation.h @@ -101,7 +101,7 @@ static inline int64_t GetBlockWeight(const CBlock& block) { return ::GetSerializeSize(block, SER_NETWORK, PROTOCOL_VERSION | SERIALIZE_TRANSACTION_NO_WITNESS) * (WITNESS_SCALE_FACTOR - 1) + ::GetSerializeSize(block, SER_NETWORK, PROTOCOL_VERSION); } -static inline int64_t GetTransationInputWeight(const CTxIn& txin) +static inline int64_t GetTransactionInputWeight(const CTxIn& txin) { // scriptWitness size is added here because witnesses and txins are split up in segwit serialization. return ::GetSerializeSize(txin, SER_NETWORK, PROTOCOL_VERSION | SERIALIZE_TRANSACTION_NO_WITNESS) * (WITNESS_SCALE_FACTOR - 1) + ::GetSerializeSize(txin, SER_NETWORK, PROTOCOL_VERSION) + ::GetSerializeSize(txin.scriptWitness.stack, SER_NETWORK, PROTOCOL_VERSION); |