Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Fix build (#1280)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbelvin authored May 16, 2019
1 parent 7d962e1 commit 7d43485
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/monitor/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,9 @@ func (m *Monitor) verifyMutations(muts []*pb.MutationProof, oldRoot *trillian.Si
// BUG(gdbelvin): Proto serializations are not idempotent.
// - Upgrade the hasher to use ObjectHash.
// - Use deep compare between the tree and the computed value.
leafHash, err := m.mapVerifier.Hasher.HashLeaf(m.mapVerifier.MapID, index, leaf)
if err != nil {
errs.appendErr(err)
}
newLeaves = append(newLeaves, &merkle.HStar2LeafHash{
Index: leafNodeID.BigInt(),
LeafHash: leafHash,
LeafHash: m.mapVerifier.Hasher.HashLeaf(m.mapVerifier.MapID, index, leaf),
})

// store the proof hashes locally to recompute the tree below:
Expand Down

0 comments on commit 7d43485

Please sign in to comment.