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
@@ -5,7 +5,6 @@ import (
"github.com/spf13/cobra"
"github.com/cometbft/cometbft/libs/bytes"
"github.com/cometbft/cometbft/p2p"
coretypes "github.com/cometbft/cometbft/rpc/core/types"
@@ -18,7 +17,7 @@ import (
// ValidatorInfo is info about the node's validator, same as CometBFT,
// except that we use our own PubKey.
type validatorInfo struct {
Address bytes.HexBytes
Address []byte
PubKey cryptotypes.PubKey
VotingPower int64
}