forked from TrueCloudLab/frostfs-node
[#2091] neofs-adm: Sign blocks properly in tests
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
6882887bdd
commit
59db66cdb6
1 changed files with 1 additions and 4 deletions
|
@ -1,7 +1,6 @@
|
||||||
package morph
|
package morph
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
|
||||||
"crypto/elliptic"
|
"crypto/elliptic"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
@ -81,9 +80,7 @@ func newLocalClient(cmd *cobra.Command, v *viper.Viper, wallets []*wallet.Wallet
|
||||||
return indexMap[string(pi)] < indexMap[string(pj)]
|
return indexMap[string(pi)] < indexMap[string(pj)]
|
||||||
})
|
})
|
||||||
sort.Slice(accounts[:cfg.ProtocolConfiguration.ValidatorsCount], func(i, j int) bool {
|
sort.Slice(accounts[:cfg.ProtocolConfiguration.ValidatorsCount], func(i, j int) bool {
|
||||||
pi := accounts[i].PrivateKey().PublicKey().Bytes()
|
return accounts[i].PublicKey().Cmp(accounts[j].PublicKey()) == -1
|
||||||
pj := accounts[j].PrivateKey().PublicKey().Bytes()
|
|
||||||
return bytes.Compare(pi, pj) == -1
|
|
||||||
})
|
})
|
||||||
|
|
||||||
go bc.Run()
|
go bc.Run()
|
||||||
|
|
Loading…
Reference in a new issue