Commit 0262ece
authored
feat: remove receipts and balances from metadata (#300)
The metadata field used to contain receipts and changed account balances
as a performance optimization to be able to serve RPC requests without
actually executing the block, but we still need to execute the block in
most cases anyway. This removes the receipts and
changed_account_balances fields from the response.
These are generated during flashblock execution instead.
This still preserves skipping execution of transactions that were
executed in previous flashblocks as long as we have the receipt and
state from the previous execution. In either the cached or executed
path, cumulative_gas and next_log_index are updated.
The tests also needed to be fixed since they relied on the receipts for
logs and the changed balances. Now, since the transactions are actually
executed, we need to actually emit logs from the contracts when executed
and send balance to the address rather than relying on
changed_account_balances.1 parent 6e1eb76 commit 0262ece
File tree
11 files changed
+464
-467
lines changed- crates
- flashblocks
- benches
- src
- tests
- flashtypes
- src
- rpc/tests
11 files changed
+464
-467
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | | - | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | | - | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
24 | | - | |
| 22 | + | |
25 | 23 | | |
26 | 24 | | |
27 | 25 | | |
| |||
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
36 | | - | |
37 | | - | |
38 | 34 | | |
39 | 35 | | |
40 | 36 | | |
| |||
203 | 199 | | |
204 | 200 | | |
205 | 201 | | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | 202 | | |
221 | 203 | | |
222 | 204 | | |
| |||
242 | 224 | | |
243 | 225 | | |
244 | 226 | | |
245 | | - | |
| 227 | + | |
246 | 228 | | |
247 | 229 | | |
248 | 230 | | |
| |||
252 | 234 | | |
253 | 235 | | |
254 | 236 | | |
255 | | - | |
256 | 237 | | |
257 | 238 | | |
258 | 239 | | |
259 | 240 | | |
260 | 241 | | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | 242 | | |
270 | 243 | | |
271 | 244 | | |
| |||
283 | 256 | | |
284 | 257 | | |
285 | 258 | | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
| 259 | + | |
291 | 260 | | |
292 | 261 | | |
293 | 262 | | |
| |||
0 commit comments