assert on AcctInfo.store_id with cached store (#21952)
This commit is contained in:
parent
b44f40ee3a
commit
43393ea45d
|
@ -130,6 +130,8 @@ impl AccountInfo {
|
|||
}
|
||||
|
||||
pub fn store_id(&self) -> AppendVecId {
|
||||
// if the account is in a cached store, the store_id is meaningless
|
||||
assert!(!self.is_cached());
|
||||
self.store_id
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue