@@ -102,7 +102,7 @@ |
||
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | /** |
| 105 | - * @return int |
|
| 105 | + * @return boolean |
|
| 106 | 106 | */ |
| 107 | 107 | public function isSequenceLockDisabled() |
| 108 | 108 | { |
@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | /** |
| 300 | 300 | * @param ScriptInterface $script |
| 301 | 301 | * @param int $limit |
| 302 | - * @param array $decoded |
|
| 302 | + * @param Operation[] $decoded |
|
| 303 | 303 | * @return BufferInterface|false |
| 304 | 304 | */ |
| 305 | 305 | private function decodeWithLimit(ScriptInterface $script, $limit, array $decoded) |
@@ -452,7 +452,7 @@ discard block |
||
| 452 | 452 | } |
| 453 | 453 | |
| 454 | 454 | /** |
| 455 | - * @param array $decoded |
|
| 455 | + * @param Operation[] $decoded |
|
| 456 | 456 | * @param null $solution |
| 457 | 457 | * @return string |
| 458 | 458 | */ |
@@ -339,7 +339,7 @@ |
||
| 339 | 339 | /** |
| 340 | 340 | * @param Stack $vfStack |
| 341 | 341 | * @param bool $value |
| 342 | - * @return bool |
|
| 342 | + * @return integer |
|
| 343 | 343 | */ |
| 344 | 344 | public function checkExec(Stack $vfStack, $value) |
| 345 | 345 | { |
@@ -339,7 +339,7 @@ |
||
| 339 | 339 | /** |
| 340 | 340 | * @param Stack $vfStack |
| 341 | 341 | * @param bool $value |
| 342 | - * @return bool |
|
| 342 | + * @return integer |
|
| 343 | 343 | */ |
| 344 | 344 | private function checkExec(Stack $vfStack, $value) |
| 345 | 345 | { |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * PayToPubkeyHash constructor. |
| 27 | - * @param $opcode |
|
| 27 | + * @param integer $opcode |
|
| 28 | 28 | * @param BufferInterface $hash160 |
| 29 | 29 | * @param bool $allowVerify |
| 30 | 30 | */ |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * MASTNode constructor. |
| 24 | - * @param self|null $parent |
|
| 24 | + * @param null|\self $parent |
|
| 25 | 25 | * @param bool|null $value |
| 26 | 26 | */ |
| 27 | 27 | public function __construct(self $parent = null, $value = null) |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
| 87 | - * @param $value |
|
| 87 | + * @param boolean $value |
|
| 88 | 88 | * @return LogicOpNode |
| 89 | 89 | */ |
| 90 | 90 | public function getChild($value) |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | /** |
| 99 | - * @return array |
|
| 99 | + * @return LogicOpNode[] |
|
| 100 | 100 | */ |
| 101 | 101 | public function split() |
| 102 | 102 | { |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | /** |
| 141 | - * @return array|BufferInterface|BufferInterface[] |
|
| 141 | + * @return BufferInterface |
|
| 142 | 142 | */ |
| 143 | 143 | public function getSolution() |
| 144 | 144 | { |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | } |
| 214 | 214 | |
| 215 | 215 | /** |
| 216 | - * @return array |
|
| 216 | + * @return TransactionSignatureInterface[] |
|
| 217 | 217 | */ |
| 218 | 218 | public function getSignatures() |
| 219 | 219 | { |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | } |
| 244 | 244 | |
| 245 | 245 | /** |
| 246 | - * @param $idx |
|
| 246 | + * @param integer $idx |
|
| 247 | 247 | * @param PublicKeyInterface|null $key |
| 248 | 248 | * @return $this |
| 249 | 249 | */ |
@@ -38,6 +38,10 @@ |
||
| 38 | 38 | $this->credential = new RpcCredential("127.0.0.1", 18332, "rpcuser", "rpcpass"); |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | + /** |
|
| 42 | + * @param string $var |
|
| 43 | + * @param string $default |
|
| 44 | + */ |
|
| 41 | 45 | private function envOrDefault($var, $default = null) { |
| 42 | 46 | $value = getenv($var); |
| 43 | 47 | if (in_array($value, [null, false, ""])) { |
@@ -356,7 +356,7 @@ |
||
| 356 | 356 | } |
| 357 | 357 | |
| 358 | 358 | /** |
| 359 | - * @param array $decoded |
|
| 359 | + * @param Operation[] $decoded |
|
| 360 | 360 | * @param null $solution |
| 361 | 361 | * @return null|TimeLock|Checksig |
| 362 | 362 | */ |