Commit df94fca
committed
fix: invalidate WASM cache on upload + wire cache invalidator to RPC
- Always invalidate WASM cache on any ChallengeUpdate (including wasm_upload)
- Add wasm_cache_invalidator callback to RpcHandler
- Invalidate cache immediately in RPC upload handler (self-broadcast not received)
- Fixes stale WASM module after sudo upload1 parent b7c2a37 commit df94fca
File tree
3 files changed
+48
-5
lines changed- bins/validator-node/src
- crates/rpc-server/src
3 files changed
+48
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
862 | 862 | | |
863 | 863 | | |
864 | 864 | | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
865 | 899 | | |
866 | 900 | | |
867 | 901 | | |
| |||
3064 | 3098 | | |
3065 | 3099 | | |
3066 | 3100 | | |
3067 | | - | |
3068 | | - | |
3069 | | - | |
3070 | | - | |
3071 | | - | |
| 3101 | + | |
| 3102 | + | |
| 3103 | + | |
3072 | 3104 | | |
3073 | 3105 | | |
3074 | 3106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
| 198 | + | |
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
| |||
209 | 211 | | |
210 | 212 | | |
211 | 213 | | |
| 214 | + | |
212 | 215 | | |
213 | 216 | | |
214 | 217 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1238 | 1238 | | |
1239 | 1239 | | |
1240 | 1240 | | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
1241 | 1249 | | |
1242 | 1250 | | |
1243 | 1251 | | |
| |||
0 commit comments