lib/protocol: Zero pad index ID strings

This commit is contained in:
Jakob Borg
2020-03-17 07:40:52 +01:00
parent 1bd4ea0cbb
commit e053db6a5e
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -324,7 +324,7 @@ func (b BlockInfo) IsEmpty() bool {
type IndexID uint64
func (i IndexID) String() string {
return fmt.Sprintf("0x%16X", uint64(i))
return fmt.Sprintf("0x%016X", uint64(i))
}
func (i IndexID) Marshal() ([]byte, error) {