Skip to content

Commit

Permalink
Refactor: addressed linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hmoog committed Oct 28, 2023
1 parent fc0da15 commit a62763c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/protocol/protocol_warp_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (w *WarpSyncProtocol) ProcessResponse(commitmentID iotago.CommitmentID, blo
_ = acceptedBlocks.Add(blockID) // a mapdb can newer return an error
}

if !iotago.VerifyProof(proof, iotago.Identifier(acceptedBlocks.Root()), commitment.RootsID()) {
if !iotago.VerifyProof(proof, acceptedBlocks.Root(), commitment.RootsID()) {
w.LogError("failed to verify blocks proof", "commitment", commitment.LogName(), "blockIDs", blockIDs, "proof", proof, "fromPeer", from)

return false
Expand Down

0 comments on commit a62763c

Please sign in to comment.