| Conditions | 2 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | 27 | public function checkSignature(ConsensusInterface $consensus, $flags, $nInput, TransactionOutputInterface $output) |
|
| 31 | { |
||
| 32 | 27 | $witnesses = $this->transaction->getWitnesses(); |
|
| 33 | 27 | $witness = isset($witnesses[$nInput]) ? $witnesses[$nInput] : null; |
|
| 34 | 27 | return $consensus->verify($this->transaction, $output->getScript(), $flags, $nInput, $output->getValue(), $witness); |
|
| 35 | } |
||
| 36 | |||
| 57 |