1 | <?php |
||
17 | class Params implements ParamsInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var int |
||
21 | */ |
||
22 | protected static $maxBlockSizeBytes = 1000000; |
||
23 | |||
24 | /** |
||
25 | * @var int |
||
26 | */ |
||
27 | protected static $maxMoney = 21000000; |
||
28 | |||
29 | /** |
||
30 | * @var int |
||
31 | */ |
||
32 | protected static $subsidyHalvingInterval = 210000; |
||
33 | |||
34 | /** |
||
35 | * @var int |
||
36 | */ |
||
37 | protected static $coinbaseMaturityAge = 120; |
||
38 | |||
39 | /** |
||
40 | * @var int |
||
41 | */ |
||
42 | protected static $p2shActivateTime = 1333238400; |
||
43 | |||
44 | /** |
||
45 | * = 14 * 24 * 60 * 60 |
||
46 | * @var int |
||
47 | */ |
||
48 | protected static $powTargetTimespan = 1209600; |
||
49 | |||
50 | /** |
||
51 | * = 10 * 60 |
||
52 | * @var int |
||
53 | */ |
||
54 | protected static $powTargetSpacing = 600; |
||
55 | |||
56 | /** |
||
57 | * @var int |
||
58 | */ |
||
59 | protected static $powRetargetInterval = 2016; |
||
60 | |||
61 | /** |
||
62 | * @var string |
||
63 | */ |
||
64 | protected static $powTargetLimit = '26959946667150639794667015087019630673637144422540572481103610249215'; |
||
65 | |||
66 | /** |
||
67 | * Hex: 1d00ffff |
||
68 | * @var int |
||
69 | */ |
||
70 | protected static $powBitsLimit = 486604799; |
||
71 | |||
72 | /** |
||
73 | * @var int |
||
74 | */ |
||
75 | protected static $majorityWindow = 1000; |
||
76 | |||
77 | /** |
||
78 | * @var int |
||
79 | */ |
||
80 | protected static $majorityEnforceBlockUpgrade = 750; |
||
81 | |||
82 | |||
83 | /** |
||
84 | * @var Math |
||
85 | */ |
||
86 | protected $math; |
||
87 | |||
88 | /** |
||
89 | * @param Math $math |
||
90 | */ |
||
91 | 5 | public function __construct(Math $math) |
|
95 | |||
96 | /** |
||
97 | * @return BlockHeaderInterface |
||
98 | */ |
||
99 | 1 | public function getGenesisBlockHeader(): BlockHeaderInterface |
|
110 | |||
111 | /** |
||
112 | * @return BlockInterface |
||
113 | */ |
||
114 | 1 | public function getGenesisBlock(): BlockInterface |
|
136 | |||
137 | /** |
||
138 | * @return int |
||
139 | */ |
||
140 | 1 | public function maxBlockSizeBytes(): int |
|
144 | |||
145 | /** |
||
146 | * @return int |
||
147 | */ |
||
148 | 1 | public function subsidyHalvingInterval(): int |
|
152 | |||
153 | /** |
||
154 | * @return int |
||
155 | */ |
||
156 | 1 | public function coinbaseMaturityAge(): int |
|
160 | |||
161 | /** |
||
162 | * @return int |
||
163 | */ |
||
164 | 1 | public function maxMoney(): int |
|
168 | |||
169 | /** |
||
170 | * @return int |
||
171 | */ |
||
172 | 1 | public function powTargetTimespan(): int |
|
176 | |||
177 | /** |
||
178 | * @return int |
||
179 | */ |
||
180 | 1 | public function powTargetSpacing(): int |
|
184 | |||
185 | /** |
||
186 | * @return int |
||
187 | */ |
||
188 | 1 | public function powRetargetInterval(): int |
|
192 | |||
193 | /** |
||
194 | * @return int|string |
||
195 | */ |
||
196 | 1 | public function powTargetLimit(): string |
|
200 | |||
201 | /** |
||
202 | * @return int |
||
203 | */ |
||
204 | 190 | public function powBitsLimit(): int |
|
208 | |||
209 | /** |
||
210 | * @return int |
||
211 | */ |
||
212 | 1 | public function majorityEnforceBlockUpgrade(): int |
|
216 | |||
217 | /** |
||
218 | * @return int |
||
219 | */ |
||
220 | 1 | public function majorityWindow(): int |
|
224 | |||
225 | /** |
||
226 | * @return int |
||
227 | */ |
||
228 | 1 | public function p2shActivateTime(): int |
|
232 | |||
233 | /** |
||
234 | * @return int |
||
235 | */ |
||
236 | 1 | public function getMaxBlockSigOps(): int |
|
240 | |||
241 | /** |
||
242 | * @return int |
||
243 | */ |
||
244 | 1 | public function getMaxTxSigOps(): int |
|
248 | } |
||
249 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: