mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-15 11:53:12 +00:00
root returns a result
This commit is contained in:
parent
befe9775be
commit
5e528756a2
@ -140,8 +140,20 @@ proc `$`*(self: CodexTree): string =
|
||||
", leavesCount: " &
|
||||
$self.leavesCount & " )"
|
||||
|
||||
proc `$`*(self: CodexProof): string =
|
||||
"CodexProof( mcodec: " &
|
||||
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: " &
|
||||
$self.mcodec & ", nleaves: " &
|
||||
$self.nleaves & ", index: " &
|
||||
$self.index & " )"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user