You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"The size in bytes of the script sig that" is ambiguous and could
refer to the actual scriptSig, exlcuding the varint prefix that
indicates its size.
The code comment in witness_size is promoted to the docstring, as its
helpful to anyone trying to compute the right size of a transaction.
/// The size in bytes of the witness that satisfies this plan
268
+
/// The size in bytes of the witness that satisfies this plan.
269
+
///
270
+
/// NOTE: Returns 0 if there is no witness. You need to manually take care to count it as 1 byte
271
+
/// if there's at least one segwit input in the tx. See ["Empty script witnesses are encoded as a zero byte"](https://github.com/bitcoin/bips/blob/d8a56c9f2b521bf4af5d588f217e7618cc44952c/bip-0144.mediawiki#serialization).
0 commit comments