1
0
mirror of https://github.com/bitcoinbook/bitcoinbook synced 2025-02-23 04:52:05 +00:00

Merge pull request #919 from danra/remove_max_block_size

Remove reference to outdated constant MAX_BLOCK_SIZE.
This commit is contained in:
Will Binns 2021-05-29 13:10:58 +01:00 committed by GitHub
commit 059311e44c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,7 @@ Each node verifies every transaction against a long checklist of criteria:
* The transaction's syntax and data structure must be correct.
* Neither lists of inputs or outputs are empty.
* The transaction size in bytes is less than +MAX_BLOCK_SIZE+.
* The transaction size is less than the maximum allowed size for a block excluding witness data, as shown in https://bit.ly/3t623VL[_tx_check.cpp_].
* Each output value, as well as the total, must be within the allowed range of values (less than 21m coins, more than the _dust_ threshold).
* None of the inputs have hash=0, N=1 (coinbase transactions should not be relayed).
* +nLocktime+ is equal to +INT_MAX+, or +nLocktime+ and +nSequence+ values are satisfied according to +MedianTimePast+.