Commit 1e1b76a
fix: run the Inbox endpoint gate once, after a cached content verdict
An endpoint refusal used to be withheld from the validation cache, so an
RPC hiccup during the all-nodes callback threw away a content verdict that
cost a full checkpoint rebuild and block re-execution, and the attestation
callback moments later rebuilt the whole checkpoint again inside the same
duty budget. The cached-valid branch also made a second, separate endpoint
call.
The gate is now one step in handleCheckpointProposal: the content verdict
is computed once (cached or fresh) and cached unconditionally, and only
then is the endpoint confirmed, against the last block read for the same
proposal. Refusals stay non-slashable, set no invalid-slot marker and no
peer penalty, record an unvalidated outcome, and are never remembered as
the proposal's verdict, so a recovered L1 view still yields a valid verdict
on the next call — now without rebuilding. Blob upload moves next to the
content verdict so it still fires once per proposal.
Also: the README no longer claims the check "closes" a live bucket, and
names settlement as the L1-only check it does not replace; the internal
endpoint-check module is no longer re-exported; and the three fake Inboxes
in the tests collapse into one helper.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 7ecb080 commit 1e1b76a
7 files changed
Lines changed: 179 additions & 194 deletions
File tree
- yarn-project/validator-client
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
128 | 133 | | |
129 | 134 | | |
130 | 135 | | |
131 | 136 | | |
132 | 137 | | |
133 | 138 | | |
134 | 139 | | |
135 | | - | |
| 140 | + | |
136 | 141 | | |
137 | 142 | | |
138 | 143 | | |
| |||
Lines changed: 10 additions & 47 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 5 | + | |
| 6 | + | |
44 | 7 | | |
45 | 8 | | |
46 | 9 | | |
| |||
51 | 14 | | |
52 | 15 | | |
53 | 16 | | |
54 | | - | |
| 17 | + | |
55 | 18 | | |
56 | 19 | | |
57 | 20 | | |
| |||
61 | 24 | | |
62 | 25 | | |
63 | 26 | | |
64 | | - | |
| 27 | + | |
65 | 28 | | |
66 | 29 | | |
67 | 30 | | |
| |||
71 | 34 | | |
72 | 35 | | |
73 | 36 | | |
74 | | - | |
| 37 | + | |
75 | 38 | | |
76 | 39 | | |
77 | 40 | | |
| |||
82 | 45 | | |
83 | 46 | | |
84 | 47 | | |
85 | | - | |
| 48 | + | |
86 | 49 | | |
87 | 50 | | |
88 | 51 | | |
| |||
93 | 56 | | |
94 | 57 | | |
95 | 58 | | |
96 | | - | |
| 59 | + | |
97 | 60 | | |
98 | 61 | | |
99 | 62 | | |
| |||
105 | 68 | | |
106 | 69 | | |
107 | 70 | | |
108 | | - | |
| 71 | + | |
109 | 72 | | |
110 | 73 | | |
111 | 74 | | |
| |||
116 | 79 | | |
117 | 80 | | |
118 | 81 | | |
119 | | - | |
| 82 | + | |
120 | 83 | | |
121 | 84 | | |
122 | 85 | | |
| |||
127 | 90 | | |
128 | 91 | | |
129 | 92 | | |
130 | | - | |
| 93 | + | |
131 | 94 | | |
132 | 95 | | |
133 | 96 | | |
| |||
Lines changed: 67 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
Lines changed: 7 additions & 54 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
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 | | - | |
125 | | - | |
126 | 76 | | |
127 | 77 | | |
128 | 78 | | |
| |||
1233 | 1183 | | |
1234 | 1184 | | |
1235 | 1185 | | |
1236 | | - | |
| 1186 | + | |
1237 | 1187 | | |
1238 | 1188 | | |
1239 | 1189 | | |
| |||
1245 | 1195 | | |
1246 | 1196 | | |
1247 | 1197 | | |
1248 | | - | |
| 1198 | + | |
1249 | 1199 | | |
1250 | 1200 | | |
1251 | 1201 | | |
| |||
1373 | 1323 | | |
1374 | 1324 | | |
1375 | 1325 | | |
1376 | | - | |
| 1326 | + | |
| 1327 | + | |
1377 | 1328 | | |
1378 | 1329 | | |
1379 | 1330 | | |
| |||
1391 | 1342 | | |
1392 | 1343 | | |
1393 | 1344 | | |
| 1345 | + | |
| 1346 | + | |
1394 | 1347 | | |
1395 | 1348 | | |
1396 | 1349 | | |
| |||
0 commit comments