| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1.0202 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | 9 | public function verify(TransactionInterface $tx, ScriptInterface $scriptPubKey, $flags, $nInputToSign, $amount, ScriptWitnessInterface $witness = null) |
|
| 21 | { |
||
| 22 | 9 | $error = 0; |
|
| 23 | 9 | return (bool) bitcoinconsensus_verify_script( |
|
| 24 | 9 | $scriptPubKey->getBinary(), |
|
| 25 | 9 | $tx->getBinary(), |
|
| 26 | 9 | $nInputToSign, |
|
| 27 | 9 | $flags, |
|
| 28 | $error |
||
| 29 | 9 | ); |
|
| 30 | } |
||
| 31 | } |
||
| 32 |