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