| 149 | return ::GetSerializeSize(tx, PROTOCOL_VERSION | SERIALIZE_TRANSACTION_NO_WITNESS) * (WITNESS_SCALE_FACTOR - 1) + ::GetSerializeSize(tx, PROTOCOL_VERSION); |
| 150 | } |
| 151 | static inline int64_t GetBlockWeight(const CBlock& block) |
| 152 | { |
| 153 | return ::GetSerializeSize(block, PROTOCOL_VERSION | SERIALIZE_TRANSACTION_NO_WITNESS) * (WITNESS_SCALE_FACTOR - 1) + ::GetSerializeSize(block, PROTOCOL_VERSION); |
| 154 | } |
| 155 | |
| 156 | static inline int64_t GetTransactionInputWeight(const CTransaction& tx, const size_t nIn) |
| 157 | { |