mirror of
https://github.com/bitcoin/bips.git
synced 2026-10-19 19:29:18 +00:00
Address some wording nits in BIP 54 (#2313)
This commit is contained in:
@@ -57,20 +57,20 @@ For all blocks after activation the following new rules apply.
|
||||
Given a block at height `N`:
|
||||
- if `N % 2016` is equal to 0, the timestamp of the block must be set to a value higher than or
|
||||
equal to the value of the timestamp of block at height `N-1` minus 7200 (T<sub>N</sub> ≥
|
||||
T<sub>N−1</sub> − 7200);
|
||||
T<sub>N−1</sub> − 7200) seconds;
|
||||
- if `N % 2016` is equal to 2015, the timestamp of the block must be set to a value higher than
|
||||
or equal to the value of the timestamp of the block at height `N-2015` (T<sub>N</sub> ≥
|
||||
T<sub>N−2015</sub>).
|
||||
|
||||
A limit is set on the number of signature operations present in the scripts used to validate a
|
||||
transaction. It applies to all transactions in the block except the coinbase transaction[^1]. For
|
||||
each input in the transaction, count the number of `CHECKSIG` and `CHECKMULTISIG` in the input
|
||||
each input in the transaction, count the number of signature operations from `CHECKSIG`(`VERIFY`) and `CHECKMULTISIG`(`VERIFY`) in the input
|
||||
scriptSig and previous output's scriptPubKey, including the P2SH redeemScript. If the total summed
|
||||
over all transaction inputs is strictly higher than 2500, the transaction is invalid. The accounting is the
|
||||
same as for [bip-0016][BIP16 specs], evaluating the scriptSig, scriptPubKey, and P2SH redeemScript
|
||||
separately:
|
||||
|
||||
1. `CHECKSIG` and `CHECKSIGVERIFY` count as 1 signature operation, whether or not they are evaluated.
|
||||
1. `CHECKSIG` and `CHECKSIGVERIFY` each count as 1 signature operation, whether or not they are evaluated.
|
||||
2. `CHECKMULTISIG` and `CHECKMULTISIGVERIFY` immediately preceded by `OP_1` through `OP_16` are counted as 1 to 16 signature operations, whether or not they are evaluated.
|
||||
3. All other `CHECKMULTISIG` and `CHECKMULTISIGVERIFY` are counted as 20 signature operations, whether or not they are evaluated.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user