* Fix long line errors in abci, crypto, and libs packages
* Fix long lines in p2p and rpc packages
* Fix long lines in abci, state, and tools packages
* Fix long lines in behaviour and blockchain packages
* Fix long lines in cmd and config packages
* Begin fixing long lines in consensus package
* Finish fixing long lines in consensus package
* Add lll exclusion for lines containing URLs
* Fix long lines in crypto package
* Fix long lines in evidence package
* Fix long lines in mempool and node packages
* Fix long lines in libs package
* Fix long lines in lite package
* Fix new long line in node package
* Fix long lines in p2p package
* Ignore gocritic warning
* Fix long lines in privval package
* Fix long lines in rpc package
* Fix long lines in scripts package
* Fix long lines in state package
* Fix long lines in tools package
* Fix long lines in types package
* Enable lll linter
// TODO: uncommenting this creates a race which is detected by: https://github.com/golang/go/blob/2bd767b1022dd3254bcec469f0ee164024726486/src/testing/testing.go#L854-L856
// TODO: uncommenting this creates a race which is detected by:
cmd.Flags().String("priv_validator_laddr",config.PrivValidatorListenAddr,"Socket address to listen on for connections from external priv_validator process")
cmd.Flags().String(
"priv_validator_laddr",
config.PrivValidatorListenAddr,
"Socket address to listen on for connections from external priv_validator process")
cmd.Flags().String("proxy_app",config.ProxyApp,"Proxy app address, or one of: 'kvstore', 'persistent_kvstore', 'counter', 'counter_serial' or 'noop' for local testing.")
cmd.Flags().String(
"proxy_app",
config.ProxyApp,
"Proxy app address, or one of: 'kvstore',"+
" 'persistent_kvstore',"+
" 'counter',"+
" 'counter_serial' or 'noop' for local testing.")
cmd.Flags().String("abci",config.ABCI,"Specify abci transport (socket | grpc)")
cmd.Flags().String("abci",config.ABCI,"Specify abci transport (socket | grpc)")
// rpc flags
// rpc flags
cmd.Flags().String("rpc.laddr",config.RPC.ListenAddress,"RPC listen address. Port required")
cmd.Flags().String("rpc.laddr",config.RPC.ListenAddress,"RPC listen address. Port required")
cmd.Flags().String("rpc.grpc_laddr",config.RPC.GRPCListenAddress,"GRPC listen address (BroadcastTx only). Port required")
cmd.Flags().String(
"rpc.grpc_laddr",
config.RPC.GRPCListenAddress,
"GRPC listen address (BroadcastTx only). Port required")
cmd.Flags().Bool("consensus.create_empty_blocks",config.Consensus.CreateEmptyBlocks,"Set this to false to only produce blocks when there are txs or when the AppHash changes")
cmd.Flags().Bool(
"consensus.create_empty_blocks",
config.Consensus.CreateEmptyBlocks,
"Set this to false to only produce blocks when there are txs or when the AppHash changes")
}
}
// NewRunNodeCmd returns the command that allows the CLI to start a node.
// NewRunNodeCmd returns the command that allows the CLI to start a node.
t.Errorf("expected voting power to change (before: %d, after: %d)",previousTotalVotingPower,css[nVals].GetRoundState().LastValidators.TotalVotingPower())
t.Errorf(
"expected voting power to change (before: %d, after: %d)",
{"some long secret",[]byte("We live in a society exquisitely dependent on science and technology, in which hardly anyone knows anything about science and technology.")},
{
"some long secret",
[]byte("We live in a society exquisitely dependent on science and technology, "+
"in which hardly anyone knows anything about science and technology."),
},
{"another seed used in cosmos tests #1",[]byte{0}},
{"another seed used in cosmos tests #1",[]byte{0}},
{"another seed used in cosmos tests #2",[]byte("mySecret")},
{"another seed used in cosmos tests #2",[]byte("mySecret")},
{"another seed used in cosmos tests #3",[]byte("")},
{"another seed used in cosmos tests #3",[]byte("")},
subscription3,err:=s.Subscribe(ctx,"client-3",query.MustParse("tm.events.type='NewRoundStep' AND abci.account.name='Igor' AND abci.invoice.number = 10"))
subscription3,err:=s.Subscribe(
ctx,
"client-3",
query.MustParse("tm.events.type='NewRoundStep' AND abci.account.name='Igor' AND abci.invoice.number = 10"),
panic(fmt.Sprintf("got %v while trying to parse %s as time.Time / '2006-01-02' (should never happen if the grammar is correct)",err,buffer[begin:end]))
panic(fmt.Sprintf(
"got %v while trying to parse %s as time.Time / '2006-01-02' (should never happen if the grammar is correct)",
panic(fmt.Sprintf("got %v while trying to parse %s as time.Time / '2006-01-02' (should never happen if the grammar is correct)",err,buffer[begin:end]))
panic(fmt.Sprintf(
"got %v while trying to parse %s as time.Time / '2006-01-02' (should never happen if the grammar is correct)",
flagSet.IntVar(&connections,"c",1,"Connections to keep open per endpoint")
flagSet.IntVar(&connections,"c",1,"Connections to keep open per endpoint")
@ -29,14 +31,20 @@ func main() {
flagSet.IntVar(&txsRate,"r",1000,"Txs per second to send in a connection")
flagSet.IntVar(&txsRate,"r",1000,"Txs per second to send in a connection")
flagSet.IntVar(&txSize,"s",250,"The size of a transaction in bytes, must be greater than or equal to 40.")
flagSet.IntVar(&txSize,"s",250,"The size of a transaction in bytes, must be greater than or equal to 40.")
flagSet.StringVar(&outputFormat,"output-format","plain","Output format: plain or json")
flagSet.StringVar(&outputFormat,"output-format","plain","Output format: plain or json")
flagSet.StringVar(&broadcastTxMethod,"broadcast-tx-method","async","Broadcast method: async (no guarantees; fastest), sync (ensures tx is checked) or commit (ensures tx is checked and committed; slowest)")
flagSet.StringVar(
&broadcastTxMethod,
"broadcast-tx-method",
"async",
"Broadcast method: async (no guarantees; fastest),"+
" sync (ensures tx is checked) or commit (ensures tx is checked and committed; slowest)",