Commit 814e98d
4059: Track script/transaction procedure program depedencies r=janezpodhostnik a=janezpodhostnik
ref: onflow/cadence#1684
Change the dependency stack for transaction/script programs to always have root dependencies. The root dependencies in this case are dependencies of the script/transaction procedure itself.
The reason we want this is to have a map of "seen" imports, so we know when we need to reapply metering and when not... which is the next/last step in this PR chain.
I added a reset (which is called when switching from the transactions happy path/normal execution to the transaction failure path/fee deduction) that clears all non address programs and dependencies tracked, to avoid any potential cache poisoning.
4066: Remove derived block/txn data from (most) tests r=pattyshack a=pattyshack
Derived txn data is now an optional parameter. The explicit setup is no longer needed (except for programs test and benchmark)
Co-authored-by: Janez Podhostnik <[email protected]>
Co-authored-by: Patrick Lee <[email protected]>
File tree
12 files changed
+225
-356
lines changed- cmd/util/ledger/reporters
- engine/execution
- computation
- testutil
- fvm
- environment
12 files changed
+225
-356
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
52 | | - | |
53 | 51 | | |
54 | 52 | | |
55 | 53 | | |
56 | 54 | | |
57 | | - | |
58 | 55 | | |
59 | 56 | | |
60 | 57 | | |
| |||
103 | 100 | | |
104 | 101 | | |
105 | 102 | | |
106 | | - | |
| 103 | + | |
107 | 104 | | |
108 | 105 | | |
109 | 106 | | |
| |||
132 | 129 | | |
133 | 130 | | |
134 | 131 | | |
135 | | - | |
| 132 | + | |
136 | 133 | | |
137 | 134 | | |
138 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
708 | | - | |
| 708 | + | |
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
| |||
861 | 861 | | |
862 | 862 | | |
863 | 863 | | |
864 | | - | |
865 | | - | |
866 | 864 | | |
867 | 865 | | |
868 | 866 | | |
869 | 867 | | |
870 | 868 | | |
871 | | - | |
| 869 | + | |
872 | 870 | | |
873 | 871 | | |
874 | 872 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| |||
214 | 213 | | |
215 | 214 | | |
216 | 215 | | |
217 | | - | |
218 | 216 | | |
219 | 217 | | |
220 | 218 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
190 | 189 | | |
191 | 190 | | |
192 | 191 | | |
193 | | - | |
194 | 192 | | |
195 | 193 | | |
196 | 194 | | |
197 | | - | |
| 195 | + | |
198 | 196 | | |
199 | 197 | | |
200 | 198 | | |
201 | 199 | | |
202 | 200 | | |
203 | | - | |
204 | 201 | | |
205 | 202 | | |
206 | 203 | | |
207 | 204 | | |
208 | 205 | | |
209 | 206 | | |
210 | 207 | | |
211 | | - | |
212 | 208 | | |
213 | 209 | | |
214 | 210 | | |
| |||
251 | 247 | | |
252 | 248 | | |
253 | 249 | | |
254 | | - | |
255 | | - | |
256 | | - | |
| 250 | + | |
257 | 251 | | |
258 | 252 | | |
259 | 253 | | |
| |||
0 commit comments