Branch: refs/heads/master
Home: https://github.com/conformal/btcd
Commit: 50388bcf6623dd6dbf6997fe90203435929c6d8b
https://github.com/conformal/btcd/commit/50388bcf6623dd6dbf6997fe90203435929c6d8b
Author: Dave Collins <[email protected]>
Date: 2013-11-14 (Thu, 14 Nov 2013)
Changed paths:
M mempool.go
Log Message:
-----------
Add more mempool standard checks.
This commit adds a few more checks to restrict what transactions are
allowed into the transaction memory pool and therefore are candidates
to be mined and relayed.
In particular, the following changes were made to what is considered
standard:
- nulldata scripts are now supported and considered standard
- multi-signature transaction are now checked to ensure they only have a
max of 3 pubkeys and the number of signatures doesn't exceed the number
of pubkeys
- the number of inputs to a signature script must now match the expected
number of inputs for the script type (includes support for additional
pay-to-script-hash inputs)
- the number of inputs pushed onto the stack by a redeeming sig script
must match the number of inputs consumed by the referenced pk script
- there can now only be a max of one nulldata output per transaction