refactor: remove bytes/HexBytes (#15211)

Co-authored-by: chixiaowen <chixiaowen@zhigui.com>
This commit is contained in:
Chi Xiao Wen
2023-03-01 18:27:23 +00:00
committed by GitHub
co-authored by chixiaowen
parent 23ef32a35c
commit a49151d693
18 changed files with 144 additions and 138 deletions
+1 -2
View File
@@ -9,7 +9,6 @@ import (
abci "github.com/cometbft/cometbft/abci/types"
cryptoenc "github.com/cometbft/cometbft/crypto/encoding"
cmtbytes "github.com/cometbft/cometbft/libs/bytes"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
)
@@ -60,7 +59,7 @@ func (vals mockValidators) getKeys() []string {
}
// randomProposer picks a random proposer from the current validator set
func (vals mockValidators) randomProposer(r *rand.Rand) cmtbytes.HexBytes {
func (vals mockValidators) randomProposer(r *rand.Rand) []byte {
keys := vals.getKeys()
if len(keys) == 0 {
return nil