From 395f4ea46d037a2d03cc528fcbedf1656301711b Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Mon, 13 Jul 2020 18:07:59 +0300 Subject: [PATCH] consensus: limit the number of signatures used for test transactions We only need 3 out of 4. --- pkg/consensus/consensus_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/consensus/consensus_test.go b/pkg/consensus/consensus_test.go index 902a31546..0ff079a03 100644 --- a/pkg/consensus/consensus_test.go +++ b/pkg/consensus/consensus_test.go @@ -257,6 +257,7 @@ func signTx(t *testing.T, feePerByte int64, txs ...*transaction.Transaction) { privNetKeys[i] = testchain.PrivateKey(i) validators[i] = privNetKeys[i].PublicKey() } + privNetKeys = privNetKeys[:3] rawScript, err := smartcontract.CreateMultiSigRedeemScript(3, validators) require.NoError(t, err) for _, tx := range txs {