Commit 053a3a1
client/engine: speed and resiliency improvements (#1827)
* CLConnectionManager: start on first updateStatus in case PreMerge wasn't reached before merge
* chain: safer closing to not cause db corruption during engine requests
* parse: some improvements and reorganization
* vm/client/engine: add ability to add blocks to blockchain without setting the head. this allows us to do runBlock work in newPayload once, and not again in fcU
* CLConnectionManager: improve logging output
* use ellipsis character
* add space to align with fcu log msg
* add last payload txs count
* add baseFee to last payload log
* fix type doc ref
* add gasUsed to last payload log
* rename PreMerge to MergeForkBlock for increased clarity
use hardfork enums in vm supportedHardforks
* format numbers to locale string, use compact num for gasUsed
update from 5 to 4 chars on each side of hash
* fix tests, use `pass` instead of `ok`
* various fixes, remove toLocaleString, improve short func
* add plural to timeDiffStr if not 1
* Add coverage on `formatNonce`
* Add CLConnectionManager test skeleton and fix `running` method
* Add forkchoice/newpayload tests
* Remove listeners on test
* Tighten up tests to check for specific block
* More connection manager constructor tests
* nits
* remove leading zeros on cumulative gas in eth_getTransactionsReceipt (thanks @cbrzn)
Co-authored-by: acolytec3 <17355484+acolytec3@users.noreply.github.com>1 parent c969f1f commit 053a3a1
File tree
20 files changed
+434
-253
lines changed- packages
- client
- lib
- blockchain
- execution
- miner
- rpc
- modules
- util
- sync
- util
- test
- blockchain
- miner
- rpc
- util
- util
- common/src
- hardforks
- vm
- src
- tests/api
20 files changed
+434
-253
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
| 181 | + | |
185 | 182 | | |
186 | 183 | | |
187 | 184 | | |
| |||
206 | 203 | | |
207 | 204 | | |
208 | 205 | | |
209 | | - | |
210 | | - | |
211 | | - | |
| 206 | + | |
212 | 207 | | |
213 | 208 | | |
214 | 209 | | |
| |||
220 | 215 | | |
221 | 216 | | |
222 | 217 | | |
223 | | - | |
224 | | - | |
225 | | - | |
| 218 | + | |
226 | 219 | | |
227 | 220 | | |
228 | 221 | | |
| |||
263 | 256 | | |
264 | 257 | | |
265 | 258 | | |
266 | | - | |
| 259 | + | |
267 | 260 | | |
268 | 261 | | |
269 | 262 | | |
| |||
273 | 266 | | |
274 | 267 | | |
275 | 268 | | |
276 | | - | |
| 269 | + | |
277 | 270 | | |
278 | 271 | | |
279 | 272 | | |
| |||
284 | 277 | | |
285 | 278 | | |
286 | 279 | | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
291 | 283 | | |
292 | 284 | | |
293 | 285 | | |
| |||
334 | 326 | | |
335 | 327 | | |
336 | 328 | | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
341 | 332 | | |
342 | 333 | | |
343 | 334 | | |
| |||
363 | 354 | | |
364 | 355 | | |
365 | 356 | | |
366 | | - | |
| 357 | + | |
367 | 358 | | |
368 | 359 | | |
369 | 360 | | |
370 | 361 | | |
371 | 362 | | |
372 | 363 | | |
373 | 364 | | |
374 | | - | |
| 365 | + | |
375 | 366 | | |
376 | 367 | | |
377 | 368 | | |
| |||
382 | 373 | | |
383 | 374 | | |
384 | 375 | | |
385 | | - | |
| 376 | + | |
386 | 377 | | |
387 | 378 | | |
388 | 379 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
1 | 7 | | |
2 | 8 | | |
3 | 9 | | |
| |||
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
9 | | - | |
10 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
11 | 19 | | |
12 | 20 | | |
13 | 21 | | |
14 | 22 | | |
15 | 23 | | |
16 | 24 | | |
| 25 | + | |
17 | 26 | | |
18 | 27 | | |
| 28 | + | |
19 | 29 | | |
20 | 30 | | |
21 | 31 | | |
| |||
48 | 58 | | |
49 | 59 | | |
50 | 60 | | |
| 61 | + | |
51 | 62 | | |
52 | 63 | | |
53 | 64 | | |
| |||
66 | 77 | | |
67 | 78 | | |
68 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
69 | 125 | | |
70 | 126 | | |
71 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
116 | | - | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
168 | | - | |
| 169 | + | |
169 | 170 | | |
170 | 171 | | |
0 commit comments