forked from TrueCloudLab/neoneo-go
consensus: limit the number of signatures used for test transactions
We only need 3 out of 4.
This commit is contained in:
parent
330e1670d6
commit
395f4ea46d
1 changed files with 1 additions and 0 deletions
|
@ -257,6 +257,7 @@ func signTx(t *testing.T, feePerByte int64, txs ...*transaction.Transaction) {
|
||||||
privNetKeys[i] = testchain.PrivateKey(i)
|
privNetKeys[i] = testchain.PrivateKey(i)
|
||||||
validators[i] = privNetKeys[i].PublicKey()
|
validators[i] = privNetKeys[i].PublicKey()
|
||||||
}
|
}
|
||||||
|
privNetKeys = privNetKeys[:3]
|
||||||
rawScript, err := smartcontract.CreateMultiSigRedeemScript(3, validators)
|
rawScript, err := smartcontract.CreateMultiSigRedeemScript(3, validators)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
for _, tx := range txs {
|
for _, tx := range txs {
|
||||||
|
|
Loading…
Add table
Reference in a new issue