Commit 302a15c
committed
refactor(upgrade): make v1.3.0 a noop — authz grants are create-only gates (release/1.3.x)
Mirror of the #263 decision on release/1.3.x. The only authz grants
moca's state machine reads are create-time gates (validator self-del ->
gov MsgDelegate in MsgCreateValidator, SP funding -> gov MsgDeposit in
MsgCreateStorageProvider); nothing consumes them after creation, and a
new creator re-grants before creating, so the grants the moca-iavl bug
dropped need no restoration. Restoring/deleting from a handler is also
consensus-unsafe (enumeration via the store iterator reads the fastnode,
not the tree, and forks on a node whose fastnode is missing a tree-backed
key).
Real fixes are not a handler: cosmos/iavl#1009 in the binary stops the
prove=true panic, and an IAVL fastnode rebuild (state-sync /
fastStorageVersionValue bump) clears the drift.
Removes app/upgrades/v1_3_0_authz_recovery.go and its test.1 parent e2dd822 commit 302a15c
4 files changed
Lines changed: 18 additions & 174 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1559 | 1559 | | |
1560 | 1560 | | |
1561 | 1561 | | |
1562 | | - | |
1563 | | - | |
1564 | | - | |
1565 | | - | |
1566 | | - | |
1567 | | - | |
1568 | | - | |
1569 | | - | |
1570 | | - | |
1571 | | - | |
1572 | | - | |
1573 | | - | |
1574 | | - | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
1575 | 1579 | | |
1576 | 1580 | | |
1577 | 1581 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments