diff --git a/pkg/services/notary/notary.go b/pkg/services/notary/notary.go index 8c30f9ed0..ec35c47b7 100644 --- a/pkg/services/notary/notary.go +++ b/pkg/services/notary/notary.go @@ -339,9 +339,6 @@ func (n *Notary) verifyIncompleteWitnesses(tx *transaction.Transaction, nKeys ui if len(tx.Signers) < 2 { return Unknown, 0, nil, errors.New("transaction should have at least 2 signers") } - if len(tx.Signers) != len(tx.Scripts) { - return Unknown, 0, nil, fmt.Errorf("transaction should have %d witnesses attached (completed + dummy)", len(tx.Signers)) - } if !tx.HasSigner(n.Config.Chain.GetNotaryContractScriptHash()) { return Unknown, 0, nil, fmt.Errorf("P2PNotary contract should be a signer of the transaction") } diff --git a/pkg/services/notary/notary_test.go b/pkg/services/notary/notary_test.go index 452f6a173..cc6a51973 100644 --- a/pkg/services/notary/notary_test.go +++ b/pkg/services/notary/notary_test.go @@ -94,12 +94,6 @@ func TestVerifyIncompleteRequest(t *testing.T) { Scripts: []transaction.Witness{{}}, }, }, - "signers count and witnesses count mismatch": { - tx: &transaction.Transaction{ - Signers: []transaction.Signer{{Account: notaryContractHash}, {}}, - Scripts: []transaction.Witness{{}, {}, {}}, - }, - }, "missing Notary witness": { tx: &transaction.Transaction{ Signers: []transaction.Signer{{Account: acc1.GetScriptHash()}, {Account: acc2.GetScriptHash()}},