Commit ae6d0af
committed
feat: complete block tracking integration
- Add block_id to PutOptions for automatic block tracking
- Add PutOptions::with_block() helper method
- LocalStorage::put now automatically updates metadata with block info
- Add execute_sync_with_block() and execute_get_weights_with_block() methods
- Pass block_height and epoch to WASM instances via InstanceConfig
- Add put_options_with_block() helper in validator
- Update sync and weight execution to pass current block context1 parent e08a6b0 commit ae6d0af
File tree
4 files changed
+58
-4
lines changed- bins/validator-node/src
- crates/distributed-storage/src
4 files changed
+58
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
95 | 101 | | |
96 | 102 | | |
97 | 103 | | |
| |||
1519 | 1525 | | |
1520 | 1526 | | |
1521 | 1527 | | |
| 1528 | + | |
1522 | 1529 | | |
1523 | 1530 | | |
1524 | 1531 | | |
1525 | 1532 | | |
1526 | 1533 | | |
1527 | | - | |
| 1534 | + | |
1528 | 1535 | | |
1529 | 1536 | | |
1530 | 1537 | | |
| |||
3163 | 3170 | | |
3164 | 3171 | | |
3165 | 3172 | | |
| 3173 | + | |
| 3174 | + | |
3166 | 3175 | | |
3167 | | - | |
| 3176 | + | |
3168 | 3177 | | |
3169 | 3178 | | |
3170 | 3179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
915 | 915 | | |
916 | 916 | | |
917 | 917 | | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
918 | 928 | | |
919 | 929 | | |
920 | 930 | | |
| |||
932 | 942 | | |
933 | 943 | | |
934 | 944 | | |
| 945 | + | |
| 946 | + | |
935 | 947 | | |
936 | 948 | | |
937 | 949 | | |
| |||
990 | 1002 | | |
991 | 1003 | | |
992 | 1004 | | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
993 | 1016 | | |
994 | 1017 | | |
995 | 1018 | | |
| |||
1007 | 1030 | | |
1008 | 1031 | | |
1009 | 1032 | | |
| 1033 | + | |
| 1034 | + | |
1010 | 1035 | | |
1011 | 1036 | | |
1012 | 1037 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
600 | | - | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
601 | 609 | | |
602 | 610 | | |
603 | 611 | | |
604 | 612 | | |
605 | 613 | | |
606 | 614 | | |
607 | | - | |
| 615 | + | |
608 | 616 | | |
609 | 617 | | |
610 | 618 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
241 | 253 | | |
242 | 254 | | |
243 | 255 | | |
| |||
0 commit comments