@lodestar/fork-choice 1.51.0-dev.02c5a19f35 → 1.51.0-dev.0b0a00b836
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/forkChoice/fastConfirmation/utils.d.ts.map +1 -1
- package/lib/forkChoice/fastConfirmation/utils.js +19 -24
- package/lib/forkChoice/fastConfirmation/utils.js.map +1 -1
- package/lib/forkChoice/forkChoice.d.ts +12 -10
- package/lib/forkChoice/forkChoice.d.ts.map +1 -1
- package/lib/forkChoice/forkChoice.js +34 -27
- package/lib/forkChoice/forkChoice.js.map +1 -1
- package/lib/forkChoice/interface.d.ts +4 -2
- package/lib/forkChoice/interface.d.ts.map +1 -1
- package/lib/protoArray/protoArray.d.ts.map +1 -1
- package/lib/protoArray/protoArray.js +7 -0
- package/lib/protoArray/protoArray.js.map +1 -1
- package/package.json +7 -7
- package/src/forkChoice/fastConfirmation/utils.ts +21 -20
- package/src/forkChoice/forkChoice.ts +38 -29
- package/src/forkChoice/interface.ts +5 -3
- package/src/protoArray/protoArray.ts +9 -0
|
@@ -1295,6 +1295,15 @@ export class ProtoArray {
|
|
|
1295
1295
|
|
|
1296
1296
|
// For Gloas: check if from previous slot
|
|
1297
1297
|
if (node.slot + 1 !== currentSlot) {
|
|
1298
|
+
// During the block's own slot a payload known to not satisfy the inclusion list
|
|
1299
|
+
// constraints ranks below its EMPTY variant, as it will from the next slot on
|
|
1300
|
+
if (
|
|
1301
|
+
node.slot === currentSlot &&
|
|
1302
|
+
node.payloadStatus === PayloadStatus.FULL &&
|
|
1303
|
+
this.payloadInclusionListSatisfaction.get(node.blockRoot) === false
|
|
1304
|
+
) {
|
|
1305
|
+
return PayloadStatus.PENDING;
|
|
1306
|
+
}
|
|
1298
1307
|
return node.payloadStatus;
|
|
1299
1308
|
}
|
|
1300
1309
|
|