Skip to content

Commit

Permalink
Add todo reminders
Browse files Browse the repository at this point in the history
  • Loading branch information
dimartiro committed Jun 7, 2023
1 parent 12e8e32 commit 8272ec2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/trie/node/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ func decodeBranch(reader io.Reader, variant variant, partialKeyLength uint16) (
}
} else if variant == branchWithHashedValueVariant {
buffer := make([]byte, common.HashLength)
//TODO: check that we read 32 bytes in the buffer
err = sd.Decode(&buffer)
node.StorageValue = buffer
if err != nil {
Expand Down Expand Up @@ -142,6 +143,7 @@ func decodeLeaf(reader io.Reader, variant variant, partialKeyLength uint16) (nod

if variant == leafWithHashedValueVariant {
buffer := make([]byte, common.HashLength)
//TODO: check that we read 32 bytes in the buffer
err = sd.Decode(&buffer)
node.StorageValue = buffer
} else {
Expand Down

0 comments on commit 8272ec2

Please sign in to comment.