| Conditions | 4 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 43 | public function checkSignatures(ConsensusInterface $consensus, $flags, array $outputs) |
||
| 44 | { |
||
| 45 | if (count($this->transaction->getInputs()) !== count($outputs)) { |
||
| 46 | throw new \InvalidArgumentException('Incorrect scriptPubKey count'); |
||
| 47 | } |
||
| 48 | |||
| 49 | $result = true; |
||
| 50 | foreach ($outputs as $i => $txOut) { |
||
| 51 | $result = $result && $this->checkSignature($consensus, $flags, $i, $txOut); |
||
| 52 | } |
||
| 53 | |||
| 54 | return $result; |
||
| 55 | } |
||
| 56 | } |
||
| 57 |