mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 14:52:17 +00:00
linting: apply misspell
This commit is contained in:
parent
46ccbcbff6
commit
1721543e5c
@ -569,7 +569,7 @@ type Channel struct {
|
||||
func newChannel(conn *MConnection, desc ChannelDescriptor) *Channel {
|
||||
desc = desc.FillDefaults()
|
||||
if desc.Priority <= 0 {
|
||||
cmn.PanicSanity("Channel default priority must be a postive integer")
|
||||
cmn.PanicSanity("Channel default priority must be a positive integer")
|
||||
}
|
||||
return &Channel{
|
||||
conn: conn,
|
||||
|
@ -511,7 +511,7 @@ func MakeConnectedSwitches(cfg *cfg.P2PConfig, n int, initSwitch func(int, *Swit
|
||||
}
|
||||
|
||||
// Connect2Switches will connect switches i and j via net.Pipe().
|
||||
// Blocks until a conection is established.
|
||||
// Blocks until a connection is established.
|
||||
// NOTE: caller ensures i and j are within bounds.
|
||||
func Connect2Switches(switches []*Switch, i, j int) {
|
||||
switchI := switches[i]
|
||||
|
@ -150,7 +150,7 @@ func TestParseRPC(t *testing.T) {
|
||||
{`{"name": "john", "height": 22}`, 22, "john", false},
|
||||
// defaults
|
||||
{`{"name": "solo", "unused": "stuff"}`, 0, "solo", false},
|
||||
// should fail - wrong types/lenght
|
||||
// should fail - wrong types/length
|
||||
{`["flew", 7]`, 0, "", true},
|
||||
{`[7,"flew",100]`, 0, "", true},
|
||||
{`{"name": -12, "height": "fred"}`, 0, "", true},
|
||||
|
@ -71,7 +71,7 @@ func (v *Validator) String() string {
|
||||
}
|
||||
|
||||
// Hash computes the unique ID of a validator with a given voting power.
|
||||
// It exludes the Accum value, which changes with every round.
|
||||
// It excludes the Accum value, which changes with every round.
|
||||
func (v *Validator) Hash() []byte {
|
||||
return wire.BinaryRipemd160(struct {
|
||||
Address data.Bytes
|
||||
|
Loading…
x
Reference in New Issue
Block a user