ChainData: Overwrite data on the same key, slot, write version update

This commit is contained in:
Christian Kamm 2023-03-17 10:41:19 +01:00
parent 96ca006963
commit ebd392e628
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ impl ChainData {
.unwrap_or(v.len());
let pos = v.len() - rev_pos;
if pos < v.len() && v[pos].slot == account.slot {
if v[pos].write_version < account.write_version {
if v[pos].write_version <= account.write_version {
v[pos] = account;
}
} else {