Commit c412b3a
authored
Add support for actor upgrades (#1866)
This PR adds support for actor upgrades through a new `sdk::actor::upgrade_actor` syscall. This allows actors to upgrade to a new version while still keeping the same address, balance, etc.
Instead of introducing a separate syscall to fetch `get_old_code_cid` this PR implements the alternative where we pass a upgrade metadata to the upgrade endpoint as proposed [here](filecoin-project/FIPs#396 (comment)).
fixes #1711 parent 1c13285 commit c412b3a
File tree
37 files changed
+1100
-321
lines changed- fvm
- src
- call_manager
- executor
- kernel
- syscalls
- trace
- tests
- sdk/src
- sys
- testing
- conformance/src
- integration
- tests
- test_actors
- actors
- fil-syscall-actor/src
- fil-upgrade-actor
- src
- fil-upgrade-receive-actor
- src
37 files changed
+1100
-321
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 | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
79 | | - | |
80 | | - | |
| 81 | + | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
93 | | - | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| |||
0 commit comments