mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-29 13:41:47 +00:00
consensus: don't do useless key sorting
They're already sorted out of smartcontract.CreateMultiSigRedeemScript(). Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
parent
32e3310205
commit
e0cf47e6d0
1 changed files with 0 additions and 3 deletions
|
@ -4,7 +4,6 @@ import (
|
|||
"errors"
|
||||
"fmt"
|
||||
"slices"
|
||||
"sort"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
|
@ -652,8 +651,6 @@ func (s *service) getBlockWitness(b *coreb.Block) *transaction.Witness {
|
|||
return nil
|
||||
}
|
||||
|
||||
sort.Sort(keys.PublicKeys(pubs))
|
||||
|
||||
buf := io.NewBufBinWriter()
|
||||
for i, j := 0, 0; i < len(pubs) && j < m; i++ {
|
||||
if sig, ok := sigs[pubs[i]]; ok {
|
||||
|
|
Loading…
Reference in a new issue