Skip to content

Commit

Permalink
remove extra signature verification
Browse files Browse the repository at this point in the history
  • Loading branch information
S0naliThakur committed Nov 26, 2024
1 parent 692e4a2 commit 793f574
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/Data/Collector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -623,12 +623,6 @@ export const verifyReceiptData = async (
)
continue
}
if (!Crypto.verify({ ...appliedReceipt.tx, sign })) {
Logger.mainLogger.error(`Invalid signature from node ${nodePubKey}`)
if (nestedCountersInstance)
nestedCountersInstance.countEvent('receipt', 'globalModification_sign_invalid_signature')
continue
}
uniqueSigners.add(nodePubKey)
}
isReceiptMajority =
Expand Down Expand Up @@ -874,12 +868,6 @@ const verifyAppliedReceiptSignatures = (
)
continue
}
if (!Crypto.verify({ ...tx, sign })) {
Logger.mainLogger.error(`Invalid signature from node ${nodePubKey}`)
if (nestedCountersInstance)
nestedCountersInstance.countEvent('receipt', 'globalModification_sign_invalid_signature')
continue
}
acceptableSigners.add(sign)
}
// Using a map to store the good signatures to avoid duplicates
Expand Down

0 comments on commit 793f574

Please sign in to comment.