Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Commit

Permalink
Fix block sync error at BH-19,251,868
Browse files Browse the repository at this point in the history
* Add the last_key of which value is b"" to a final_key generation
* TxIndex: 9
  • Loading branch information
goldworm committed Nov 11, 2020
1 parent cc658b5 commit d9fd269
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions iconservice/iconscore/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ def _get_container_final_key_with_pipe(self, last_key: Key) -> List[bytes]:
keys.append(self._tag.value)
keys.append(key.value)

if len(last_key.value) > 0:
keys.append(last_key.value)
keys.append(last_key.value)

return keys

Expand Down

0 comments on commit d9fd269

Please sign in to comment.