1 | <?php |
||
11 | class CheckLocktimeVerify |
||
12 | { |
||
13 | /** |
||
14 | * @var int |
||
15 | */ |
||
16 | private $nLockTime; |
||
17 | |||
18 | /** |
||
19 | * @var bool |
||
20 | */ |
||
21 | private $toBlock; |
||
22 | |||
23 | /** |
||
24 | * CheckLocktimeVerify constructor. |
||
25 | * @param int $nLockTime |
||
26 | */ |
||
27 | 16 | public function __construct($nLockTime) |
|
40 | |||
41 | /** |
||
42 | * @param Operation[] $chunks |
||
43 | * @param bool $fMinimal |
||
44 | * @return static |
||
45 | */ |
||
46 | 166 | public static function fromDecodedScript(array $chunks, $fMinimal = false) |
|
68 | |||
69 | /** |
||
70 | * @param ScriptInterface $script |
||
71 | * @return CheckLocktimeVerify |
||
72 | */ |
||
73 | public static function fromScript(ScriptInterface $script) |
||
77 | |||
78 | /** |
||
79 | * @return int |
||
80 | */ |
||
81 | 16 | public function getLocktime() |
|
85 | |||
86 | /** |
||
87 | * @return bool |
||
88 | */ |
||
89 | 2 | public function isLockedToBlock() |
|
93 | } |
||
94 |