fix merge issues and cleanup a few warnings

This commit is contained in:
Dmitriy Ryajov 2023-12-21 10:07:34 -06:00
parent 1b0b024ca8
commit 75a75446bb
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4

View File

@ -140,20 +140,8 @@ proc `$`*(self: CodexTree): string =
", leavesCount: " &
$self.leavesCount & " )"
proc `==`*(a, b: CodexMerkleProof): bool =
(a.mcodec == b.mcodec) and
(a.nleaves == b.nleaves) and
(a.path == b.path) and
(a.index == b.index)
proc `$`*(self: CodexMerkleTree): string =
"CodexMerkleTree( mcodec: " &
$self.mcodec &
", leavesCount: " &
$self.leavesCount & " )"
proc `$`*(self: CodexMerkleProof): string =
"CodexMerkleProof( mcodec: " &
proc `$`*(self: CodexProof): string =
"CodexProof( mcodec: " &
$self.mcodec & ", nleaves: " &
$self.nleaves & ", index: " &
$self.index & " )"