Skip to content

Commit

Permalink
milestone merkle proof fix
Browse files Browse the repository at this point in the history
  • Loading branch information
galrogo committed Apr 1, 2021
1 parent 09f10e4 commit d533c4b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions go-tests/lib/milestone.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,14 @@ func CreateMilestoneInclusionMerkleProof(msgIds MessageIDs) MilestoneInclusionMe
hasher := NewHasher(crypto.BLAKE2b_256)
marshalers := make([]encoding.BinaryMarshaler, len(msgIds))
for i, msgId := range msgIds {
var marshId MarshableID
var marshId = make(MarshableID, 32)
copy(marshId, msgId[:])
marshalers[i] = marshId
}
hash, err := hasher.Hash(marshalers)
Must(err)
proof := MilestoneInclusionMerkleProof{}
for i, b := range hash {
proof[i] = b
}
copy(proof[:], hash)
return proof
}

Expand Down

0 comments on commit d533c4b

Please sign in to comment.