fix invariant check: number of entries in datacap actor should include verifreg
This commit is contained in:
parent
04f32ba119
commit
394c3b6deb
@ -253,7 +253,8 @@ func checkDatacaps(stateTreeV8 *state.StateTree, stateTreeV9 *state.StateTree, a
|
||||
return err
|
||||
}
|
||||
|
||||
if len(verifregDatacaps) != len(newDatacaps) {
|
||||
// Should have all the v8 datacaps, plus the verifreg actor itself
|
||||
if len(verifregDatacaps)+1 != len(newDatacaps) {
|
||||
return xerrors.Errorf("size of datacap maps do not match. verifreg: %d, datacap: %d", len(verifregDatacaps), len(newDatacaps))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user