Skip to content

Commit 2db4ee5

Browse files
committed
CR updates
1 parent 1e96dd6 commit 2db4ee5

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

data/transactions/verify/txn.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ func stxnCoreChecks(s *transactions.SignedTxn, txnIdx int, groupCtx *GroupContex
220220
return errors.New("multisig validation failed")
221221
}
222222
if hasLogicSig {
223-
return logicSigBatchVerify(s, txnIdx, groupCtx)
223+
return logicSigVerify(s, txnIdx, groupCtx)
224224
}
225225
return errors.New("has one mystery sig. WAT?")
226226
}
@@ -314,9 +314,7 @@ func logicSigSanityCheckBatchVerifyPrep(txn *transactions.SignedTxn, groupIndex
314314
return nil
315315
}
316316

317-
// logicSigBatchVerify checks that the signature is valid, executing the program.
318-
// it is the caller responsibility to call batchVerifier.verify()
319-
func logicSigBatchVerify(txn *transactions.SignedTxn, groupIndex int, groupCtx *GroupContext) error {
317+
func logicSigVerify(txn *transactions.SignedTxn, groupIndex int, groupCtx *GroupContext) error {
320318
err := LogicSigSanityCheck(txn, groupIndex, groupCtx)
321319
if err != nil {
322320
return err

data/transactions/verify/txn_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ func verifyTxn(s *transactions.SignedTxn, txnIdx int, groupCtx *GroupContext) er
5858
return err
5959
}
6060

61-
// this case is used for comapact certificate where no signature is supplied
6261
if batchVerifier.GetNumberOfEnqueuedSignatures() == 0 {
6362
return nil
6463
}

0 commit comments

Comments
 (0)