Conditions | 4 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 3 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
43 | public function checkSignatures(ConsensusInterface $consensus, 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, $i, $txOut->getValue(), $txOut->getScript()); |
||
52 | } |
||
53 | |||
54 | return $result; |
||
55 | } |
||
56 | } |
||
57 |