Preparing report...

Report for github.com/aergoio/aergo

A    Great!    Found 378 issues across 537 files

Tweet

gofmt63%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo95%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

    • aergo/mempool/mempool.go
    • Line 613: warning: cyclomatic complexity 39 of function (*MemPool).validateTx() is high (> 15) (gocyclo)
    • Line 232: warning: cyclomatic complexity 16 of function (*MemPool).Receive() is high (> 15) (gocyclo)
    • aergo/cmd/aergocli/util/encoding/json/encode.go
    • Line 1051: warning: cyclomatic complexity 31 of function typeFields() is high (> 15) (gocyclo)
    • Line 391: warning: cyclomatic complexity 22 of function newTypeEncoder() is high (> 15) (gocyclo)
    • Line 868: warning: cyclomatic complexity 19 of function (*encodeState).string() is high (> 15) (gocyclo)
    • Line 940: warning: cyclomatic complexity 19 of function (*encodeState).stringBytes() is high (> 15) (gocyclo)
    • Line 546: warning: cyclomatic complexity 17 of function (floatEncoder).encode() is high (> 15) (gocyclo)
    • aergo/cmd/aergocli/util/encoding/json/decode.go
    • Line 844: warning: cyclomatic complexity 55 of function (*decodeState).literalStore() is high (> 15) (gocyclo)
    • Line 606: warning: cyclomatic complexity 52 of function (*decodeState).object() is high (> 15) (gocyclo)
    • Line 1178: warning: cyclomatic complexity 30 of function unquoteBytes() is high (> 15) (gocyclo)
    • Line 204: warning: cyclomatic complexity 27 of function isValidNumber() is high (> 15) (gocyclo)
    • Line 500: warning: cyclomatic complexity 24 of function (*decodeState).array() is high (> 15) (gocyclo)
    • Line 433: warning: cyclomatic complexity 21 of function indirect() is high (> 15) (gocyclo)
    • aergo/p2p/synctx_test.go
    • Line 324: warning: cyclomatic complexity 21 of function Test_txSyncManager_refineFrontCache() is high (> 15) (gocyclo)
    • Line 189: warning: cyclomatic complexity 20 of function Test_txSyncManager_refineFrontCacheConsumption() is high (> 15) (gocyclo)
    • Line 20: warning: cyclomatic complexity 16 of function Test_syncTxManager_HandleNewTxNotice() is high (> 15) (gocyclo)
    • aergo/p2p/synctx.go
    • Line 372: warning: cyclomatic complexity 17 of function (*syncTxManager).refineFrontCache() is high (> 15) (gocyclo)
    • Line 261: warning: cyclomatic complexity 16 of function (*syncTxManager).handleTxReq() is high (> 15) (gocyclo)

golint52%

Golint is a linter for Go source code.

    • aergo/chain/chainhandle.go
    • Line 29: warning: exported var ErrorNoAncestor should have comment or be unexported (golint)
    • Line 42: warning: exported type BlockRewardFn should have comment or be unexported (golint)
    • Line 44: warning: exported type ErrReorg should have comment or be unexported (golint)
    • Line 52: warning: exported type ErrBlock should have comment or be unexported (golint)
    • Line 61: warning: exported type ErrTx should have comment or be unexported (golint)
    • Line 79: warning: exported method ChainService.GetBestBlock should have comment or be unexported (golint)
    • Line 87: warning: exported method ChainService.GetBlock should have comment or be unexported (golint)
    • Line 95: warning: exported method ChainService.GetHashByNo should have comment or be unexported (golint)
    • Line 167: warning: exported const MaxEventSize should have comment or be unexported (golint)
    • Line 199: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 206: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 388: warning: error should be the last type when returning multiple items (golint)
    • Line 528: warning: exported method ChainService.CountTxsInChain should have comment or be unexported (golint)
    • Line 555: warning: exported type TxExecFn should have comment or be unexported (golint)
    • Line 556: warning: exported type ValidatePostFn should have comment or be unexported (golint)
    • Line 557: warning: exported type ValidateSignWaitFn should have comment or be unexported (golint)
    • Line 1038: warning: exported function DecorateBlockRewardFn should have comment or be unexported (golint)
    • aergo/p2p/subproto/raftstub.go
    • Line 23: warning: comment on exported function NewBPNoticeDiscardHandler should be of the form "NewBPNoticeDiscardHandler ..." (golint)
    • Line 44: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 56: warning: comment on exported function NewBlkNoticeDiscardHandler should be of the form "NewBlkNoticeDiscardHandler ..." (golint)
    • Line 74: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • aergo/p2p/subproto/tx.go
    • Line 37: warning: comment on exported function NewTxReqHandler should be of the form "NewTxReqHandler ..." (golint)
    • Line 64: warning: comment on exported function NewTxRespHandler should be of the form "NewTxRespHandler ..." (golint)
    • Line 85: warning: comment on exported function NewNewTxNoticeHandler should be of the form "NewNewTxNoticeHandler ..." (golint)
    • aergo/p2p/p2putil/libp2putil.go
    • Line 45: warning: exported function FromMultiAddrString should have comment or be unexported (golint)
    • Line 75: warning: comment on exported function FromMultiAddrStringWithPID should be of the form "FromMultiAddrStringWithPID ..." (golint)
    • Line 89: warning: exported function LoadKeyFile should have comment or be unexported (golint)
    • Line 97: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 102: warning: exported function GenerateKeyFile should have comment or be unexported (golint)
    • Line 154: warning: exported function ProtocolIDsToString should have comment or be unexported (golint)
    • aergo/chain/blockvalidator.go
    • Line 18: warning: exported type BlockValidator should have comment or be unexported (golint)
    • Line 26: warning: exported var ErrorBlockVerifySign should have comment or be unexported (golint)
    • Line 33: warning: exported function NewBlockValidator should have comment or be unexported (golint)
    • Line 44: warning: exported method BlockValidator.Stop should have comment or be unexported (golint)
    • Line 48: warning: exported method BlockValidator.ValidateBlock should have comment or be unexported (golint)
    • Line 59: warning: exported method BlockValidator.ValidateHeader should have comment or be unexported (golint)
    • Line 97: warning: exported method BlockValidator.ValidateBody should have comment or be unexported (golint)
    • Line 136: warning: exported method BlockValidator.WaitVerifyDone should have comment or be unexported (golint)
    • Line 152: warning: exported method BlockValidator.ValidatePost should have comment or be unexported (golint)
    • aergo/examples/component/service/service.go
    • Line 17: warning: exported type ExampleService should have comment or be unexported (golint)
    • Line 22: warning: exported function NexExampleServie should have comment or be unexported (golint)
    • Line 32: warning: exported method ExampleService.BeforeStart should have comment or be unexported (golint)
    • Line 36: warning: exported method ExampleService.AfterStart should have comment or be unexported (golint)
    • Line 40: warning: exported method ExampleService.BeforeStop should have comment or be unexported (golint)
    • Line 45: warning: exported method ExampleService.Statistics should have comment or be unexported (golint)
    • Line 49: warning: exported method ExampleService.Receive should have comment or be unexported (golint)
    • aergo/message/msghelper.go
    • Line 10: warning: exported const RPCSvc should have comment or be unexported (golint)
    • Line 23: warning: exported function GetHelper should have comment or be unexported (golint)
    • aergo/consensus/impl/raftv2/config.go
    • Line 19: warning: exported var ErrEmptyBPs should have comment or be unexported (golint)
    • Line 28: warning: exported const DefaultBlockFactoryTickMs should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: var DefaultTickMS is of type time.Duration; don't use unit-specific suffix "MS" (golint)
    • Line 37: warning: exported var RaftTick should have comment or be unexported (golint)
    • Line 38: warning: comment on exported var RaftSkipEmptyBlock should be of the form "RaftSkipEmptyBlock ..." (golint)
    • Line 42: warning: var BlockFactoryTickMs is of type time.Duration; don't use unit-specific suffix "Ms" (golint)
    • Line 43: warning: var BlockIntervalMs is of type time.Duration; don't use unit-specific suffix "Ms" (golint)
    • Line 53: warning: exported function Init should have comment or be unexported (golint)
    • Line 54: warning: var tickMs is of type time.Duration; don't use unit-specific suffix "Ms" (golint)
    • Line 99: warning: exported method BlockFactory.InitCluster should have comment or be unexported (golint)
    • Line 179: warning: exported method Cluster.AddInitialMembers should have comment or be unexported (golint)
    • Line 204: warning: exported method Cluster.SetThisNodeID should have comment or be unexported (golint)
    • aergo/consensus/impl/sbp/sbp.go
    • Line 122: warning: exported method SimpleBlockFactory.GetType should have comment or be unexported (golint)
    • Line 224: warning: exported method SimpleBlockFactory.ConsensusInfo should have comment or be unexported (golint)
    • Line 230: warning: exported method SimpleBlockFactory.RaftAccessor should have comment or be unexported (golint)
    • Line 234: warning: exported method SimpleBlockFactory.NeedNotify should have comment or be unexported (golint)
    • Line 238: warning: exported method SimpleBlockFactory.HasWAL should have comment or be unexported (golint)
    • Line 242: warning: exported method SimpleBlockFactory.IsForkEnable should have comment or be unexported (golint)
    • Line 246: warning: exported method SimpleBlockFactory.IsConnectedBlock should have comment or be unexported (golint)
    • Line 255: warning: exported method SimpleBlockFactory.ConfChange should have comment or be unexported (golint)
    • Line 259: warning: exported method SimpleBlockFactory.ConfChangeInfo should have comment or be unexported (golint)
    • Line 263: warning: exported method SimpleBlockFactory.MakeConfChangeProposal should have comment or be unexported (golint)
    • Line 267: warning: exported method SimpleBlockFactory.ClusterInfo should have comment or be unexported (golint)
    • Line 271: warning: exported function ValidateGenesis should have comment or be unexported (golint)
    • aergo/p2p/list/listmanager.go
    • Line 23: warning: error var NotFoundError should have name of the form ErrFoo (golint)
    • Line 46: warning: exported function NewListManager should have comment or be unexported (golint)
    • aergo/p2p/ancestorreceiver.go
    • Line 15: warning: comment on exported type AncestorReceiver should be of the form "AncestorReceiver ..." (with optional leading article) (golint)
    • Line 29: warning: exported function NewAncestorReceiver should have comment or be unexported (golint)
    • Line 34: warning: exported method AncestorReceiver.StartGet should have comment or be unexported (golint)
    • aergo/contract/sqlite3.go
    • Line 209: warning: comment on exported const SQLITE_DELETE should be of the form "SQLITE_DELETE ..." (golint)
    • Line 211: warning: exported const SQLITE_INSERT should have comment (or a comment on this block) or be unexported (golint)
    • Line 214: warning: comment on exported const SQLITE_OK should be of the form "SQLITE_OK ..." (golint)
    • Line 219: warning: comment on exported const SQLITE_CREATE_INDEX should be of the form "SQLITE_CREATE_INDEX ..." (golint)
    • Line 1140: warning: exported method SQLiteConn.DBCacheFlush should have comment or be unexported (golint)
    • aergo/cmd/brick/exec/exec.go
    • Line 19: warning: exported type Executor should have comment or be unexported (golint)
    • Line 35: warning: exported function GetExecutor should have comment or be unexported (golint)
    • Line 39: warning: exported function AllExecutors should have comment or be unexported (golint)
    • Line 54: warning: exported function Broker should have comment or be unexported (golint)
    • Line 64: warning: exported function Execute should have comment or be unexported (golint)
    • aergo/p2p/hashreceiver.go
    • Line 36: warning: exported function NewBlockHashesReceiver should have comment or be unexported (golint)
    • Line 41: warning: exported method BlockHashesReceiver.StartGet should have comment or be unexported (golint)
    • aergo/message/p2pmsg.go
    • Line 14: warning: exported const P2PSvc should have comment or be unexported (golint)
    • Line 18: warning: error var RemotePeerFailError should have name of the form ErrFoo (golint)
    • Line 19: warning: error var PeerNotFoundError should have name of the form ErrFoo (golint)
    • Line 20: warning: error var MissingHashError should have name of the form ErrFoo (golint)
    • Line 21: warning: error var UnexpectedBlockError should have name of the form ErrFoo (golint)
    • Line 22: warning: error var TooFewBlocksError should have name of the form ErrFoo (golint)
    • Line 23: warning: error var TooManyBlocksError should have name of the form ErrFoo (golint)
    • Line 24: warning: error var TooBigBlockError should have name of the form ErrFoo (golint)
    • Line 25: warning: error var InvalidArgumentError should have name of the form ErrFoo (golint)
    • Line 26: warning: error var WrongBlockHashError should have name of the form ErrFoo (golint)
    • Line 51: warning: exported type BlockHash should have comment or be unexported (golint)
    • Line 52: warning: exported type TXHash should have comment or be unexported (golint)
    • Line 99: warning: exported type GetBlockChunks should have comment or be unexported (golint)
    • Line 112: warning: exported type GetBlockChunksRsp should have comment or be unexported (golint)
    • Line 126: warning: exported type PeerInfo should have comment or be unexported (golint)
    • Line 144: warning: exported type GetMetrics should have comment or be unexported (golint)
    • Line 160: warning: exported type GetHashes should have comment or be unexported (golint)
    • Line 167: warning: exported type GetHashesRsp should have comment or be unexported (golint)
    • Line 175: warning: exported type GetHashByNo should have comment or be unexported (golint)
    • Line 181: warning: exported type GetHashByNoRsp should have comment or be unexported (golint)
    • Line 187: warning: exported type GetSelf should have comment or be unexported (golint)
    • Line 190: warning: exported type GetCluster should have comment or be unexported (golint)
    • Line 195: warning: exported type GetClusterRsp should have comment or be unexported (golint)
    • Line 203: warning: exported type GetRaftTransport should have comment or be unexported (golint)
    • Line 207: warning: exported type RaftClusterEvent should have comment or be unexported (golint)
    • Line 218: warning: exported type SendRaft should have comment or be unexported (golint)
    • Line 223: warning: exported type SendRaftRsp should have comment or be unexported (golint)
    • Line 227: warning: exported type P2PWhiteListConfEnableEvent should have comment or be unexported (golint)
    • Line 232: warning: exported type P2PWhiteListConfSetEvent should have comment or be unexported (golint)
    • Line 237: warning: exported type IssueAgentCertificate should have comment or be unexported (golint)
    • Line 241: warning: exported type NotifyCertRenewed should have comment or be unexported (golint)
    • Line 245: warning: exported type TossDirection should have comment or be unexported (golint)
    • Line 247: warning: exported type TossBPNotice should have comment or be unexported (golint)
    • aergo/p2p/subproto/blockhash.go
    • Line 24: warning: comment on exported function NewGetHashesReqHandler should be of the form "NewGetHashesReqHandler ..." (golint)
    • Line 116: warning: comment on exported function NewGetHashesRespHandler should be of the form "NewGetHashesRespHandler ..." (golint)
    • Line 144: warning: comment on exported function NewGetHashByNoReqHandler should be of the form "NewGetHashByNoReqHandler ..." (golint)
    • Line 178: warning: comment on exported function NewGetHashByNoRespHandler should be of the form "NewGetHashByNoRespHandler ..." (golint)
    • aergo/p2p/v030/v030handshake.go
    • Line 37: warning: exported method V030Handshaker.GetMsgRW should have comment or be unexported (golint)
    • Line 41: warning: exported function NewV030VersionedHS should have comment or be unexported (golint)
    • Line 47: warning: comment on exported method V030Handshaker.DoForOutbound should be of the form "DoForOutbound ..." (golint)
    • Line 74: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 119: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • aergo/p2p/v030/v033handshake.go
    • Line 30: warning: exported method V033Handshaker.GetMsgRW should have comment or be unexported (golint)
    • Line 34: warning: exported function NewV033VersionedHS should have comment or be unexported (golint)
    • Line 84: warning: exported method V033Handshaker.DoForOutbound should have comment or be unexported (golint)
    • Line 113: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 120: warning: exported method V033Handshaker.DoForInbound should have comment or be unexported (golint)
    • aergo/cmd/brick/exec/batch.go
    • Line 28: warning: exported function EnableVerbose should have comment or be unexported (golint)
    • Line 32: warning: exported function GetBatchErrorCount should have comment or be unexported (golint)
    • Line 36: warning: exported function EnableWatch should have comment or be unexported (golint)
    • aergo/types/errors.go
    • Line 15: warning: comment on exported var ErrSameNonceAlreadyInMempool should be of the form "ErrSameNonceAlreadyInMempool ..." (golint)
    • Line 30: warning: exported var ErrTxInvalidType should have comment or be unexported (golint)
    • Line 38: warning: comment on exported var ErrTxInvalidRecipient should be of the form "ErrTxInvalidRecipient ..." (golint)
    • Line 59: warning: comment on exported var ErrMustStakeBeforeVote should be of the form "ErrMustStakeBeforeVote ..." (golint)
    • Line 62: warning: comment on exported var ErrLessTimeHasPassed should be of the form "ErrLessTimeHasPassed ..." (golint)
    • Line 65: warning: comment on exported var ErrTooSmallAmount should be of the form "ErrTooSmallAmount ..." (golint)
    • Line 70: warning: comment on exported var ErrMustStakeBeforeUnstake should be of the form "ErrMustStakeBeforeUnstake ..." (golint)
    • Line 73: warning: comment on exported var ErrExceedAmount should be of the form "ErrExceedAmount ..." (golint)
    • Line 83: warning: exported type InternalError should have comment or be unexported (golint)
    • aergo/p2p/metric/metricsman.go
    • Line 19: warning: exported type MetricsManager should have comment or be unexported (golint)
    • Line 50: warning: exported function NewMetricManager should have comment or be unexported (golint)
    • Line 94: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • aergo/p2p/subproto/advice.go
    • Line 16: warning: exported function WithTimeLog should have comment or be unexported (golint)
    • Line 21: warning: exported type LogHandleTimeAdvice should have comment or be unexported (golint)
    • Line 27: warning: exported method LogHandleTimeAdvice.PreHandle should have comment or be unexported (golint)
    • Line 31: warning: exported method LogHandleTimeAdvice.PostHandle should have comment or be unexported (golint)
    • aergo/cmd/aergocli/util/grpccommon.go
    • Line 17: warning: exported type ConnClient should have comment or be unexported (golint)
    • Line 22: warning: exported function GetClient should have comment or be unexported (golint)
    • Line 32: warning: exported function GetConn should have comment or be unexported (golint)
    • Line 41: warning: exported method ConnClient.Close should have comment or be unexported (golint)
    • Line 56: warning: exported function B58JSON should have comment or be unexported (golint)
    • aergo/consensus/impl/raftv2/waldb.go
    • Line 12: warning: exported var ErrInvalidEntry should have comment or be unexported (golint)
    • Line 16: warning: exported type WalDB should have comment or be unexported (golint)
    • Line 20: warning: exported function NewWalDB should have comment or be unexported (golint)
    • Line 24: warning: exported method WalDB.SaveEntry should have comment or be unexported (golint)
    • Line 55: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 74: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 120: warning: exported var ErrInvalidWalEntry should have comment or be unexported (golint)
    • Line 121: warning: exported var ErrWalConvBlock should have comment or be unexported (golint)
    • Line 165: warning: exported var ErrWalGetHardState should have comment or be unexported (golint)
    • aergo/message/blockchainmsg.go
    • Line 14: warning: exported const ChainSvc should have comment or be unexported (golint)
    • Line 16: warning: exported type GetBestBlockNo should have comment or be unexported (golint)
    • Line 17: warning: exported type GetBestBlockNoRsp should have comment or be unexported (golint)
    • Line 21: warning: exported type GetBestBlock should have comment or be unexported (golint)
    • Line 22: warning: exported type GetBestBlockRsp should have comment or be unexported (golint)
    • Line 24: warning: exported type GetBlock should have comment or be unexported (golint)
    • Line 27: warning: exported type GetBlockRsp should have comment or be unexported (golint)
    • Line 32: warning: exported type GetBlockByNo should have comment or be unexported (golint)
    • Line 35: warning: exported type GetBlockByNoRsp should have comment or be unexported (golint)
    • Line 37: warning: exported type AddBlock should have comment or be unexported (golint)
    • Line 44: warning: exported type AddBlockRsp should have comment or be unexported (golint)
    • Line 49: warning: exported type GetState should have comment or be unexported (golint)
    • Line 52: warning: exported type GetStateRsp should have comment or be unexported (golint)
    • Line 57: warning: exported type GetStateAndProof should have comment or be unexported (golint)
    • Line 62: warning: exported type GetStateAndProofRsp should have comment or be unexported (golint)
    • Line 66: warning: exported type GetTx should have comment or be unexported (golint)
    • Line 69: warning: exported type GetTxRsp should have comment or be unexported (golint)
    • Line 75: warning: exported type GetReceipt should have comment or be unexported (golint)
    • Line 78: warning: exported type GetReceiptRsp should have comment or be unexported (golint)
    • Line 83: warning: exported type GetABI should have comment or be unexported (golint)
    • Line 86: warning: exported type GetABIRsp should have comment or be unexported (golint)
    • Line 91: warning: exported type GetQuery should have comment or be unexported (golint)
    • Line 95: warning: exported type GetQueryRsp should have comment or be unexported (golint)
    • Line 99: warning: exported type GetStateQuery should have comment or be unexported (golint)
    • Line 105: warning: exported type GetStateQueryRsp should have comment or be unexported (golint)
    • Line 123: warning: exported type GetVote should have comment or be unexported (golint)
    • Line 127: warning: comment on exported type GetVoteRsp should be of the form "GetVoteRsp ..." (with optional leading article) (golint)
    • Line 132: warning: exported type GetAccountVoteRsp should have comment or be unexported (golint)
    • Line 137: warning: exported type GetStaking should have comment or be unexported (golint)
    • Line 141: warning: exported type GetStakingRsp should have comment or be unexported (golint)
    • Line 146: warning: exported type GetNameInfo should have comment or be unexported (golint)
    • Line 151: warning: exported type GetNameInfoRsp should have comment or be unexported (golint)
    • Line 156: warning: exported type GetEnterpriseConf should have comment or be unexported (golint)
    • Line 160: warning: exported type GetEnterpriseConfRsp should have comment or be unexported (golint)
    • Line 165: warning: exported type GetAnchors should have comment or be unexported (golint)
    • Line 169: warning: exported type GetAnchorsRsp should have comment or be unexported (golint)
    • Line 176: warning: comment on exported type GetAncestor should be of the form "GetAncestor ..." (with optional leading article) (golint)
    • Line 182: warning: comment on exported type GetAncestorRsp should be of the form "GetAncestorRsp ..." (with optional leading article) (golint)
    • Line 188: warning: exported type ListEvents should have comment or be unexported (golint)
    • Line 192: warning: comment on exported type ListEventsRsp should be of the form "ListEventsRsp ..." (with optional leading article) (golint)
    • Line 198: warning: exported type VerifyStart should have comment or be unexported (golint)
    • Line 200: warning: exported type GetParams should have comment or be unexported (golint)
    • Line 202: warning: exported type GetParamsRsp should have comment or be unexported (golint)
    • Line 208: warning: exported type CheckFeeDelegation should have comment or be unexported (golint)
    • Line 216: warning: exported type CheckFeeDelegationRsp should have comment or be unexported (golint)
    • aergo/p2p/subproto/raftwrap.go
    • Line 27: warning: comment on exported function NewRaftWrapperHandler should be of the form "NewRaftWrapperHandler ..." (golint)
    • Line 64: warning: exported function DebugLogRaftWrapMsg should have comment or be unexported (golint)
    • aergo/chain/chainverifier.go
    • Line 14: warning: exported type ChainVerifier should have comment or be unexported (golint)
    • Line 43: warning: exported method ChainVerifier.Receive should have comment or be unexported (golint)
    • Line 71: warning: exported type BlockReader should have comment or be unexported (golint)
    • Line 102: warning: exported type TestStage should have comment or be unexported (golint)
    • Line 105: warning: exported const TestPrevBlock should have comment (or a comment on this block) or be unexported (golint)
    • Line 111: warning: exported var TestStageStr should have comment or be unexported (golint)
    • Line 118: warning: exported method ChainVerifier.VerifyBlockWithReport should have comment or be unexported (golint)
    • Line 205: warning: exported method ChainVerifier.VerifyChain should have comment or be unexported (golint)
    • Line 240: warning: exported method ChainVerifier.IsRunning should have comment or be unexported (golint)
    • Line 244: warning: exported method ChainVerifier.Statistics should have comment or be unexported (golint)
    • aergo/chain/debugger.go
    • Line 11: warning: exported type ErrDebug should have comment or be unexported (golint)
    • Line 16: warning: exported type StopCond should have comment or be unexported (golint)
    • Line 29: warning: exported const DEBUG_CHAIN_STOP_INF should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported var EnvNameStaticCrash should have comment or be unexported (golint)
    • Line 50: warning: exported type DebugHandler should have comment or be unexported (golint)
    • Line 58: warning: exported type Debugger should have comment or be unexported (golint)
    • Line 93: warning: exported method Debugger.Set should have comment or be unexported (golint)
    • Line 107: warning: exported method Debugger.Unset should have comment or be unexported (golint)
    • Line 131: warning: exported method Debugger.Check should have comment or be unexported (golint)
    • Line 189: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • aergo/rpc/grpcserver.go
    • Line 40: warning: exported var ErrUninitAccessor should have comment or be unexported (golint)
    • Line 45: warning: exported type EventStream should have comment or be unexported (golint)
    • Line 77: warning: exported method AergoRPCService.SetConsensusAccessor should have comment or be unexported (golint)
    • Line 85: warning: exported method AergoRPCService.Metric should have comment or be unexported (golint)
    • Line 338: warning: exported method AergoRPCService.BroadcastToListBlockStream should have comment or be unexported (golint)
    • Line 354: warning: exported method AergoRPCService.BroadcastToListBlockMetadataStream should have comment or be unexported (golint)
    • Line 646: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 790: warning: exported method AergoRPCService.ImportAccount should have comment or be unexported (golint)
    • Line 840: warning: exported method AergoRPCService.ExportAccount should have comment or be unexported (golint)
    • Line 844: warning: exported method AergoRPCService.ExportAccountKeystore should have comment or be unexported (golint)
    • Line 963: warning: exported method AergoRPCService.GetAccountVotes should have comment or be unexported (golint)
    • Line 1003: warning: exported method AergoRPCService.GetNameInfo should have comment or be unexported (golint)
    • Line 1022: warning: exported method AergoRPCService.GetReceipt should have comment or be unexported (golint)
    • Line 1038: warning: exported method AergoRPCService.GetABI should have comment or be unexported (golint)
    • Line 1054: warning: exported method AergoRPCService.QueryContract should have comment or be unexported (golint)
    • Line 1097: warning: exported method AergoRPCService.ListEventStream should have comment or be unexported (golint)
    • Line 1123: warning: exported method AergoRPCService.BroadcastToEventStream should have comment or be unexported (golint)
    • Line 1147: warning: exported method AergoRPCService.ListEvents should have comment or be unexported (golint)
    • Line 1163: warning: exported method AergoRPCService.GetServerInfo should have comment or be unexported (golint)
    • Line 1225: warning: exported method AergoRPCService.GetConfChangeProgress should have comment or be unexported (golint)
    • aergo/contract/system/proposal.go
    • Line 22: warning: exported function GetVotingIssues should have comment or be unexported (golint)
    • Line 32: warning: exported type Proposal should have comment or be unexported (golint)
    • Line 42: warning: exported var SystemProposal should have comment or be unexported (golint)
    • Line 77: warning: exported method Proposal.GetKey should have comment or be unexported (golint)
    • Line 81: warning: exported function GenProposalKey should have comment or be unexported (golint)
    • aergo/p2p/raftsupport/rafttransport.go
    • Line 61: warning: exported function NewAergoRaftTransport should have comment or be unexported (golint)
    • Line 75: warning: exported method AergoRaftTransport.Start should have comment or be unexported (golint)
    • Line 82: warning: exported method AergoRaftTransport.Handler should have comment or be unexported (golint)
    • Line 115: warning: exported method AergoRaftTransport.SendSnapshot should have comment or be unexported (golint)
    • Line 143: warning: exported method AergoRaftTransport.AddRemote should have comment or be unexported (golint)
    • Line 147: warning: exported method AergoRaftTransport.AddPeer should have comment or be unexported (golint)
    • Line 163: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 188: warning: exported method AergoRaftTransport.RemovePeer should have comment or be unexported (golint)
    • Line 205: warning: exported method AergoRaftTransport.RemoveAllPeers should have comment or be unexported (golint)
    • Line 213: warning: exported method AergoRaftTransport.UpdatePeer should have comment or be unexported (golint)
    • Line 219: warning: exported method AergoRaftTransport.ActiveSince should have comment or be unexported (golint)
    • Line 229: warning: exported method AergoRaftTransport.ActivePeers should have comment or be unexported (golint)
    • Line 233: warning: exported method AergoRaftTransport.Stop should have comment or be unexported (golint)
    • Line 240: warning: exported method AergoRaftTransport.OnRaftSnapshot should have comment or be unexported (golint)
    • Line 273: warning: exported method AergoRaftTransport.OnPeerConnect should have comment or be unexported (golint)
    • Line 283: warning: exported method AergoRaftTransport.OnPeerDisconnect should have comment or be unexported (golint)
    • Line 293: warning: exported method AergoRaftTransport.NewSnapshotSender should have comment or be unexported (golint)
    • Line 297: warning: exported method AergoRaftTransport.NewSnapshotReceiver should have comment or be unexported (golint)
    • aergo/consensus/impl/raftv2/snapshot.go
    • Line 19: warning: exported var DfltTimeWaitPeerLive should have comment or be unexported (golint)
    • Line 26: warning: exported type ChainSnapshotter should have comment or be unexported (golint)
    • Line 108: warning: comment on exported method ChainSnapshotter.SaveFromRemote should be of the form "SaveFromRemote ..." (golint)
    • aergo/p2p/remotepeer.go
    • Line 25: warning: error var TimeoutError should have name of the form ErrFoo (golint)
    • Line 25: warning: exported var TimeoutError should have comment or be unexported (golint)
    • Line 26: warning: error var CancelError should have name of the form ErrFoo (golint)
    • Line 26: warning: exported var CancelError should have comment or be unexported (golint)
    • aergo/contract/system/vprt.go
    • Line 36: warning: exported var ErrNoVotingRewardWinner should have comment or be unexported (golint)
    • Line 675: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 688: warning: exported function PickVotingRewardWinner should have comment or be unexported (golint)
    • Line 738: warning: don't use underscores in Go names; struct field addr_ should be addr (golint)
    • Line 758: warning: exported function GetVotingRewardAmount should have comment or be unexported (golint)
    • Line 762: warning: exported function GetTotalVotingPower should have comment or be unexported (golint)
    • Line 766: warning: exported function DumpVotingPowerRankers should have comment or be unexported (golint)
    • aergo/cmd/aergoluac/util/luac_util.go
    • Line 26: warning: exported function NewLState should have comment or be unexported (golint)
    • Line 35: warning: exported function CloseLState should have comment or be unexported (golint)
    • Line 41: warning: exported function Compile should have comment or be unexported (golint)
    • Line 53: warning: exported function CompileFromFile should have comment or be unexported (golint)
    • Line 69: warning: exported function DumpFromFile should have comment or be unexported (golint)
    • Line 86: warning: exported function DumpFromStdin should have comment or be unexported (golint)
    • Line 133: warning: exported type LuaCode should have comment or be unexported (golint)
    • Line 137: warning: exported function NewLuaCode should have comment or be unexported (golint)
    • Line 146: warning: exported method LuaCode.ByteCode should have comment or be unexported (golint)
    • Line 160: warning: exported method LuaCode.ABI should have comment or be unexported (golint)
    • Line 167: warning: exported method LuaCode.Len should have comment or be unexported (golint)
    • Line 171: warning: exported method LuaCode.IsValidFormat should have comment or be unexported (golint)
    • Line 178: warning: exported method LuaCode.Bytes should have comment or be unexported (golint)
    • Line 182: warning: exported type LuaCodePayload should have comment or be unexported (golint)
    • Line 186: warning: exported function NewLuaCodePayload should have comment or be unexported (golint)
    • Line 201: warning: exported method LuaCodePayload.Code should have comment or be unexported (golint)
    • Line 208: warning: exported method LuaCodePayload.HasArgs should have comment or be unexported (golint)
    • Line 215: warning: exported method LuaCodePayload.Args should have comment or be unexported (golint)
    • Line 222: warning: exported method LuaCodePayload.Len should have comment or be unexported (golint)
    • Line 226: warning: exported method LuaCodePayload.IsValidFormat should have comment or be unexported (golint)
    • aergo/chain/chaindbForRaft.go
    • Line 16: warning: exported var ErrMismatchedEntry should have comment or be unexported (golint)
    • Line 24: warning: exported method ChainDB.ResetWAL should have comment or be unexported (golint)
    • Line 77: warning: comment on exported method ChainDB.ClearWAL should be of the form "ClearWAL ..." (golint)
    • Line 120: warning: exported method ChainDB.WriteHardState should have comment or be unexported (golint)
    • Line 139: warning: exported method ChainDB.GetHardState should have comment or be unexported (golint)
    • Line 173: warning: exported method ChainDB.WriteRaftEntry should have comment or be unexported (golint)
    • Line 250: warning: exported method ChainDB.GetRaftEntry should have comment or be unexported (golint)
    • Line 272: warning: exported method ChainDB.GetRaftEntryIndexOfBlock should have comment or be unexported (golint)
    • Line 286: warning: exported method ChainDB.GetRaftEntryOfBlock should have comment or be unexported (golint)
    • Line 295: warning: exported method ChainDB.GetRaftEntryLastIdx should have comment or be unexported (golint)
    • Line 305: warning: exported var ErrWalNotEqualIdentityName should have comment or be unexported (golint)
    • Line 371: warning: exported method ChainDB.WriteSnapshot should have comment or be unexported (golint)
    • Line 392: warning: comment on exported method ChainDB.GetSnapshot should be of the form "GetSnapshot ..." (golint)
    • Line 440: warning: exported method ChainDB.WriteIdentity should have comment or be unexported (golint)
    • Line 459: warning: exported method ChainDB.GetIdentity should have comment or be unexported (golint)
    • Line 478: warning: exported method ChainDB.WriteConfChangeProgress should have comment or be unexported (golint)
    • Line 522: warning: exported method ChainDB.GetConfChangeProgress should have comment or be unexported (golint)
    • aergo/cmd/aergocli/cmd/getpeers.go
    • Line 39: warning: exported const DetailShort should have comment (or a comment on this block) or be unexported (golint)
    • Line 72: warning: exported function Must should have comment or be unexported (golint)
    • Line 76: warning: exported function GetSorter should have comment or be unexported (golint)
    • aergo/fee/payload.go
    • Line 10: warning: exported const StateDbMaxUpdateSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported function EnableZeroFee should have comment or be unexported (golint)
    • Line 32: warning: exported function DisableZeroFee should have comment or be unexported (golint)
    • Line 36: warning: exported function IsZeroFee should have comment or be unexported (golint)
    • Line 40: warning: exported function NewZeroFee should have comment or be unexported (golint)
    • Line 44: warning: exported function PayloadTxFee should have comment or be unexported (golint)
    • Line 64: warning: exported function MaxPayloadTxFee should have comment or be unexported (golint)
    • Line 82: warning: exported function PaymentDataFee should have comment or be unexported (golint)
    • aergo/cmd/aergocli/util/convTx.go
    • Line 5: warning: exported type EncodingType should have comment or be unexported (golint)
    • Line 8: warning: exported const Raw should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported type InOutTx should have comment or be unexported (golint)
    • Line 17: warning: exported type InOutTxBody should have comment or be unexported (golint)
    • Line 30: warning: exported type InOutTxIdx should have comment or be unexported (golint)
    • Line 35: warning: exported type InOutTxInBlock should have comment or be unexported (golint)
    • Line 52: warning: exported function TxConvBase58Addr should have comment or be unexported (golint)
    • Line 56: warning: exported function TxConvBase58AddrEx should have comment or be unexported (golint)
    • Line 66: warning: exported function TxInBlockConvBase58Addr should have comment or be unexported (golint)
    • Line 70: warning: exported function ConvTx should have comment or be unexported (golint)
    • Line 74: warning: exported function ConvTxInBlock should have comment or be unexported (golint)
    • aergo/p2p/p2p.go
    • Line 160: warning: exported method P2P.AfterStart should have comment or be unexported (golint)
    • Line 223: warning: exported method P2P.GetNetworkTransport should have comment or be unexported (golint)
    • Line 229: warning: exported method P2P.GetPeerAccessor should have comment or be unexported (golint)
    • Line 233: warning: exported method P2P.SetConsensusAccessor should have comment or be unexported (golint)
    • Line 237: warning: exported method P2P.GenesisChainID should have comment or be unexported (golint)
    • Line 388: warning: comment on exported method P2P.CallRequestDefaultTimeout should be of the form "CallRequestDefaultTimeout ..." (golint)
    • Line 454: warning: exported method P2P.CreateHSHandler should have comment or be unexported (golint)
    • Line 457: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 462: warning: exported method P2P.CreateRemotePeer should have comment or be unexported (golint)
    • Line 484: warning: exported method P2P.SelfMeta should have comment or be unexported (golint)
    • Line 488: warning: exported method P2P.SelfNodeID should have comment or be unexported (golint)
    • Line 492: warning: exported method P2P.LocalSettings should have comment or be unexported (golint)
    • Line 496: warning: exported method P2P.GetPeerBlockInfos should have comment or be unexported (golint)
    • Line 500: warning: exported method P2P.GetPeer should have comment or be unexported (golint)
    • Line 504: warning: exported method P2P.PeerManager should have comment or be unexported (golint)
    • Line 508: warning: exported method P2P.CertificateManager should have comment or be unexported (golint)
    • Line 512: warning: exported method P2P.RoleManager should have comment or be unexported (golint)
    • aergo/contract/system/voteresult.go
    • Line 17: warning: exported type VoteResult should have comment or be unexported (golint)
    • Line 39: warning: exported method VoteResult.GetTotal should have comment or be unexported (golint)
    • Line 43: warning: exported method VoteResult.SubVote should have comment or be unexported (golint)
    • Line 66: warning: exported method VoteResult.AddVote should have comment or be unexported (golint)
    • Line 92: warning: receiver name vr should be consistent with previous receiver name voteResult for VoteResult (golint)
    • Line 111: warning: receiver name vr should be consistent with previous receiver name voteResult for VoteResult (golint)
    • Line 131: warning: receiver name vr should be consistent with previous receiver name voteResult for VoteResult (golint)
    • Line 172: warning: exported function InitVoteResult should have comment or be unexported (golint)
    • Line 201: warning: exported function GetVoteResultEx should have comment or be unexported (golint)
    • aergo/polaris/server/actormsg.go
    • Line 8: warning: exported const PolarisSvc should have comment or be unexported (golint)
    • Line 10: warning: exported type PaginationMsg should have comment or be unexported (golint)
    • Line 15: warning: exported type CurrentListMsg should have comment or be unexported (golint)
    • Line 16: warning: exported type WhiteListMsg should have comment or be unexported (golint)
    • Line 17: warning: exported type BlackListMsg should have comment or be unexported (golint)
    • Line 19: warning: exported type ListEntriesMsg should have comment or be unexported (golint)
    • aergo/chain/signVerifier.go
    • Line 17: warning: exported type SignVerifier should have comment or be unexported (golint)
    • Line 44: warning: exported type VerifyResult should have comment or be unexported (golint)
    • Line 50: warning: exported var ErrTxFormatInvalid should have comment or be unexported (golint)
    • Line 55: warning: exported function NewSignVerifier should have comment or be unexported (golint)
    • Line 73: warning: exported method SignVerifier.Stop should have comment or be unexported (golint)
    • Line 154: warning: exported method SignVerifier.RequestVerifyTxs should have comment or be unexported (golint)
    • Line 221: warning: exported method SignVerifier.WaitDone should have comment or be unexported (golint)
    • Line 251: warning: exported method SignVerifier.SetSkipMempool should have comment or be unexported (golint)
    • aergo/state/chainstatedb.go
    • Line 27: warning: comment on exported method ChainStateDB.Clone should be of the form "Clone ..." (golint)
    • Line 90: warning: exported method ChainStateDB.SetGenesis should have comment or be unexported (golint)
    • Line 164: warning: exported method ChainStateDB.UpdateRoot should have comment or be unexported (golint)
    • Line 181: warning: exported method ChainStateDB.SetRoot should have comment or be unexported (golint)
    • Line 197: warning: exported method ChainStateDB.IsExistState should have comment or be unexported (golint)
    • Line 202: warning: exported method ChainStateDB.NewBlockState should have comment or be unexported (golint)
    • aergo/p2p/v030/v030io.go
    • Line 19: warning: exported type V030ReadWriter should have comment or be unexported (golint)
    • Line 29: warning: exported function NewV030MsgPipe should have comment or be unexported (golint)
    • Line 32: warning: exported function NewV030ReadWriter should have comment or be unexported (golint)
    • Line 48: warning: exported method V030ReadWriter.Close should have comment or be unexported (golint)
    • Line 52: warning: exported method V030ReadWriter.AddIOListener should have comment or be unexported (golint)
    • Line 56: warning: comment on exported method V030ReadWriter.ReadMsg should be of the form "ReadMsg ..." (golint)
    • Line 104: warning: comment on exported method V030ReadWriter.WriteMsg should be of the form "WriteMsg ..." (golint)
    • aergo/consensus/impl/raftv2/blockfactory.go
    • Line 36: warning: exported var ErrClusterNotReady should have comment or be unexported (golint)
    • Line 63: warning: exported type Work should have comment or be unexported (golint)
    • Line 68: warning: exported method Work.GetTimeout should have comment or be unexported (golint)
    • Line 72: warning: exported method Work.ToString should have comment or be unexported (golint)
    • Line 243: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 285: warning: exported method BlockFactory.GetType should have comment or be unexported (golint)
    • Line 593: warning: comment on exported method BlockFactory.JobQueue should be of the form "JobQueue ..." (golint)
    • Line 641: warning: exported method BlockFactory.ConsensusInfo should have comment or be unexported (golint)
    • Line 648: warning: exported method BlockFactory.NeedNotify should have comment or be unexported (golint)
    • Line 652: warning: exported method BlockFactory.HasWAL should have comment or be unexported (golint)
    • Line 656: warning: exported method BlockFactory.IsForkEnable should have comment or be unexported (golint)
    • Line 660: warning: comment on exported method BlockFactory.IsConnectedBlock should be of the form "IsConnectedBlock ..." (golint)
    • Line 672: warning: exported type ErrorMembershipChange should have comment or be unexported (golint)
    • Line 708: warning: exported method BlockFactory.RaftAccessor should have comment or be unexported (golint)
    • Line 712: warning: exported method BlockFactory.MakeConfChangeProposal should have comment or be unexported (golint)
    • Line 828: warning: exported type Proposed should have comment or be unexported (golint)
    • Line 833: warning: exported type RaftOperator should have comment or be unexported (golint)
    • Line 875: warning: exported method RaftOperator.ProposeConfChange should have comment or be unexported (golint)
    • Line 908: warning: exported function ValidateGenesis should have comment or be unexported (golint)
    • aergo/syncer/blockprocessor.go
    • Line 16: warning: exported type BlockProcessor should have comment or be unexported (golint)
    • Line 32: warning: exported type ConnectTask should have comment or be unexported (golint)
    • Line 39: warning: exported function NewBlockProcessor should have comment or be unexported (golint)
    • Line 126: warning: exported method BlockProcessor.GetBlockChunkRsp should have comment or be unexported (golint)
    • Line 155: warning: exported method BlockProcessor.GetBlockChunkRspError should have comment or be unexported (golint)
    • Line 174: warning: exported method BlockProcessor.AddBlockResponse should have comment or be unexported (golint)
    • aergo/types/genesis_preset.go
    • Line 3: warning: exported var MainNetGenesis should have comment or be unexported (golint)
    • Line 5: warning: exported var TestNetGenesis should have comment or be unexported (golint)
    • aergo/state/statedb.go
    • Line 170: warning: exported type V should have comment or be unexported (golint)
    • Line 186: warning: exported method V.ID should have comment or be unexported (golint)
    • Line 193: warning: exported method V.AccountID should have comment or be unexported (golint)
    • Line 197: warning: exported method V.State should have comment or be unexported (golint)
    • Line 201: warning: exported method V.SetNonce should have comment or be unexported (golint)
    • Line 205: warning: exported method V.Balance should have comment or be unexported (golint)
    • Line 209: warning: exported method V.AddBalance should have comment or be unexported (golint)
    • Line 214: warning: exported method V.SubBalance should have comment or be unexported (golint)
    • Line 219: warning: exported method V.RP should have comment or be unexported (golint)
    • Line 223: warning: exported method V.IsNew should have comment or be unexported (golint)
    • Line 227: warning: exported method V.IsDeploy should have comment or be unexported (golint)
    • Line 231: warning: exported method V.SetRedeploy should have comment or be unexported (golint)
    • Line 235: warning: exported method V.IsRedeploy should have comment or be unexported (golint)
    • Line 239: warning: exported method V.Reset should have comment or be unexported (golint)
    • Line 243: warning: exported method V.PutState should have comment or be unexported (golint)
    • Line 247: warning: exported method StateDB.CreateAccountStateV should have comment or be unexported (golint)
    • Line 260: warning: exported method StateDB.GetAccountStateV should have comment or be unexported (golint)
    • Line 298: warning: exported method StateDB.InitAccountStateV should have comment or be unexported (golint)
    • Line 308: warning: exported method V.ClearAid should have comment or be unexported (golint)
    • Line 347: warning: exported method StateDB.TrieQuery should have comment or be unexported (golint)
    • aergo/chain/common.go
    • Line 20: warning: exported var CoinbaseAccount should have comment or be unexported (golint)
    • Line 37: warning: exported var ErrInvalidConsensus should have comment or be unexported (golint)
    • Line 123: warning: exported function ConsensusName should have comment or be unexported (golint)
    • aergo/chain/chaindb.go
    • Line 35: warning: exported var ErrorLoadBestBlock should have comment or be unexported (golint)
    • Line 77: warning: exported type ChainDB should have comment or be unexported (golint)
    • Line 86: warning: exported function NewChainDB should have comment or be unexported (golint)
    • Line 101: warning: exported method ChainDB.Init should have comment or be unexported (golint)
    • Line 171: warning: exported type ErrDropBlock should have comment or be unexported (golint)
    • Line 213: warning: exported method ChainDB.Close should have comment or be unexported (golint)
    • Line 225: warning: exported method ChainDB.GetBestBlock should have comment or be unexported (golint)
    • Line 593: warning: exported method ChainDB.GetBlock should have comment or be unexported (golint)
    • Line 597: warning: exported method ChainDB.GetHashByNo should have comment or be unexported (golint)
    • Line 689: warning: exported type ChainTree should have comment or be unexported (golint)
    • Line 692: warning: exported type ChainInfo should have comment or be unexported (golint)
    • Line 697: warning: exported method ChainDB.GetChainTree should have comment or be unexported (golint)
    • Line 782: warning: comment on exported method ChainDB.IsNew should be of the form "IsNew ..." (golint)
    • Line 788: warning: exported method ChainDB.Hardfork should have comment or be unexported (golint)
    • Line 800: warning: exported method ChainDB.WriteHardfork should have comment or be unexported (golint)
    • aergo/rpc/admin.go
    • Line 22: warning: exported type AdminService should have comment or be unexported (golint)
    • Line 28: warning: exported function NewAdminService should have comment or be unexported (golint)
    • Line 63: warning: exported method AdminService.Start should have comment or be unexported (golint)
    • aergo/config/config.go
    • Line 17: warning: exported type ServerContext should have comment or be unexported (golint)
    • Line 21: warning: exported function NewServerContext should have comment or be unexported (golint)
    • Line 29: warning: exported method ServerContext.GetHomePath should have comment or be unexported (golint)
    • Line 33: warning: exported method ServerContext.GetConfigFileName should have comment or be unexported (golint)
    • Line 37: warning: exported method ServerContext.GetTemplate should have comment or be unexported (golint)
    • Line 41: warning: exported method ServerContext.GetDefaultConfig should have comment or be unexported (golint)
    • Line 58: warning: exported method ServerContext.GetDefaultBaseConfig should have comment or be unexported (golint)
    • Line 72: warning: exported method ServerContext.GetDefaultRPCConfig should have comment or be unexported (golint)
    • Line 81: warning: exported method ServerContext.GetDefaultP2PConfig should have comment or be unexported (golint)
    • Line 100: warning: exported method ServerContext.GetDefaultAuthConfig should have comment or be unexported (golint)
    • Line 106: warning: exported method ServerContext.GetDefaultPolarisConfig should have comment or be unexported (golint)
    • Line 114: warning: exported function GetDefaultNumLStateClosers should have comment or be unexported (golint)
    • Line 125: warning: exported function GetDefaultCloseLimit should have comment or be unexported (golint)
    • Line 129: warning: exported method ServerContext.GetDefaultBlockchainConfig should have comment or be unexported (golint)
    • Line 144: warning: exported method ServerContext.GetDefaultMempoolConfig should have comment or be unexported (golint)
    • Line 154: warning: exported method ServerContext.GetDefaultConsensusConfig should have comment or be unexported (golint)
    • Line 160: warning: exported method ServerContext.GetDefaultMonitorConfig should have comment or be unexported (golint)
    • Line 167: warning: exported method ServerContext.GetDefaultAccountConfig should have comment or be unexported (golint)
    • Line 173: warning: exported method ServerContext.GetDefaultHardforkConfig should have comment or be unexported (golint)
    • Line 177: warning: exported method ServerContext.GetDefaultSQLConfig should have comment or be unexported (golint)
    • aergo/chain/chainanchor.go
    • Line 13: warning: exported type ChainAnchor should have comment or be unexported (golint)
    • Line 16: warning: exported const MaxAnchors should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: comment on exported const Skip should be of the form "Skip ..." (golint)
    • aergo/types/vote.go
    • Line 10: warning: exported const AergoSystem should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported type VotingIssue should have comment or be unexported (golint)
    • Line 43: warning: comment on exported type OpSysTx should be of the form "OpSysTx ..." (with optional leading article) (golint)
    • Line 89: warning: comment on exported method OpSysTx.ID should be of the form "ID ..." (golint)
    • Line 108: warning: exported method OpSysTx.Key should have comment or be unexported (golint)
    • Line 127: warning: exported method Vote.GetAmountBigInt should have comment or be unexported (golint)
    • aergo/polaris/common/message.go
    • Line 35: warning: exported function NewPolarisRespMessage should have comment or be unexported (golint)
    • Line 39: warning: exported method PolarisMessage.Subprotocol should have comment or be unexported (golint)
    • Line 43: warning: exported method PolarisMessage.Length should have comment or be unexported (golint)
    • Line 48: warning: exported method PolarisMessage.Timestamp should have comment or be unexported (golint)
    • Line 52: warning: exported method PolarisMessage.ID should have comment or be unexported (golint)
    • Line 56: warning: exported method PolarisMessage.OriginalID should have comment or be unexported (golint)
    • Line 60: warning: exported method PolarisMessage.Payload should have comment or be unexported (golint)
    • aergo/p2p/p2putil/pipelistener.go
    • Line 8: warning: exported function NewMultiListener should have comment or be unexported (golint)
    • Line 12: warning: exported method MultiListener.AppendListener should have comment or be unexported (golint)
    • Line 15: warning: exported method MultiListener.OnIn should have comment or be unexported (golint)
    • Line 21: warning: exported method MultiListener.OnDrop should have comment or be unexported (golint)
    • Line 27: warning: exported method MultiListener.OnOut should have comment or be unexported (golint)
    • Line 41: warning: exported function NewStatLister should have comment or be unexported (golint)
    • Line 45: warning: exported method StatListener.OnIn should have comment or be unexported (golint)
    • Line 49: warning: exported method StatListener.OnDrop should have comment or be unexported (golint)
    • Line 54: warning: exported method StatListener.OnOut should have comment or be unexported (golint)
    • aergo/p2p/p2pkey/nodekey.go
    • Line 113: warning: exported function StartTime should have comment or be unexported (golint)
    • Line 117: warning: exported function GetHostAccessor should have comment or be unexported (golint)
    • aergo/message/syncermsg.go
    • Line 7: warning: exported const SyncerSvc should have comment or be unexported (golint)
    • Line 9: warning: comment on exported type SyncStart should be of the form "SyncStart ..." (with optional leading article) (golint)
    • Line 16: warning: exported type FinderResult should have comment or be unexported (golint)
    • Line 22: warning: comment on exported type SyncStop should be of the form "SyncStop ..." (with optional leading article) (golint)
    • Line 29: warning: exported type CloseFetcher should have comment or be unexported (golint)
    • aergo/polaris/server/prpc.go
    • Line 30: warning: error var NotSupportError should have name of the form ErrFoo (golint)
    • Line 30: warning: exported var NotSupportError should have comment or be unexported (golint)
    • Line 32: warning: exported type PolarisRPC should have comment or be unexported (golint)
    • Line 44: warning: exported function NewPolarisRPC should have comment or be unexported (golint)
    • Line 72: warning: exported method PolarisRPC.SetHub should have comment or be unexported (golint)
    • Line 77: warning: comment on exported method PolarisRPC.BeforeStart should be of the form "BeforeStart ..." (golint)
    • Line 82: warning: exported method PolarisRPC.AfterStart should have comment or be unexported (golint)
    • Line 86: warning: comment on exported method PolarisRPC.BeforeStop should be of the form "BeforeStop ..." (golint)
    • Line 96: warning: exported method PolarisRPC.Receive should have comment or be unexported (golint)
    • Line 169: warning: comment on exported method PolarisRPC.CallRequestDefaultTimeout should be of the form "CallRequestDefaultTimeout ..." (golint)
    • Line 174: warning: exported method PolarisRPC.GetChainAccessor should have comment or be unexported (golint)
    • Line 178: warning: exported type PRPCServer should have comment or be unexported (golint)
    • Line 185: warning: exported method PRPCServer.NodeState should have comment or be unexported (golint)
    • Line 203: warning: exported method PRPCServer.Metric should have comment or be unexported (golint)
    • Line 210: warning: exported method PRPCServer.CurrentList should have comment or be unexported (golint)
    • Line 223: warning: exported method PRPCServer.WhiteList should have comment or be unexported (golint)
    • Line 229: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 234: warning: exported method PRPCServer.BlackList should have comment or be unexported (golint)
    • Line 240: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 245: warning: exported method PRPCServer.ListBLEntries should have comment or be unexported (golint)
    • Line 257: warning: exported method PRPCServer.AddBLEntry should have comment or be unexported (golint)
    • Line 280: warning: exported method PRPCServer.RemoveBLEntry should have comment or be unexported (golint)
    • aergo/chain/chainservice.go
    • Line 39: warning: exported var ErrNotSupportedConsensus should have comment or be unexported (golint)
    • Line 150: warning: exported method Core.GetGenesisInfo should have comment or be unexported (golint)
    • Line 175: warning: exported type IChainHandler should have comment or be unexported (golint)
    • Line 354: warning: exported method ChainService.GetChainStats should have comment or be unexported (golint)
    • Line 363: warning: exported method ChainService.GetSystemValue should have comment or be unexported (golint)
    • Line 482: warning: exported method ChainService.Statistics should have comment or be unexported (golint)
    • Line 494: warning: exported method ChainService.GetChainTree should have comment or be unexported (golint)
    • Line 598: warning: exported type ChainManager should have comment or be unexported (golint)
    • Line 604: warning: exported type ChainWorker should have comment or be unexported (golint)
    • Line 630: warning: exported method ChainManager.Receive should have comment or be unexported (golint)
    • Line 701: warning: exported method ChainWorker.Receive should have comment or be unexported (golint)
    • Line 920: warning: exported method ChainService.ConsensusType should have comment or be unexported (golint)
    • Line 924: warning: exported method ChainService.IsPublic should have comment or be unexported (golint)
    • Line 945: warning: exported method ChainService.ChainID should have comment or be unexported (golint)
    • aergo/types/account.go
    • Line 12: warning: exported const AddressLength should have comment or be unexported (golint)
    • Line 13: warning: exported const NameLength should have comment or be unexported (golint)
    • Line 14: warning: exported const EncodedAddressLength should have comment or be unexported (golint)
    • Line 44: warning: exported type Address should have comment or be unexported (golint)
    • Line 46: warning: exported const AddressVersion should have comment or be unexported (golint)
    • Line 47: warning: exported const PrivKeyVersion should have comment or be unexported (golint)
    • Line 49: warning: exported function EncodeAddress should have comment or be unexported (golint)
    • Line 59: warning: exported function DecodeAddress should have comment or be unexported (golint)
    • Line 82: warning: exported function DecodeAddressBytes should have comment or be unexported (golint)
    • Line 97: warning: exported function EncodePrivKey should have comment or be unexported (golint)
    • Line 102: warning: exported function DecodePrivKey should have comment or be unexported (golint)
    • aergo/pkg/trie/trie_merkle_proof.go
    • Line 25: warning: comment on exported method Trie.MerkleProofR should be of the form "MerkleProofR ..." (golint)
    • Line 38: warning: comment on exported method Trie.MerkleProofCompressedR should be of the form "MerkleProofCompressedR ..." (golint)
    • Line 103: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 114: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • aergo/consensus/impl/raftv2/p2p.go
    • Line 12: warning: exported var MaxTimeOutCluter should have comment or be unexported (golint)
    • Line 21: warning: comment on exported function GetClusterInfo should be of the form "GetClusterInfo ..." (golint)
    • aergo/contract/vm_callback.go
    • Line 559: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 944: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 989: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 997: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1189: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1397: warning: comment on exported function LuaGetDbHandleSnap should be of the form "LuaGetDbHandleSnap ..." (golint)
    • Line 1422: warning: comment on exported function LuaGetDbSnapshot should be of the form "LuaGetDbSnapshot ..." (golint)
    • aergo/types/common.go
    • Line 9: warning: exported const MAXBLOCKNO should have comment or be unexported (golint)
    • Line 13: warning: exported function EncodeB64 should have comment or be unexported (golint)
    • Line 17: warning: exported function DecodeB64 should have comment or be unexported (golint)
    • Line 22: warning: exported function EncodeB58 should have comment or be unexported (golint)
    • Line 26: warning: exported function DecodeB58 should have comment or be unexported (golint)
    • aergo/consensus/chain/block.go
    • Line 21: warning: exported var ErrBlockEmpty should have comment or be unexported (golint)
    • Line 67: warning: exported type FetchFn should have comment or be unexported (golint)
    • Line 68: warning: exported type FetchDeco should have comment or be unexported (golint)
    • Line 70: warning: exported type BlockGenerator should have comment or be unexported (golint)
    • Line 83: warning: exported function NewBlockGenerator should have comment or be unexported (golint)
    • Line 97: warning: exported type RejTxInfo should have comment or be unexported (golint)
    • Line 107: warning: exported method RejTxInfo.Tx should have comment or be unexported (golint)
    • Line 111: warning: exported method RejTxInfo.Hash should have comment or be unexported (golint)
    • Line 115: warning: exported method RejTxInfo.Evictable should have comment or be unexported (golint)
    • Line 119: warning: exported method BlockGenerator.Rejected should have comment or be unexported (golint)
    • Line 159: warning: exported method BlockGenerator.WithDeco should have comment or be unexported (golint)
    • Line 166: warning: exported method BlockGenerator.SetNoTTE should have comment or be unexported (golint)
    • Line 208: warning: exported function SyncChain should have comment or be unexported (golint)
    • aergo/rpc/authentication.go
    • Line 1: warning: package comment should be of the form "Package rpc ..." (golint)
    • Line 19: warning: exported type Authentication should have comment or be unexported (golint)
    • Line 22: warning: exported const ReadBlockChain should have comment (or a comment on this block) or be unexported (golint)
    • aergo/cmd/aergocli/util/encoding/json/encode.go
    • Line 240: warning: exported type UnsupportedValueError should have comment or be unexported (golint)
    • Line 249: warning: comment on exported type InvalidUTF8Error should be of the form "InvalidUTF8Error ..." (with optional leading article) (golint)
    • Line 263: warning: exported type MarshalerError should have comment or be unexported (golint)
    • aergo/syncer/stubrequester.go
    • Line 9: warning: exported type StubRequester should have comment or be unexported (golint)
    • Line 14: warning: exported type StubRequestResult should have comment or be unexported (golint)
    • Line 20: warning: exported var ErrHubFutureTimeOut should have comment or be unexported (golint)
    • Line 23: warning: exported method StubRequestResult.Result should have comment or be unexported (golint)
    • Line 27: warning: exported function NewStubRequester should have comment or be unexported (golint)
    • Line 36: warning: comment on exported method StubRequester.RequestToFutureResult should be of the form "RequestToFutureResult ..." (golint)
    • Line 55: warning: exported method StubRequester.RequestTo should have comment or be unexported (golint)
    • Line 60: warning: exported method StubRequester.TellTo should have comment or be unexported (golint)
    • aergo/p2p/raftsupport/logutil.go
    • Line 14: warning: exported type RaftMsgMarshaller should have comment or be unexported (golint)
    • Line 18: warning: exported method RaftMsgMarshaller.MarshalZerologObject should have comment or be unexported (golint)
    • aergo/syncer/finder.go
    • Line 17: warning: exported type Finder should have comment or be unexported (golint)
    • Line 38: warning: exported type FinderResult should have comment or be unexported (golint)
    • Line 44: warning: exported var ErrFinderQuit should have comment or be unexported (golint)
    • Line 118: warning: exported method Finder.GetSeq should have comment or be unexported (golint)
    • Line 122: warning: exported method Finder.GetHashByNoRsp should have comment or be unexported (golint)
    • Line 280: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • aergo/p2p/p2putil/util.go
    • Line 39: warning: exported function ExtractBlockFromRequest should have comment or be unexported (golint)
    • Line 101: warning: exported function ExternalIP should have comment or be unexported (golint)
    • Line 138: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 183: warning: exported function PrintHashList should have comment or be unexported (golint)
    • Line 196: warning: exported function PrintChainID should have comment or be unexported (golint)
    • aergo/syncer/blockfetcher.go
    • Line 20: warning: exported type BlockFetcher should have comment or be unexported (golint)
    • Line 56: warning: exported type BlockFetcherStat should have comment or be unexported (golint)
    • Line 61: warning: exported type SyncPeer should have comment or be unexported (golint)
    • Line 68: warning: exported type TaskQueue should have comment or be unexported (golint)
    • Line 72: warning: exported type SortedTaskQueue should have comment or be unexported (golint)
    • Line 76: warning: exported method SortedTaskQueue.Push should have comment or be unexported (golint)
    • Line 96: warning: exported type FetchTask should have comment or be unexported (golint)
    • Line 107: warning: exported type PeerSet should have comment or be unexported (golint)
    • Line 118: warning: exported var DfltFetchTimeOut should have comment or be unexported (golint)
    • Line 126: warning: exported var ErrAllPeerBad should have comment or be unexported (golint)
    • Line 153: warning: exported method BlockFetcher.Start should have comment or be unexported (golint)
    • Line 276: warning: exported method BlockFetcher.GetSeq should have comment or be unexported (golint)
    • Line 484: warning: exported type LogBlockHashesMarshaller should have comment or be unexported (golint)
    • Line 489: warning: exported method LogBlockHashesMarshaller.MarshalZerologArray should have comment or be unexported (golint)
    • Line 720: warning: exported method TaskQueue.Pop should have comment or be unexported (golint)
    • Line 730: warning: exported method TaskQueue.Peek should have comment or be unexported (golint)
    • aergo/examples/component/server/server.go
    • Line 14: warning: exported type TestServer should have comment or be unexported (golint)
    • Line 18: warning: exported method TestServer.BeforeStart should have comment or be unexported (golint)
    • Line 22: warning: exported method TestServer.AfterStart should have comment or be unexported (golint)
    • Line 22: warning: receiver name cs should be consistent with previous receiver name ts for TestServer (golint)
    • Line 26: warning: exported method TestServer.BeforeStop should have comment or be unexported (golint)
    • Line 31: warning: exported method TestServer.Statistics should have comment or be unexported (golint)
    • Line 35: warning: exported method TestServer.Receive should have comment or be unexported (golint)
    • aergo/p2p/metric/exponentmetric.go
    • Line 28: warning: exported function NewExponentMetric5 should have comment or be unexported (golint)
    • Line 32: warning: comment on exported function NewExponentMetric15 should be of the form "NewExponentMetric15 ..." (golint)
    • Line 37: warning: exported function NewExponentMetric should have comment or be unexported (golint)
    • aergo/p2p/blkreceiver.go
    • Line 47: warning: exported function NewBlockReceiver should have comment or be unexported (golint)
    • Line 52: warning: exported method BlocksChunkReceiver.StartGet should have comment or be unexported (golint)
    • aergo/types/receipt.go
    • Line 27: warning: exported function NewReceipt should have comment or be unexported (golint)
    • Line 283: warning: exported method Receipt.MarshalBinaryTest should have comment or be unexported (golint)
    • Line 287: warning: exported method Receipt.MarshalMerkleBinary should have comment or be unexported (golint)
    • Line 306: warning: exported method Receipt.MarshalMerkleBinaryV2 should have comment or be unexported (golint)
    • Line 325: warning: exported method Receipt.UnmarshalBinaryTest should have comment or be unexported (golint)
    • Line 330: warning: exported method Receipt.ReadFrom should have comment or be unexported (golint)
    • Line 346: warning: exported method Receipt.MarshalJSONPB should have comment or be unexported (golint)
    • Line 350: warning: exported method Receipt.MarshalJSON should have comment or be unexported (golint)
    • Line 403: warning: exported method Receipt.GetHash should have comment or be unexported (golint)
    • Line 410: warning: exported method Receipt.BloomFilter should have comment or be unexported (golint)
    • Line 437: warning: exported method Receipt.SetMemoryInfo should have comment or be unexported (golint)
    • Line 456: warning: exported type ReceiptMerkle should have comment or be unexported (golint)
    • Line 462: warning: exported method ReceiptMerkle.GetHash should have comment or be unexported (golint)
    • Line 474: warning: exported type Receipts should have comment or be unexported (golint)
    • Line 481: warning: exported method Receipts.Get should have comment or be unexported (golint)
    • Line 488: warning: exported method Receipts.Set should have comment or be unexported (golint)
    • Line 492: warning: exported method Receipts.SetHardFork should have comment or be unexported (golint)
    • Line 497: warning: exported const BloomBitByte should have comment or be unexported (golint)
    • Line 498: warning: exported const BloomBitBits should have comment or be unexported (golint)
    • Line 499: warning: exported const BloomHashKNum should have comment or be unexported (golint)
    • Line 501: warning: exported method Receipts.MergeBloom should have comment or be unexported (golint)
    • Line 509: warning: exported method Receipts.BloomFilter should have comment or be unexported (golint)
    • Line 520: warning: exported method Receipts.MerkleRoot should have comment or be unexported (golint)
    • Line 538: warning: exported method Receipts.MarshalBinary should have comment or be unexported (golint)
    • Line 571: warning: exported method Receipts.UnmarshalBinary should have comment or be unexported (golint)
    • Line 629: warning: exported method Event.MarshalBinary should have comment or be unexported (golint)
    • Line 688: warning: exported method Event.MarshalMerkleBinary should have comment or be unexported (golint)
    • Line 694: warning: exported method Event.UnmarshalBinary should have comment or be unexported (golint)
    • Line 725: warning: exported method Event.MarshalJSON should have comment or be unexported (golint)
    • Line 747: warning: exported method Event.SetMemoryInfo should have comment or be unexported (golint)
    • Line 812: warning: exported method Event.Filter should have comment or be unexported (golint)
    • Line 841: warning: exported type ArgFilter should have comment or be unexported (golint)
    • Line 846: warning: exported const MAXBLOCKRANGE should have comment or be unexported (golint)
    • Line 849: warning: exported function AddressPadding should have comment or be unexported (golint)
    • Line 855: warning: exported function AddressOrigin should have comment or be unexported (golint)
    • Line 862: warning: exported method FilterInfo.ValidateCheck should have comment or be unexported (golint)
    • Line 873: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 879: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 886: warning: exported method FilterInfo.GetExArgFilter should have comment or be unexported (golint)
    • aergo/contract/vm_dummy.go
    • Line 28: warning: exported type DummyChain should have comment or be unexported (golint)
    • Line 55: warning: exported function LoadDummyChain should have comment or be unexported (golint)
    • Line 106: warning: exported method DummyChain.Release should have comment or be unexported (golint)
    • Line 114: warning: exported method DummyChain.BestBlockNo should have comment or be unexported (golint)
    • Line 134: warning: exported method DummyChain.BeginReceiptTx should have comment or be unexported (golint)
    • Line 138: warning: exported method DummyChain.GetABI should have comment or be unexported (golint)
    • Line 146: warning: exported method DummyChain.GetEvents should have comment or be unexported (golint)
    • Line 155: warning: exported method DummyChain.GetReceipt should have comment or be unexported (golint)
    • Line 161: warning: exported method DummyChain.GetAccountState should have comment or be unexported (golint)
    • Line 165: warning: exported method DummyChain.GetStaking should have comment or be unexported (golint)
    • Line 173: warning: exported method DummyChain.GetBlockByNo should have comment or be unexported (golint)
    • Line 177: warning: exported method DummyChain.GetBestBlock should have comment or be unexported (golint)
    • Line 181: warning: exported type LuaTxTester should have comment or be unexported (golint)
    • Line 195: warning: exported function NewLuaTxAccount should have comment or be unexported (golint)
    • Line 199: warning: exported function NewLuaTxAccountBig should have comment or be unexported (golint)
    • Line 236: warning: exported function NewLuaTxSendBig should have comment or be unexported (golint)
    • Line 345: warning: exported function NewLuaTxDef should have comment or be unexported (golint)
    • Line 353: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 499: warning: exported function NewLuaTxCall should have comment or be unexported (golint)
    • Line 503: warning: exported function NewLuaTxCallBig should have comment or be unexported (golint)
    • Line 515: warning: exported function NewLuaTxCallFeeDelegate should have comment or be unexported (golint)
    • Line 570: warning: exported method DummyChain.ConnectBlock should have comment or be unexported (golint)
    • Line 608: warning: exported method DummyChain.DisConnectBlock should have comment or be unexported (golint)
    • Line 626: warning: exported method DummyChain.Query should have comment or be unexported (golint)
    • Line 655: warning: exported method DummyChain.QueryOnly should have comment or be unexported (golint)
    • Line 679: warning: exported function StrToAddress should have comment or be unexported (golint)
    • Line 683: warning: exported function OnPubNet should have comment or be unexported (golint)
    • aergo/fee/gas.go
    • Line 13: warning: exported function TxGas should have comment or be unexported (golint)
    • Line 26: warning: exported function MaxGasLimit should have comment or be unexported (golint)
    • aergo/mempool/txverifier.go
    • Line 10: warning: exported type TxVerifier should have comment or be unexported (golint)
    • Line 14: warning: exported function NewTxVerifier should have comment or be unexported (golint)
    • aergo/types/rpc.go
    • Line 14: warning: error var RPCErrInvalidArgument should have name of the form ErrFoo (golint)
    • Line 14: warning: exported var RPCErrInvalidArgument should have comment or be unexported (golint)
    • Line 15: warning: error var RPCErrInternalError should have name of the form ErrFoo (golint)
    • Line 15: warning: exported var RPCErrInternalError should have comment or be unexported (golint)
    • Line 17: warning: exported function AddCategory should have comment or be unexported (golint)
    • Line 23: warning: exported method ConfigItem.AddInt should have comment or be unexported (golint)
    • Line 28: warning: exported method ConfigItem.AddBool should have comment or be unexported (golint)
    • Line 33: warning: exported method ConfigItem.AddFloat should have comment or be unexported (golint)
    • Line 38: warning: exported method ConfigItem.Add should have comment or be unexported (golint)
    • Line 65: warning: exported method Staking.SetWhen should have comment or be unexported (golint)
    • aergo/cmd/brick/context/util.go
    • Line 7: warning: exported function ParseFirstWord should have comment or be unexported (golint)
    • Line 20: warning: exported type Chunk should have comment or be unexported (golint)
    • Line 25: warning: exported function SplitSpaceAndAccent should have comment or be unexported (golint)
    • aergo/p2p/p2pcommon/remotepeer.go
    • Line 6: warning: package comment should be of the form "Package p2pcommon ..." (golint)
    • Line 14: warning: exported type PeerFactory should have comment or be unexported (golint)
    • Line 21: warning: exported type RemotePeer should have comment or be unexported (golint)
    • aergo/polaris/client/polarisconnect.go
    • Line 28: warning: exported var ErrTooLowVersion should have comment or be unexported (golint)
    • Line 30: warning: comment on exported type PolarisConnectSvc should be of the form "PolarisConnectSvc ..." (with optional leading article) (golint)
    • Line 45: warning: exported function NewPolarisConnectSvc should have comment or be unexported (golint)
    • Line 107: warning: exported method PolarisConnectSvc.BeforeStart should have comment or be unexported (golint)
    • Line 109: warning: exported method PolarisConnectSvc.AfterStart should have comment or be unexported (golint)
    • Line 115: warning: exported method PolarisConnectSvc.BeforeStop should have comment or be unexported (golint)
    • Line 119: warning: exported method PolarisConnectSvc.Statistics should have comment or be unexported (golint)
    • Line 125: warning: exported method PolarisConnectSvc.Receive should have comment or be unexported (golint)
    • Line 200: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • aergo/types/listentry.go
    • Line 18: warning: exported const NotSpecifiedID should have comment or be unexported (golint)
    • Line 21: warning: error var InvalidEntryErr should have name of the form ErrFoo (golint)
    • Line 21: warning: exported var InvalidEntryErr should have comment or be unexported (golint)
    • Line 22: warning: error var InvalidPeerIDErr should have name of the form ErrFoo (golint)
    • Line 23: warning: error var InvalidAddrRangeErr should have name of the form ErrFoo (golint)
    • Line 24: warning: error var InvalidStateErr should have name of the form ErrFoo (golint)
    • Line 27: warning: exported type WhiteListEntry should have comment or be unexported (golint)
    • Line 33: warning: exported type RawEntry should have comment or be unexported (golint)
    • Line 42: warning: exported function ParseListEntry should have comment or be unexported (golint)
    • Line 51: warning: exported function NewListEntry should have comment or be unexported (golint)
    • Line 95: warning: exported method WhiteListEntry.Contains should have comment or be unexported (golint)
    • Line 102: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 109: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 118: warning: exported function ReadEntries should have comment or be unexported (golint)
    • Line 135: warning: exported function WriteEntries should have comment or be unexported (golint)
    • aergo/types/p2paddr.go
    • Line 5: warning: exported type AddrType should have comment or be unexported (golint)
    • Line 7: warning: exported const InvalidAddrType should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported type NetAddress should have comment or be unexported (golint)
    • aergo/contract/contract.go
    • Line 39: warning: exported var PubNet should have comment or be unexported (golint)
    • Line 47: warning: exported const BlockFactory should have comment (or a comment on this block) or be unexported (golint)
    • Line 60: warning: exported function SetPreloadTx should have comment or be unexported (golint)
    • Line 64: warning: exported function Execute should have comment or be unexported (golint)
    • Line 205: warning: exported function PreLoadRequest should have comment or be unexported (golint)
    • Line 272: warning: exported function CreateContractID should have comment or be unexported (golint)
    • Line 300: warning: exported function SetBPTimeout should have comment or be unexported (golint)
    • Line 304: warning: exported function GasUsed should have comment or be unexported (golint)
    • Line 311: warning: exported function SetStateSQLMaxDBSize should have comment or be unexported (golint)
    • aergo/cmd/brick/context/context.go
    • Line 20: warning: exported var GitHash should have comment or be unexported (golint)
    • Line 28: warning: exported function Open should have comment or be unexported (golint)
    • Line 47: warning: exported function Close should have comment or be unexported (golint)
    • Line 53: warning: exported function Reset should have comment or be unexported (golint)
    • Line 57: warning: exported function LivePrefix should have comment or be unexported (golint)
    • Line 63: warning: exported function Get should have comment or be unexported (golint)
    • aergo/polaris/common/consts.go
    • Line 11: warning: comment on exported var MainnetMapServer should be of the form "MainnetMapServer ..." (golint)
    • Line 16: warning: comment on exported var TestnetMapServer should be of the form "TestnetMapServer ..." (golint)
    • Line 21: warning: comment on exported var ONEMainNet should be of the form "ONEMainNet ..." (golint)
    • Line 23: warning: exported var ONETestNet should have comment or be unexported (golint)
    • aergo/types/raft.go
    • Line 10: warning: exported type ChangeClusterStatus should have comment or be unexported (golint)
    • Line 16: warning: exported type EnterpriseTxStatus should have comment or be unexported (golint)
    • Line 22: warning: exported method ConfChangeProgress.ToString should have comment or be unexported (golint)
    • Line 31: warning: exported method ConfChangeProgress.ToPrintable should have comment or be unexported (golint)
    • Line 35: warning: exported function RaftConfChangeToString should have comment or be unexported (golint)
    • Line 39: warning: exported method MembershipChange.ToString should have comment or be unexported (golint)
    • Line 48: warning: exported method MemberAttr.MarshalJSON should have comment or be unexported (golint)
    • Line 62: warning: exported method MemberAttr.UnmarshalJSON should have comment or be unexported (golint)
    • Line 100: warning: exported method MemberAttr.ToString should have comment or be unexported (golint)
    • Line 109: warning: exported method HardStateInfo.ToString should have comment or be unexported (golint)
    • Line 116: warning: exported function RaftHardStateToString should have comment or be unexported (golint)
    • Line 120: warning: exported function RaftEntryToString should have comment or be unexported (golint)
    • Line 124: warning: exported function Uint64ToHexaString should have comment or be unexported (golint)
    • aergo/p2p/p2putil/peerutil.go
    • Line 15: warning: exported var UseFullID should have comment or be unexported (golint)
    • Line 26: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 32: warning: exported function ShortMetaForm should have comment or be unexported (golint)
    • Line 36: warning: exported function ContainsID should have comment or be unexported (golint)
    • aergo/types/logging.go
    • Line 9: warning: exported type LogTxHash should have comment or be unexported (golint)
    • Line 13: warning: exported method LogTxHash.MarshalZerologObject should have comment or be unexported (golint)
    • Line 17: warning: exported type LogTx should have comment or be unexported (golint)
    • Line 21: warning: exported method LogTx.MarshalZerologObject should have comment or be unexported (golint)
    • Line 25: warning: exported type LogTrsactions should have comment or be unexported (golint)
    • Line 30: warning: exported method LogTrsactions.MarshalZerologArray should have comment or be unexported (golint)
    • aergo/contract/enterprise/config.go
    • Line 14: warning: exported const RPCPermissions should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported type Conf should have comment or be unexported (golint)
    • Line 33: warning: exported method Conf.AppendValue should have comment or be unexported (golint)
    • Line 39: warning: exported method Conf.RemoveValue should have comment or be unexported (golint)
    • Line 48: warning: exported method Conf.Validate should have comment or be unexported (golint)
    • Line 80: warning: exported function GetConf should have comment or be unexported (golint)
    • Line 87: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • aergo/p2p/subproto/base.go
    • Line 8: warning: comment on exported type BaseMsgHandler should be of the form "BaseMsgHandler ..." (with optional leading article) (golint)
    • Line 25: warning: exported method BaseMsgHandler.CheckAuth should have comment or be unexported (golint)
    • Line 32: warning: exported method BaseMsgHandler.AddAdvice should have comment or be unexported (golint)
    • Line 37: warning: exported method BaseMsgHandler.PreHandle should have comment or be unexported (golint)
    • Line 43: warning: exported method BaseMsgHandler.PostHandle should have comment or be unexported (golint)
    • aergo/p2p/subproto/bp.go
    • Line 25: warning: comment on exported function NewBlockProducedNoticeHandler should be of the form "NewBlockProducedNoticeHandler ..." (golint)
    • Line 53: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 72: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 85: warning: comment on exported function NewAgentBlockProducedNoticeHandler should be of the form "NewAgentBlockProducedNoticeHandler ..." (golint)
    • Line 112: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • aergo/p2p/p2pcommon/messagevalue.go
    • Line 38: warning: exported function NewSimpleMsgVal should have comment or be unexported (golint)
    • Line 42: warning: exported function NewSimpleRespMsgVal should have comment or be unexported (golint)
    • Line 46: warning: exported method MessageValue.Subprotocol should have comment or be unexported (golint)
    • Line 50: warning: exported method MessageValue.Length should have comment or be unexported (golint)
    • Line 55: warning: exported method MessageValue.Timestamp should have comment or be unexported (golint)
    • Line 59: warning: exported method MessageValue.ID should have comment or be unexported (golint)
    • Line 63: warning: exported method MessageValue.OriginalID should have comment or be unexported (golint)
    • Line 67: warning: exported method MessageValue.Payload should have comment or be unexported (golint)
    • Line 71: warning: exported method MessageValue.SetPayload should have comment or be unexported (golint)
    • aergo/types/state.go
    • Line 14: warning: exported const HashIDLength should have comment (or a comment on this block) or be unexported (golint)
    • Line 82: warning: comment on exported function ParseToBlockID should be of the form "ParseToBlockID ..." (golint)
    • Line 166: warning: exported function Clone should have comment or be unexported (golint)
    • Line 173: warning: exported method State.GetBalanceBigInt should have comment or be unexported (golint)
    • aergo/account/signer.go
    • Line 9: warning: exported type Signer should have comment or be unexported (golint)
    • Line 13: warning: exported function NewSigner should have comment or be unexported (golint)
    • aergo/p2p/metric/peermetric.go
    • Line 15: warning: exported type PeerMetric should have comment or be unexported (golint)
    • Line 30: warning: exported method PeerMetric.OnRead should have comment or be unexported (golint)
    • Line 35: warning: exported method PeerMetric.OnWrite should have comment or be unexported (golint)
    • Line 40: warning: exported method PeerMetric.TotalIn should have comment or be unexported (golint)
    • Line 44: warning: exported method PeerMetric.TotalOut should have comment or be unexported (golint)
    • Line 48: warning: comment on exported method PeerMetric.InputAdded should be of the form "InputAdded ..." (golint)
    • Line 53: warning: comment on exported method PeerMetric.OutputAdded should be of the form "OutputAdded ..." (golint)
    • aergo/state/blockstate.go
    • Line 41: warning: exported type BlockStateOptFn should have comment or be unexported (golint)
    • Line 43: warning: exported function SetPrevBlockHash should have comment or be unexported (golint)
    • Line 49: warning: exported function SetGasPrice should have comment or be unexported (golint)
    • Line 68: warning: exported method BlockState.Consensus should have comment or be unexported (golint)
    • Line 72: warning: exported method BlockState.SetConsensus should have comment or be unexported (golint)
    • Line 76: warning: exported method BlockState.AddReceipt should have comment or be unexported (golint)
    • Line 94: warning: exported method BlockState.Receipts should have comment or be unexported (golint)
    • Line 101: warning: exported method BlockState.SetPrevBlockHash should have comment or be unexported (golint)
    • Line 108: warning: exported method BlockState.SetGasPrice should have comment or be unexported (golint)
    • Line 115: warning: exported method BlockState.TimeoutTx should have comment or be unexported (golint)
    • Line 122: warning: exported method BlockState.SetTimeoutTx should have comment or be unexported (golint)
    • Line 126: warning: exported method BlockState.PrevBlockHash should have comment or be unexported (golint)
    • Line 130: warning: exported method BlockState.GetCode should have comment or be unexported (golint)
    • Line 141: warning: exported method BlockState.AddCode should have comment or be unexported (golint)
    • Line 148: warning: exported method BlockState.GetABI should have comment or be unexported (golint)
    • Line 159: warning: exported method BlockState.AddABI should have comment or be unexported (golint)
    • Line 166: warning: exported method BlockState.RemoveCache should have comment or be unexported (golint)
    • aergo/chain/stubchain.go
    • Line 13: warning: comment on exported type StubBlockChain should be of the form "StubBlockChain ..." (with optional leading article) (golint)
    • Line 25: warning: exported var ErrNotExistHash should have comment or be unexported (golint)
    • Line 31: warning: exported function NewStubBlockChain should have comment or be unexported (golint)
    • Line 44: warning: exported method StubBlockChain.GenAddBlock should have comment or be unexported (golint)
    • Line 60: warning: exported method StubBlockChain.AddBlock should have comment or be unexported (golint)
    • Line 72: warning: exported method StubBlockChain.GetHashes should have comment or be unexported (golint)
    • Line 88: warning: exported method StubBlockChain.GetBlockInfo should have comment or be unexported (golint)
    • Line 92: warning: exported method StubBlockChain.GetBlockByNo should have comment or be unexported (golint)
    • Line 96: warning: exported method StubBlockChain.GetBlocks should have comment or be unexported (golint)
    • Line 124: warning: exported method StubBlockChain.GetGenesisInfo should have comment or be unexported (golint)
    • Line 130: warning: exported method StubBlockChain.GetConsensusInfo should have comment or be unexported (golint)
    • Line 134: warning: exported method StubBlockChain.GetChainStats should have comment or be unexported (golint)
    • Line 138: warning: exported method StubBlockChain.GetSystemValue should have comment or be unexported (golint)
    • Line 142: warning: exported method StubBlockChain.GetEnterpriseConfig should have comment or be unexported (golint)
    • Line 146: warning: exported method StubBlockChain.GetBestBlock should have comment or be unexported (golint)
    • Line 150: warning: exported method StubBlockChain.GetBlock should have comment or be unexported (golint)
    • Line 161: warning: exported method StubBlockChain.GetHashByNo should have comment or be unexported (golint)
    • Line 169: warning: comment on exported method StubBlockChain.GetAnchors should be of the form "GetAnchors ..." (golint)
    • Line 206: warning: exported method StubBlockChain.GetAncestorWithHashes should have comment or be unexported (golint)
    • Line 218: warning: exported method StubBlockChain.ChainID should have comment or be unexported (golint)
    • Line 222: warning: exported method StubBlockChain.Rollback should have comment or be unexported (golint)
    • Line 230: warning: exported function InitStubBlockChain should have comment or be unexported (golint)
    • aergo/contract/enterprise/changecluster.go
    • Line 10: warning: exported type CcArgument should have comment or be unexported (golint)
    • Line 13: warning: exported const CmdMembershipAdd should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported function ValidateChangeCluster should have comment or be unexported (golint)
    • aergo/p2p/subproto/block.go
    • Line 49: warning: comment on exported function NewGetBlockHeadersReqHandler should be of the form "NewGetBlockHeadersReqHandler ..." (golint)
    • Line 126: warning: comment on exported function NewGetBlockHeaderRespHandler should be of the form "NewGetBlockHeaderRespHandler ..." (golint)
    • Line 147: warning: comment on exported function NewNewBlockNoticeHandler should be of the form "NewNewBlockNoticeHandler ..." (golint)
    • Line 167: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 188: warning: comment on exported function NewGetAncestorReqHandler should be of the form "NewGetAncestorReqHandler ..." (golint)
    • Line 249: warning: comment on exported function NewGetAncestorRespHandler should be of the form "NewGetAncestorRespHandler ..." (golint)
    • aergo/p2p/p2pcommon/peermeta.go
    • Line 29: warning: exported method PeerMeta.GetVersion should have comment or be unexported (golint)
    • Line 32: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 42: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 47: warning: comment on exported function NewMetaFromStatus should be of the form "NewMetaFromStatus ..." (golint)
    • Line 78: warning: comment on exported method PeerMeta.PrimaryPort should be of the form "PrimaryPort ..." (golint)
    • Line 84: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 93: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 99: warning: exported method PeerMeta.Equals should have comment or be unexported (golint)
    • Line 131: warning: exported function FromPeerAddressNew should have comment or be unexported (golint)
    • aergo/types/transaction.go
    • Line 17: warning: exported const SetContractOwner should have comment or be unexported (golint)
    • Line 18: warning: exported const NameCreate should have comment or be unexported (golint)
    • Line 19: warning: exported const NameUpdate should have comment or be unexported (golint)
    • Line 21: warning: exported const TxMaxSize should have comment or be unexported (golint)
    • Line 27: warning: exported function InitGovernance should have comment or be unexported (golint)
    • Line 47: warning: exported type Transaction should have comment or be unexported (golint)
    • Line 68: warning: exported function NewTransaction should have comment or be unexported (golint)
    • Line 183: warning: exported function ValidateSystemTx should have comment or be unexported (golint)
    • Line 345: warning: comment on exported method Tx.ValidateWithContractState should be of the form "ValidateWithContractState ..." (golint)
    • aergo/cmd/colaris/cmd/common.go
    • Line 16: warning: exported type PolarisClient should have comment or be unexported (golint)
    • Line 23: warning: exported function GetClient should have comment or be unexported (golint)
    • Line 38: warning: exported method PolarisClient.Close should have comment or be unexported (golint)
    • aergo/types/p2plogging.go
    • Line 15: warning: exported const LogChainID should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported function NewLogB58EncMarshaller should have comment or be unexported (golint)
    • Line 32: warning: exported method LogB58EncMarshaller.MarshalZerologArray should have comment or be unexported (golint)
    • Line 46: warning: exported type LogBlockHashMarshaller should have comment or be unexported (golint)
    • Line 51: warning: exported method LogBlockHashMarshaller.MarshalZerologArray should have comment or be unexported (golint)
    • Line 65: warning: exported type LogTxIDsMarshaller should have comment or be unexported (golint)
    • Line 70: warning: exported function NewLogTxIDsMarshaller should have comment or be unexported (golint)
    • Line 74: warning: exported method LogTxIDsMarshaller.MarshalZerologArray should have comment or be unexported (golint)
    • Line 88: warning: exported type RaftMbrsMarshaller should have comment or be unexported (golint)
    • Line 93: warning: exported method RaftMbrsMarshaller.MarshalZerologArray should have comment or be unexported (golint)
    • Line 107: warning: exported method GoAwayNotice.MarshalZerologObject should have comment or be unexported (golint)
    • Line 111: warning: exported method AddressesResponse.MarshalZerologObject should have comment or be unexported (golint)
    • Line 115: warning: exported method GetTransactionsRequest.MarshalZerologObject should have comment or be unexported (golint)
    • Line 119: warning: exported method GetTransactionsResponse.MarshalZerologObject should have comment or be unexported (golint)
    • Line 123: warning: exported method GetBlockRequest.MarshalZerologObject should have comment or be unexported (golint)
    • Line 127: warning: exported method GetBlockResponse.MarshalZerologObject should have comment or be unexported (golint)
    • Line 131: warning: exported method NewTransactionsNotice.MarshalZerologObject should have comment or be unexported (golint)
    • Line 135: warning: exported method BlockProducedNotice.MarshalZerologObject should have comment or be unexported (golint)
    • Line 139: warning: exported method Ping.MarshalZerologObject should have comment or be unexported (golint)
    • Line 143: warning: exported method GetHashesRequest.MarshalZerologObject should have comment or be unexported (golint)
    • Line 147: warning: exported method GetHashesResponse.MarshalZerologObject should have comment or be unexported (golint)
    • Line 151: warning: exported method GetBlockHeadersRequest.MarshalZerologObject should have comment or be unexported (golint)
    • Line 155: warning: exported method GetBlockHeadersResponse.MarshalZerologObject should have comment or be unexported (golint)
    • Line 159: warning: exported method GetHashByNo.MarshalZerologObject should have comment or be unexported (golint)
    • Line 163: warning: exported method GetHashByNoResponse.MarshalZerologObject should have comment or be unexported (golint)
    • Line 167: warning: exported method GetAncestorRequest.MarshalZerologObject should have comment or be unexported (golint)
    • Line 171: warning: exported method GetAncestorResponse.MarshalZerologObject should have comment or be unexported (golint)
    • Line 175: warning: exported method GetClusterInfoRequest.MarshalZerologObject should have comment or be unexported (golint)
    • Line 179: warning: exported method GetClusterInfoResponse.MarshalZerologObject should have comment or be unexported (golint)
    • Line 183: warning: exported method IssueCertificateResponse.MarshalZerologObject should have comment or be unexported (golint)
    • Line 189: warning: exported method CertificateRenewedNotice.MarshalZerologObject should have comment or be unexported (golint)
    • aergo/types/p2ptypes.go
    • Line 27: warning: comment on exported function RandomPeerID should be of the form "RandomPeerID ..." (golint)
    • Line 33: warning: exported function IDB58Decode should have comment or be unexported (golint)
    • Line 36: warning: exported function IDB58Encode should have comment or be unexported (golint)
    • Line 40: warning: exported function IDFromBytes should have comment or be unexported (golint)
    • Line 43: warning: exported function IDFromPublicKey should have comment or be unexported (golint)
    • Line 46: warning: exported function IDFromPrivateKey should have comment or be unexported (golint)
    • Line 49: warning: exported function IsSamePeerID should have comment or be unexported (golint)
    • Line 59: warning: error var InvalidArgument should have name of the form ErrFoo (golint)
    • Line 59: warning: exported var InvalidArgument should have comment or be unexported (golint)
    • Line 69: warning: exported function PeerToMultiAddr should have comment or be unexported (golint)
    • Line 117: warning: exported const PortUndefined should have comment or be unexported (golint)
    • Line 119: warning: exported var ErrInvalidIPAddress should have comment or be unexported (golint)
    • Line 120: warning: exported var ErrInvalidPort should have comment or be unexported (golint)
    • Line 134: warning: exported function IsAddress should have comment or be unexported (golint)
    • Line 143: warning: exported function GetIPPortFromMultiaddr should have comment or be unexported (golint)
    • Line 155: warning: exported function GetIPFromMultiaddr should have comment or be unexported (golint)
    • Line 162: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 167: warning: exported function GetPortFromMultiaddr should have comment or be unexported (golint)
    • aergo/p2p/p2pcommon/handshake.go
    • Line 1: warning: package comment should be of the form "Package p2pcommon ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 16: warning: exported type HandshakeResult should have comment or be unexported (golint)
    • Line 37: warning: exported type VersionedManager should have comment or be unexported (golint)
    • Line 60: warning: exported method HSHeader.Marshal should have comment or be unexported (golint)
    • Line 67: warning: exported method HSHeader.Unmarshal should have comment or be unexported (golint)
    • Line 79: warning: exported method HSHeadReq.Marshal should have comment or be unexported (golint)
    • Line 102: warning: exported method HSHeadResp.Marshal should have comment or be unexported (golint)
    • Line 109: warning: exported method HSHeadResp.Unmarshal should have comment or be unexported (golint)
    • aergo/contract/name/execute.go
    • Line 14: warning: exported function ExecuteNameTx should have comment or be unexported (golint)
    • Line 86: warning: exported function ValidateNameTx should have comment or be unexported (golint)
    • Line 126: warning: exported function SetContractOwner should have comment or be unexported (golint)
    • aergo/contract/system/staking.go
    • Line 1: warning: package comment should be of the form "Package system ..." (golint)
    • Line 22: warning: exported var ErrInvalidCandidate should have comment or be unexported (golint)
    • Line 25: warning: exported const StakingDelay should have comment or be unexported (golint)
    • Line 28: warning: exported function InitGovernance should have comment or be unexported (golint)
    • Line 155: warning: exported function GetStaking should have comment or be unexported (golint)
    • Line 162: warning: exported function GetStakingTotal should have comment or be unexported (golint)
    • aergo/p2p/txreceiver.go
    • Line 44: warning: exported function NewGetTxsReceiver should have comment or be unexported (golint)
    • Line 48: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 55: warning: exported method GetTxsReceiver.StartGet should have comment or be unexported (golint)
    • aergo/chain/reorg.go
    • Line 28: warning: exported var ErrInvalidReorgMarker should have comment or be unexported (golint)
    • Line 52: warning: exported type ErrReorgBlock should have comment or be unexported (golint)
    • Line 70: warning: exported var ErrInvalidBranchRoot should have comment or be unexported (golint)
    • aergo/p2p/subproto/ping.go
    • Line 33: warning: comment on exported function NewPingReqHandler should be of the form "NewPingReqHandler ..." (golint)
    • Line 50: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 60: warning: comment on exported function NewPingRespHandler should be of the form "NewPingRespHandler ..." (golint)
    • Line 77: warning: comment on exported function NewGoAwayHandler should be of the form "NewGoAwayHandler ..." (golint)
    • aergo/contract/system/vote.go
    • Line 22: warning: exported const PeerIDLength should have comment (or a comment on this block) or be unexported (golint)
    • Line 53: warning: exported function GetVotingCatalog should have comment or be unexported (golint)
    • Line 300: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 312: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 359: warning: exported function GetBpCount should have comment or be unexported (golint)
    • Line 379: warning: exported function GetParam should have comment or be unexported (golint)
    • aergo/config/types.go
    • Line 132: warning: exported type RaftConfig should have comment or be unexported (golint)
    • Line 147: warning: exported type RaftBPConfig should have comment or be unexported (golint)
    • Line 153: warning: exported type MonitorConfig should have comment or be unexported (golint)
    • Line 158: warning: comment on exported type AccountConfig should be of the form "AccountConfig ..." (with optional leading article) (golint)
    • Line 163: warning: exported type SQLConfig should have comment or be unexported (golint)
    • aergo/polaris/server/mapservice.go
    • Line 44: warning: exported var EmptyMsgID should have comment or be unexported (golint)
    • Line 75: warning: exported function NewPolarisService should have comment or be unexported (golint)
    • Line 94: warning: exported method PeerMapService.SetHub should have comment or be unexported (golint)
    • Line 98: warning: exported method PeerMapService.BeforeStart should have comment or be unexported (golint)
    • Line 100: warning: exported method PeerMapService.AfterStart should have comment or be unexported (golint)
    • Line 108: warning: exported method PeerMapService.BeforeStop should have comment or be unexported (golint)
    • Line 116: warning: exported method PeerMapService.Statistics should have comment or be unexported (golint)
    • Line 398: warning: exported method PeerMapService.Receive should have comment or be unexported (golint)
    • Line 522: warning: comment on exported method PeerMapService.SendGoAwayMsg should be of the form "SendGoAwayMsg ..." (golint)
    • Line 558: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • aergo/contract/system/execute.go
    • Line 1: warning: package comment should be of the form "Package system ..." (golint)
    • Line 50: warning: receiver name c should be consistent with previous receiver name ctx for SystemContext (golint)
    • Line 84: warning: exported function ExecuteSystemTx should have comment or be unexported (golint)
    • Line 100: warning: exported function GetVotes should have comment or be unexported (golint)
    • aergo/consensus/impl/raftv2/raftlogger.go
    • Line 10: warning: comment on exported type RaftLogger should be of the form "RaftLogger ..." (with optional leading article) (golint)
    • Line 16: warning: exported function NewRaftLogger should have comment or be unexported (golint)
    • Line 24: warning: exported method RaftLogger.Fatal should have comment or be unexported (golint)
    • Line 29: warning: exported method RaftLogger.Fatalf should have comment or be unexported (golint)
    • Line 33: warning: exported method RaftLogger.Panic should have comment or be unexported (golint)
    • Line 38: warning: exported method RaftLogger.Panicf should have comment or be unexported (golint)
    • Line 46: warning: exported method RaftLogger.Errorf should have comment or be unexported (golint)
    • Line 50: warning: exported method RaftLogger.Warning should have comment or be unexported (golint)
    • Line 54: warning: exported method RaftLogger.Warningf should have comment or be unexported (golint)
    • Line 58: warning: exported method RaftLogger.Info should have comment or be unexported (golint)
    • Line 62: warning: exported method RaftLogger.Infof should have comment or be unexported (golint)
    • Line 66: warning: exported method RaftLogger.Debug should have comment or be unexported (golint)
    • Line 70: warning: exported method RaftLogger.Debugf should have comment or be unexported (golint)
    • aergo/p2p/subproto/cert.go
    • Line 29: warning: comment on exported function NewIssueCertReqHandler should be of the form "NewIssueCertReqHandler ..." (golint)
    • Line 64: warning: comment on exported function NewIssueCertRespHandler should be of the form "NewIssueCertRespHandler ..." (golint)
    • Line 96: warning: comment on exported function NewCertRenewedNoticeHandler should be of the form "NewCertRenewedNoticeHandler ..." (golint)
    • aergo/chain/recover.go
    • Line 16: warning: exported var ErrInvalidPrevHash should have comment or be unexported (golint)
    • Line 20: warning: exported function RecoverExit should have comment or be unexported (golint)
    • Line 120: warning: exported type ReorgMarker should have comment or be unexported (golint)
    • Line 130: warning: exported function NewReorgMarker should have comment or be unexported (golint)
    • aergo/cmd/aergocli/cmd/enterprise.go
    • Line 30: warning: exported var ErrNotExecutedConfChange should have comment or be unexported (golint)
    • Line 88: warning: exported type OutConfChange should have comment or be unexported (golint)
    • Line 93: warning: exported method OutConfChange.ToString should have comment or be unexported (golint)
    • aergo/syncer/stubsyncerchain.go
    • Line 11: warning: exported type StubPeer should have comment or be unexported (golint)
    • Line 26: warning: exported var TestMaxBlockFetchSize should have comment or be unexported (golint)
    • Line 30: warning: exported function NewStubPeer should have comment or be unexported (golint)
    • aergo/polaris/server/litentcontainer.go
    • Line 28: warning: comment on exported type LiteContainerService should be of the form "LiteContainerService ..." (with optional leading article) (golint)
    • Line 40: warning: exported method LiteContainerService.ConsensusAccessor should have comment or be unexported (golint)
    • Line 44: warning: exported method LiteContainerService.PeerManager should have comment or be unexported (golint)
    • Line 48: warning: exported method LiteContainerService.LocalSettings should have comment or be unexported (golint)
    • Line 52: warning: exported method LiteContainerService.RoleManager should have comment or be unexported (golint)
    • Line 60: warning: comment on exported function NewNTContainer should be of the form "NewNTContainer ..." (golint)
    • Line 68: warning: exported method LiteContainerService.SetHub should have comment or be unexported (golint)
    • Line 75: warning: exported method LiteContainerService.AfterStart should have comment or be unexported (golint)
    • Line 95: warning: exported method LiteContainerService.GetNetworkTransport should have comment or be unexported (golint)
    • Line 101: warning: exported method LiteContainerService.GenesisChainID should have comment or be unexported (golint)
    • Line 160: warning: exported method LiteContainerService.SelfMeta should have comment or be unexported (golint)
    • Line 190: warning: comment on exported method LiteContainerService.CallRequestDefaultTimeout should be of the form "CallRequestDefaultTimeout ..." (golint)
    • Line 196: warning: exported method LiteContainerService.SelfNodeID should have comment or be unexported (golint)
    • Line 200: warning: exported method LiteContainerService.SelfRole should have comment or be unexported (golint)
    • Line 205: warning: exported method LiteContainerService.GetChainAccessor should have comment or be unexported (golint)
    • Line 210: warning: exported method LiteContainerService.CertificateManager should have comment or be unexported (golint)
    • aergo/contract/vm.go
    • Line 50: warning: exported const MaxCallDepth should have comment (or a comment on this block) or be unexported (golint)
    • Line 63: warning: exported type ChainAccessor should have comment or be unexported (golint)
    • Line 121: warning: exported type LState should have comment or be unexported (golint)
    • Line 141: warning: exported function InitContext should have comment or be unexported (golint)
    • Line 546: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 768: warning: exported function Call should have comment or be unexported (golint)
    • Line 856: warning: exported function PreCall should have comment or be unexported (golint)
    • Line 919: warning: exported function PreloadEx should have comment or be unexported (golint)
    • Line 971: warning: exported function Create should have comment or be unexported (golint)
    • Line 1085: warning: exported function Query should have comment or be unexported (golint)
    • Line 1124: warning: exported function CheckFeeDelegation should have comment or be unexported (golint)
    • Line 1223: warning: exported function GetABI should have comment or be unexported (golint)
    • aergo/p2p/v030/v032handshake.go
    • Line 29: warning: exported method V032Handshaker.GetMsgRW should have comment or be unexported (golint)
    • Line 33: warning: exported function NewV032VersionedHS should have comment or be unexported (golint)
    • Line 56: warning: exported method V032Handshaker.DoForOutbound should have comment or be unexported (golint)
    • Line 83: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 90: warning: exported method V032Handshaker.DoForInbound should have comment or be unexported (golint)
    • aergo/cmd/aergocli/cmd/config.go
    • Line 6: warning: exported const EnvironmentPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 11: warning: exported type CliContext should have comment or be unexported (golint)
    • Line 15: warning: exported function NewCliContext should have comment or be unexported (golint)
    • Line 30: warning: exported type TLSConfig should have comment or be unexported (golint)
    • Line 52: warning: exported method CliContext.GetHomePath should have comment or be unexported (golint)
    • Line 56: warning: exported method CliContext.GetConfigFileName should have comment or be unexported (golint)
    • Line 60: warning: exported method CliContext.GetTemplate should have comment or be unexported (golint)
    • aergo/contract/name/name.go
    • Line 14: warning: exported type NameMap should have comment or be unexported (golint)
    • Line 25: warning: exported function CreateName should have comment or be unexported (golint)
    • Line 128: warning: exported function GetOwner should have comment or be unexported (golint)
    • Line 156: warning: exported function GetNameInfo should have comment or be unexported (golint)
    • aergo/contract/enterprise/execute.go
    • Line 20: warning: exported var ErrNotSupportedMethod should have comment or be unexported (golint)
    • Line 24: warning: exported type EnterpriseContext should have comment or be unexported (golint)
    • Line 36: warning: exported method EnterpriseContext.IsAdminExist should have comment or be unexported (golint)
    • Line 45: warning: exported method EnterpriseContext.HasConfValue should have comment or be unexported (golint)
    • Line 56: warning: exported function ExecuteEnterpriseTx should have comment or be unexported (golint)
    • aergo/p2p/subproto/addrs.go
    • Line 28: warning: comment on exported function NewAddressesReqHandler should be of the form "NewAddressesReqHandler ..." (golint)
    • Line 102: warning: comment on exported function NewAddressesRespHandler should be of the form "NewAddressesRespHandler ..." (golint)
    • aergo/p2p/v200/v200handshake.go
    • Line 27: warning: exported var ErrInvalidAgentStatus should have comment or be unexported (golint)
    • Line 54: warning: exported method V200Handshaker.GetMsgRW should have comment or be unexported (golint)
    • Line 58: warning: exported function NewV200VersionedHS should have comment or be unexported (golint)
    • Line 65: warning: comment on exported method V200Handshaker.DoForOutbound should be of the form "DoForOutbound ..." (golint)
    • Line 95: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 140: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • aergo/pkg/trie/util.go
    • Line 13: warning: comment on exported var DefaultLeaf should be of the form "DefaultLeaf ..." (golint)
    • Line 18: warning: exported const HashLength should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type Hash should have comment or be unexported (golint)
    • Line 31: warning: comment on exported type DataArray should be of the form "DataArray ..." (with optional leading article) (golint)
    • aergo/syncer/syncerservice.go
    • Line 23: warning: exported type Syncer should have comment or be unexported (golint)
    • Line 41: warning: exported type SyncerConfig should have comment or be unexported (golint)
    • Line 53: warning: exported type SyncerDebug should have comment or be unexported (golint)
    • Line 70: warning: exported var NameFinder should have comment or be unexported (golint)
    • Line 84: warning: exported var ErrFinderInternal should have comment or be unexported (golint)
    • Line 88: warning: exported type ErrSyncMsg should have comment or be unexported (golint)
    • Line 97: warning: exported function NewSyncer should have comment or be unexported (golint)
    • Line 123: warning: exported method Syncer.BeforeStop should have comment or be unexported (golint)
    • Line 130: warning: exported method Syncer.Reset should have comment or be unexported (golint)
    • Line 165: warning: exported method Syncer.GetSeq should have comment or be unexported (golint)
    • Line 169: warning: exported method Syncer.IncSeq should have comment or be unexported (golint)
    • Line 177: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 182: warning: comment on exported method Syncer.SetRequester should be of the form "SetRequester ..." (golint)
    • Line 425: warning: exported method Syncer.Statistics should have comment or be unexported (golint)
    • Line 463: warning: exported method Syncer.RecoverSyncerSelf should have comment or be unexported (golint)
    • Line 480: warning: exported function RecoverSyncer should have comment or be unexported (golint)
    • aergo/polaris/server/listmanager.go
    • Line 25: warning: error var NotFoundError should have name of the form ErrFoo (golint)
    • Line 46: warning: exported function NewPolarisListManager should have comment or be unexported (golint)
    • Line 191: warning: exported type ListEntriesMarshaller should have comment or be unexported (golint)
    • Line 196: warning: exported method ListEntriesMarshaller.MarshalZerologArray should have comment or be unexported (golint)
    • aergo/cmd/brick/context/symbol.go
    • Line 3: warning: exported var Comment should have comment or be unexported (golint)
    • Line 5: warning: exported var PathSymbol should have comment or be unexported (golint)
    • Line 16: warning: comment on exported var Symbols should be of the form "Symbols ..." (golint)
    • aergo/mempool/mempool.go
    • Line 124: warning: exported method MemPool.AfterStart should have comment or be unexported (golint)
    • Line 301: warning: exported method MemPool.Statistics should have comment or be unexported (golint)
    • Line 926: warning: don't use underscores in Go names; var total_data should be totalData (golint)
    • aergo/syncer/hashfetcher.go
    • Line 14: warning: exported type HashFetcher should have comment or be unexported (golint)
    • Line 40: warning: exported type HashSet should have comment or be unexported (golint)
    • Line 46: warning: exported type HashRequest should have comment or be unexported (golint)
    • Line 53: warning: exported var DfltHashReqSize should have comment or be unexported (golint)
    • Line 57: warning: exported var ErrQuitHashFetcher should have comment or be unexported (golint)
    • Line 86: warning: exported method HashFetcher.Start should have comment or be unexported (golint)
    • Line 152: warning: exported method HashFetcher.GetSeq should have comment or be unexported (golint)
    • Line 255: warning: exported method HashFetcher.GetHahsesRsp should have comment or be unexported (golint)
    • aergo/chain/orphanpool.go
    • Line 18: warning: exported var DfltOrphanPoolSize should have comment or be unexported (golint)
    • Line 24: warning: exported type OrphanBlock should have comment or be unexported (golint)
    • Line 28: warning: exported type OrphanPool should have comment or be unexported (golint)
    • Line 37: warning: exported function NewOrphanPool should have comment or be unexported (golint)
    • Line 142: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • aergo/types/blockchain.go
    • Line 30: warning: exported const DefaultEvictPeriod should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported type TxHash should have comment or be unexported (golint)
    • Line 41: warning: exported type AvgTime should have comment or be unexported (golint)
    • Line 47: warning: exported var DefaultVerifierCnt should have comment or be unexported (golint)
    • Line 66: warning: exported function NewAvgTime should have comment or be unexported (golint)
    • Line 73: warning: exported method AvgTime.Get should have comment or be unexported (golint)
    • Line 84: warning: exported method AvgTime.UpdateAverage should have comment or be unexported (golint)
    • Line 111: warning: comment on exported type SystemValue should be of the form "SystemValue ..." (with optional leading article) (golint)
    • Line 115: warning: exported const StakingTotal should have comment (or a comment on this block) or be unexported (golint)
    • Line 146: warning: exported type SyncContext should have comment or be unexported (golint)
    • Line 163: warning: exported function NewSyncCtx should have comment or be unexported (golint)
    • Line 167: warning: exported method SyncContext.SetAncestor should have comment or be unexported (golint)
    • Line 179: warning: exported method BlockInfo.Equal should have comment or be unexported (golint)
    • Line 186: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 194: warning: exported function Uint64ToBytes should have comment or be unexported (golint)
    • Line 200: warning: exported function BytesToUint64 should have comment or be unexported (golint)
    • Line 216: warning: exported type BlockVersionner should have comment or be unexported (golint)
    • Line 221: warning: exported type DummyBlockVersionner should have comment or be unexported (golint)
    • Line 223: warning: exported method DummyBlockVersionner.Version should have comment or be unexported (golint)
    • Line 227: warning: exported method DummyBlockVersionner.IsV2Fork should have comment or be unexported (golint)
    • Line 461: warning: comment on exported method Block.BPID2Str should be of the form "BPID2Str ..." (golint)
    • Line 505: warning: exported method Block.SetBlocksRootHash should have comment or be unexported (golint)
    • Line 528: warning: exported function NewTx should have comment or be unexported (golint)
    • Line 537: warning: exported method Tx.CalculateTxHash should have comment or be unexported (golint)
    • Line 554: warning: exported method Tx.NeedNameVerify should have comment or be unexported (golint)
    • Line 558: warning: exported method Tx.HasNameAccount should have comment or be unexported (golint)
    • Line 562: warning: exported method Tx.HasNameRecipient should have comment or be unexported (golint)
    • Line 566: warning: exported method Tx.Clone should have comment or be unexported (golint)
    • Line 592: warning: exported method TxBody.GetAmountBigInt should have comment or be unexported (golint)
    • Line 596: warning: exported method TxBody.GetGasPriceBigInt should have comment or be unexported (golint)
    • Line 600: warning: exported type MovingAverage should have comment or be unexported (golint)
    • Line 610: warning: exported function NewMovingAverage should have comment or be unexported (golint)
    • Line 621: warning: exported method MovingAverage.Add should have comment or be unexported (golint)
    • Line 646: warning: exported type BlockHeaderInfo should have comment or be unexported (golint)
    • Line 654: warning: exported var EmptyBlockHeaderInfo should have comment or be unexported (golint)
    • Line 656: warning: exported function NewBlockHeaderInfo should have comment or be unexported (golint)
    • Line 668: warning: exported function MakeChainId should have comment or be unexported (golint)
    • Line 679: warning: exported function NewBlockHeaderInfoFromPrevBlock should have comment or be unexported (golint)
    • Line 692: warning: exported method BlockHeaderInfo.ChainIdHash should have comment or be unexported (golint)
    • aergo/types/quirk.go
    • Line 6: warning: comment on exported const B23994084_001 should be of the form "B23994084_001 ..." (golint)
    • aergo/account/accountservice.go
    • Line 17: warning: exported type AccountService should have comment or be unexported (golint)
    • Line 38: warning: exported method AccountService.BeforeStart should have comment or be unexported (golint)
    • Line 51: warning: exported method AccountService.AfterStart should have comment or be unexported (golint)
    • Line 53: warning: exported method AccountService.BeforeStop should have comment or be unexported (golint)
    • Line 58: warning: exported method AccountService.Statistics should have comment or be unexported (golint)
    • Line 73: warning: exported method AccountService.Receive should have comment or be unexported (golint)
    • aergo/contract/enterprise/validate.go
    • Line 17: warning: exported const SetConf should have comment or be unexported (golint)
    • Line 18: warning: exported const AppendConf should have comment or be unexported (golint)
    • Line 19: warning: exported const RemoveConf should have comment or be unexported (golint)
    • Line 20: warning: exported const AppendAdmin should have comment or be unexported (golint)
    • Line 21: warning: exported const RemoveAdmin should have comment or be unexported (golint)
    • Line 22: warning: exported const EnableConf should have comment or be unexported (golint)
    • Line 23: warning: exported const DisableConf should have comment or be unexported (golint)
    • Line 24: warning: exported const ChangeCluster should have comment or be unexported (golint)
    • Line 26: warning: exported var ErrTxEnterpriseAdminIsNotSet should have comment or be unexported (golint)
    • Line 28: warning: exported function ValidateEnterpriseTx should have comment or be unexported (golint)
    • aergo/p2p/p2pcommon/certificate.go
    • Line 11: warning: exported var ErrInvalidCertVersion should have comment or be unexported (golint)
    • Line 21: warning: exported const CertVersion0001 should have comment (or a comment on this block) or be unexported (golint)
    • aergo/cmd/polaris/polaris.go
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 123: warning: exported type RedirectService should have comment or be unexported (golint)
    • Line 127: warning: exported function NewRedirectService should have comment or be unexported (golint)
    • Line 135: warning: exported method RedirectService.Receive should have comment or be unexported (golint)
    • Line 139: warning: exported method RedirectService.BeforeStart should have comment or be unexported (golint)
    • Line 140: warning: exported method RedirectService.AfterStart should have comment or be unexported (golint)
    • Line 141: warning: exported method RedirectService.BeforeStop should have comment or be unexported (golint)
    • Line 143: warning: exported method RedirectService.Statistics should have comment or be unexported (golint)
    • aergo/rpc/rpc.go
    • Line 149: warning: exported method RPC.SetHub should have comment or be unexported (golint)
    • Line 154: warning: exported method RPC.SetConsensusAccessor should have comment or be unexported (golint)
    • Line 158: warning: comment on exported method RPC.BeforeStart should be of the form "BeforeStart ..." (golint)
    • Line 163: warning: exported method RPC.AfterStart should have comment or be unexported (golint)
    • Line 167: warning: comment on exported method RPC.BeforeStop should be of the form "BeforeStop ..." (golint)
    • Line 173: warning: exported method RPC.Statistics should have comment or be unexported (golint)
    • Line 180: warning: exported method RPC.Receive should have comment or be unexported (golint)
    • Line 327: warning: exported method RPC.CollectServerInfo should have comment or be unexported (golint)
    • Line 375: warning: comment on exported method RPC.CallRequestDefaultTimeout should be of the form "CallRequestDefaultTimeout ..." (golint)
    • aergo/p2p/p2pcommon/pool.go
    • Line 16: warning: exported const WaitingPeerManagerInterval should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported var ErrNoWaiting should have comment or be unexported (golint)
    • Line 29: warning: exported type PeerEventListener should have comment or be unexported (golint)
    • Line 63: warning: exported type WaitingPeer should have comment or be unexported (golint)
    • Line 72: warning: exported type ConnWorkResult should have comment or be unexported (golint)
    • aergo/chain/subcomponent.go
    • Line 21: warning: exported function NewSubComponent should have comment or be unexported (golint)
    • Line 29: warning: comment on exported method SubComponent.Start should be of the form "Start ..." (golint)
    • Line 37: warning: comment on exported method SubComponent.Stop should be of the form "Stop ..." (golint)
    • Line 44: warning: comment on exported method SubComponent.Request should be of the form "Request ..." (golint)
    • aergo/consensus/impl/raftv2/transport.go
    • Line 18: warning: exported type Transporter should have comment or be unexported (golint)
    • Line 63: warning: exported type HttpTransportWrapper should have comment or be unexported (golint)
    • Line 67: warning: exported method HttpTransportWrapper.AddPeer should have comment or be unexported (golint)
    • aergo/cmd/colaris/cmd/current.go
    • Line 19: warning: exported var CurrentPeersCmd should have comment or be unexported (golint)
    • Line 68: warning: exported type PolarisPeerAlias should have comment or be unexported (golint)
    • Line 77: warning: exported function NewJSONPolarisPeer should have comment or be unexported (golint)
    • aergo/cmd/aergocli/cmd/accounts.go
    • Line 315: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 335: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • aergo/internal/merkle/merkle.go
    • Line 8: warning: exported type MerkleEntry should have comment or be unexported (golint)
    • Line 13: warning: exported var HashSize should have comment or be unexported (golint)
    • Line 18: warning: exported function CalculateMerkleRoot should have comment or be unexported (golint)
    • Line 24: warning: exported function CalculateMerkleTree should have comment or be unexported (golint)
    • aergo/cmd/aergocli/util/convChaininfo.go
    • Line 12: warning: exported type InOutChainId should have comment or be unexported (golint)
    • Line 20: warning: exported type InOutChainInfo should have comment or be unexported (golint)
    • Line 33: warning: exported function ConvChainInfoMsg should have comment or be unexported (golint)
    • aergo/consensus/impl/dpos/dpos.go
    • Line 107: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 209: warning: exported function InitVPR should have comment or be unexported (golint)
    • Line 249: warning: exported method DPoS.GetType should have comment or be unexported (golint)
    • Line 406: warning: exported method DPoS.RaftAccessor should have comment or be unexported (golint)
    • Line 432: warning: exported method DPoS.NeedNotify should have comment or be unexported (golint)
    • Line 436: warning: exported method DPoS.HasWAL should have comment or be unexported (golint)
    • Line 440: warning: exported method DPoS.IsForkEnable should have comment or be unexported (golint)
    • Line 444: warning: exported method DPoS.IsConnectedBlock should have comment or be unexported (golint)
    • Line 453: warning: exported method DPoS.ConfChange should have comment or be unexported (golint)
    • Line 457: warning: exported method DPoS.ConfChangeInfo should have comment or be unexported (golint)
    • Line 461: warning: exported method DPoS.MakeConfChangeProposal should have comment or be unexported (golint)
    • Line 465: warning: exported method DPoS.ClusterInfo should have comment or be unexported (golint)
    • Line 469: warning: exported function ValidateGenesis should have comment or be unexported (golint)
    • aergo/p2p/list/blacklist.go
    • Line 24: warning: exported type BanEvent should have comment or be unexported (golint)
    • Line 32: warning: exported var BanDurations should have comment or be unexported (golint)
    • Line 43: warning: exported const BanValidDuration should have comment or be unexported (golint)
    • Line 44: warning: exported const BanReleaseDuration should have comment or be unexported (golint)
    • aergo/p2p/p2pcommon/message.go
    • Line 6: warning: package comment should be of the form "Package p2pcommon ..." (golint)
    • Line 54: warning: exported type HandlerAdvice should have comment or be unexported (golint)
    • Line 59: warning: exported type AsyncHandler should have comment or be unexported (golint)
    • aergo/contract/errors.go
    • Line 8: warning: exported type ErrSystem should have comment or be unexported (golint)
    • Line 27: warning: exported var ErrVmStart should have comment or be unexported (golint)
    • Line 29: warning: exported type DbSystemError should have comment or be unexported (golint)
    • Line 37: warning: exported method DbSystemError.System should have comment or be unexported (golint)
    • Line 41: warning: exported type VmSystemError should have comment or be unexported (golint)
    • Line 49: warning: exported method VmSystemError.System should have comment or be unexported (golint)
    • Line 53: warning: exported type VmTimeoutError should have comment or be unexported (golint)
    • Line 59: warning: exported method VmTimeoutError.System should have comment or be unexported (golint)
    • Line 63: warning: exported type ErrRuntime should have comment or be unexported (golint)
    • Line 67: warning: exported function IsRuntimeError should have comment or be unexported (golint)
    • Line 86: warning: exported type ErrGovEnt should have comment or be unexported (golint)
    • Line 90: warning: exported type GovEntErr should have comment or be unexported (golint)
    • Line 94: warning: exported function NewGovEntErr should have comment or be unexported (golint)
    • Line 98: warning: exported method GovEntErr.GovEnt should have comment or be unexported (golint)
    • Line 102: warning: exported method GovEntErr.Runtime should have comment or be unexported (golint)
    • Line 106: warning: exported function IsGovEntErr should have comment or be unexported (golint)
    • aergo/account/key/aergo_storage.go
    • Line 37: warning: exported type AergoStorage should have comment or be unexported (golint)
    • Line 42: warning: exported function NewAergoStorage should have comment or be unexported (golint)
    • Line 62: warning: exported method AergoStorage.Save should have comment or be unexported (golint)
    • Line 111: warning: exported method AergoStorage.Load should have comment or be unexported (golint)
    • Line 134: warning: exported method AergoStorage.List should have comment or be unexported (golint)
    • Line 160: warning: exported method AergoStorage.Close should have comment or be unexported (golint)
    • aergo/p2p/waitpeermanager.go
    • Line 30: warning: exported function NewWaitingPeerManager should have comment or be unexported (golint)
    • Line 258: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 358: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 376: warning: exported type ConnWork should have comment or be unexported (golint)
    • Line 389: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • aergo/p2p/raftsupport/concclusterreceiver.go
    • Line 22: warning: comment on exported type ConcurrentClusterInfoReceiver should be of the form "ConcurrentClusterInfoReceiver ..." (with optional leading article) (golint)
    • Line 45: warning: exported function NewConcClusterInfoReceiver should have comment or be unexported (golint)
    • Line 54: warning: exported method ConcurrentClusterInfoReceiver.StartGet should have comment or be unexported (golint)
    • aergo/p2p/p2putil/loggingutil.go
    • Line 18: warning: comment on exported function DebugLogReceiveMsg should be of the form "DebugLogReceiveMsg ..." (golint)
    • Line 29: warning: comment on exported function DebugLogReceiveResponseMsg should be of the form "DebugLogReceiveResponseMsg ..." (golint)
    • Line 50: warning: comment on exported function DebugLogReceiveResponse should be of the form "DebugLogReceiveResponse ..." (golint)
    • Line 61: warning: exported type LogStringersMarshaller should have comment or be unexported (golint)
    • Line 66: warning: exported function NewLogStringersMarshaller should have comment or be unexported (golint)
    • Line 70: warning: exported method LogStringersMarshaller.MarshalZerologArray should have comment or be unexported (golint)
    • Line 84: warning: exported type LogPeerMetasMarshaller should have comment or be unexported (golint)
    • Line 89: warning: exported function NewLogPeerMetasMarshaller should have comment or be unexported (golint)
    • Line 93: warning: exported method LogPeerMetasMarshaller.MarshalZerologArray should have comment or be unexported (golint)
    • Line 109: warning: exported type LogPeersMarshaller should have comment or be unexported (golint)
    • Line 114: warning: exported function NewLogPeersMarshaller should have comment or be unexported (golint)
    • Line 118: warning: exported method LogPeersMarshaller.MarshalZerologArray should have comment or be unexported (golint)
    • Line 133: warning: exported type LogStringsMarshaller should have comment or be unexported (golint)
    • Line 138: warning: exported function NewLogStringsMarshaller should have comment or be unexported (golint)
    • Line 142: warning: exported method LogStringsMarshaller.MarshalZerologArray should have comment or be unexported (golint)
    • Line 157: warning: exported type LogPeerIdsMarshaller should have comment or be unexported (golint)
    • Line 162: warning: exported function NewLogPeerIdsMarshaller should have comment or be unexported (golint)
    • Line 166: warning: exported method LogPeerIdsMarshaller.MarshalZerologArray should have comment or be unexported (golint)
    • Line 181: warning: exported type LogIPNetMarshaller should have comment or be unexported (golint)
    • Line 186: warning: exported function NewLogIPNetMarshaller should have comment or be unexported (golint)
    • Line 190: warning: exported method LogIPNetMarshaller.MarshalZerologArray should have comment or be unexported (golint)
    • Line 204: warning: exported type AgentCertMarshaller should have comment or be unexported (golint)
    • Line 208: warning: exported method AgentCertMarshaller.MarshalZerologObject should have comment or be unexported (golint)
    • aergo/state/contract.go
    • Line 12: warning: exported method StateDB.OpenContractStateAccount should have comment or be unexported (golint)
    • Line 19: warning: exported method StateDB.OpenContractState should have comment or be unexported (golint)
    • Line 34: warning: exported method StateDB.StageContractState should have comment or be unexported (golint)
    • Line 55: warning: exported type ContractState should have comment or be unexported (golint)
    • Line 63: warning: exported method ContractState.SetNonce should have comment or be unexported (golint)
    • Line 66: warning: exported method ContractState.GetNonce should have comment or be unexported (golint)
    • Line 70: warning: exported method ContractState.SetBalance should have comment or be unexported (golint)
    • Line 73: warning: exported method ContractState.GetBalance should have comment or be unexported (golint)
    • Line 77: warning: exported method ContractState.SetCode should have comment or be unexported (golint)
    • Line 88: warning: exported method ContractState.GetCode should have comment or be unexported (golint)
    • Line 105: warning: exported method ContractState.GetAccountID should have comment or be unexported (golint)
    • aergo/consensus/consensus.go
    • Line 39: warning: exported var ErrNotSupportedMethod should have comment or be unexported (golint)
    • Line 78: warning: exported type ConsensusAccessor should have comment or be unexported (golint)
    • Line 111: warning: exported type ConsensusType should have comment or be unexported (golint)
    • Line 114: warning: exported const ConsensusDPOS should have comment (or a comment on this block) or be unexported (golint)
    • Line 119: warning: exported var ConsensusName should have comment or be unexported (golint)
    • Line 120: warning: exported var ConsensusTypes should have comment or be unexported (golint)
    • Line 122: warning: exported var CurConsensusType should have comment or be unexported (golint)
    • Line 124: warning: exported function IsRaftName should have comment or be unexported (golint)
    • Line 127: warning: exported function IsDposName should have comment or be unexported (golint)
    • Line 131: warning: exported function SetCurConsensus should have comment or be unexported (golint)
    • Line 135: warning: exported function UseRaft should have comment or be unexported (golint)
    • Line 139: warning: exported function UseDpos should have comment or be unexported (golint)
    • Line 162: warning: exported type ChainConsensusCluster should have comment or be unexported (golint)
    • Line 166: warning: exported type TxWriter should have comment or be unexported (golint)
    • Line 181: warning: comment on exported method Info.AsJSON should be of the form "AsJSON ..." (golint)
    • aergo/message/accountmsg.go
    • Line 7: warning: exported const AccountsSvc should have comment or be unexported (golint)
    • Line 9: warning: exported type CreateAccount should have comment or be unexported (golint)
    • Line 13: warning: exported type CreateAccountRsp should have comment or be unexported (golint)
    • Line 17: warning: exported type LockAccount should have comment or be unexported (golint)
    • Line 22: warning: exported type UnlockAccount should have comment or be unexported (golint)
    • Line 27: warning: exported type AccountRsp should have comment or be unexported (golint)
    • Line 45: warning: exported type SignTx should have comment or be unexported (golint)
    • Line 49: warning: exported type SignTxRsp should have comment or be unexported (golint)
    • Line 54: warning: exported type VerifyTx should have comment or be unexported (golint)
    • Line 57: warning: exported type VerifyTxRsp should have comment or be unexported (golint)
    • Line 62: warning: exported type GetAccounts should have comment or be unexported (golint)
    • Line 63: warning: exported type GetAccountsRsp should have comment or be unexported (golint)
    • Line 67: warning: exported type ImportAccount should have comment or be unexported (golint)
    • Line 73: warning: exported type ImportAccountRsp should have comment or be unexported (golint)
    • Line 78: warning: exported type ExportAccount should have comment or be unexported (golint)
    • Line 84: warning: exported type ExportAccountRsp should have comment or be unexported (golint)
    • aergo/message/pmapmsg.go
    • Line 12: warning: exported const PolarisRPCSvc should have comment or be unexported (golint)
    • Line 14: warning: exported type MapQueryMsg should have comment or be unexported (golint)
    • Line 19: warning: exported type MapQueryRsp should have comment or be unexported (golint)
    • aergo/p2p/p2pcommon/others.go
    • Line 18: warning: exported type SyncManager should have comment or be unexported (golint)
    • Line 39: warning: error var SyncManagerBusyError should have name of the form ErrFoo (golint)
    • Line 39: warning: exported var SyncManagerBusyError should have comment or be unexported (golint)
    • aergo/p2p/p2putil/protobuf.go
    • Line 13: warning: exported function CalculateFieldDescSize should have comment or be unexported (golint)
    • Line 32: warning: exported function MarshalMessageBody should have comment or be unexported (golint)
    • Line 36: warning: exported function UnmarshalMessageBody should have comment or be unexported (golint)
    • Line 40: warning: exported function UnmarshalAndReturn should have comment or be unexported (golint)
    • aergo/internal/network/address.go
    • Line 15: warning: exported type AddressType should have comment or be unexported (golint)
    • Line 41: warning: comment on exported function GetSingleIPAddress should be of the form "GetSingleIPAddress ..." (golint)
    • Line 74: warning: exported const DN should have comment (or a comment on this block) or be unexported (golint)
    • Line 80: warning: exported var DNPattern should have comment or be unexported (golint)
    • Line 82: warning: error var InvalidAddress should have name of the form ErrFoo (golint)
    • Line 107: warning: exported function IsPublicAddr should have comment or be unexported (golint)
    • aergo/cmd/colaris/cmd/config.go
    • Line 14: warning: exported const EnvironmentPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported type CliContext should have comment or be unexported (golint)
    • Line 23: warning: exported function NewCliContext should have comment or be unexported (golint)
    • Line 44: warning: exported method CliContext.GetHomePath should have comment or be unexported (golint)
    • Line 48: warning: exported method CliContext.GetConfigFileName should have comment or be unexported (golint)
    • Line 52: warning: exported method CliContext.GetTemplate should have comment or be unexported (golint)
    • aergo/polaris/common/polarisprotocol.go
    • Line 15: warning: comment on exported const DefaultRPCPort should be of the form "DefaultRPCPort ..." (golint)
    • Line 17: warning: comment on exported const DefaultSrvPort should be of the form "DefaultSrvPort ..." (golint)
    • Line 27: warning: exported const MapQuery should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported const PolarisConnectionTTL should have comment or be unexported (golint)
    • aergo/p2p/hashbynoreceiver.go
    • Line 16: warning: comment on exported type BlockHashByNoReceiver should be of the form "BlockHashByNoReceiver ..." (with optional leading article) (golint)
    • Line 32: warning: exported function NewBlockHashByNoReceiver should have comment or be unexported (golint)
    • Line 37: warning: exported method BlockHashByNoReceiver.StartGet should have comment or be unexported (golint)
    • aergo/types/genesis.go
    • Line 185: warning: exported function ChainIdVersion should have comment or be unexported (golint)
    • Line 191: warning: exported function DecodeChainIdVersion should have comment or be unexported (golint)
    • Line 198: warning: exported function ChainIdEqualWithoutVersion should have comment or be unexported (golint)
    • Line 205: warning: exported type EnterpriseBP should have comment or be unexported (golint)
    • Line 225: warning: comment on exported method Genesis.Validate should be of the form "Validate ..." (golint)
    • Line 300: warning: exported method Genesis.IsAergoPublicChain should have comment or be unexported (golint)
    • Line 304: warning: exported method Genesis.HasDevChainID should have comment or be unexported (golint)
    • Line 311: warning: exported method Genesis.HasPrivateChainID should have comment or be unexported (golint)
    • Line 318: warning: exported method Genesis.IsMainNet should have comment or be unexported (golint)
    • Line 322: warning: exported method Genesis.IsTestNet should have comment or be unexported (golint)
    • Line 335: warning: exported function GetMainNetGenesis should have comment or be unexported (golint)
    • Line 344: warning: exported function GetTestNetGenesis should have comment or be unexported (golint)
    • aergo/account/key/badgerdb.go
    • Line 20: warning: exported type BadgerStorage should have comment or be unexported (golint)
    • Line 29: warning: exported function NewBadgerStorage should have comment or be unexported (golint)
    • Line 42: warning: exported function LoadBadgerStorage should have comment or be unexported (golint)
    • Line 60: warning: exported method BadgerStorage.Save should have comment or be unexported (golint)
    • Line 83: warning: exported method BadgerStorage.Load should have comment or be unexported (golint)
    • Line 101: warning: exported method BadgerStorage.List should have comment or be unexported (golint)
    • Line 113: warning: exported method BadgerStorage.Close should have comment or be unexported (golint)
    • aergo/p2p/raftsupport/snapshotsender.go
    • Line 195: warning: exported method RaftMsgEncoder.Encode should have comment or be unexported (golint)
    • Line 207: warning: exported type RaftMsgDecoder should have comment or be unexported (golint)
    • Line 213: warning: exported var ErrExceedSizeLimit should have comment or be unexported (golint)
    • Line 216: warning: exported method RaftMsgDecoder.Decode should have comment or be unexported (golint)
    • Line 220: warning: exported method RaftMsgDecoder.DecodeLimit should have comment or be unexported (golint)
    • aergo/p2p/p2pcommon/consts.go
    • Line 32: warning: exported method P2PVersion.Uint32 should have comment or be unexported (golint)
    • Line 41: warning: exported const P2PVersionUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 43: warning: comment on exported const P2PVersion030 should be of the form "P2PVersion030 ..." (golint)
    • Line 46: warning: comment on exported const P2PVersion031 should be of the form "P2PVersion031 ..." (golint)
    • Line 50: warning: comment on exported const P2PVersion033 should be of the form "P2PVersion033 ..." (golint)
    • Line 58: warning: exported var AttemptingOutboundVersions should have comment or be unexported (golint)
    • Line 59: warning: exported var ExperimentalVersions should have comment or be unexported (golint)
    • Line 61: warning: exported var MaxPayloadLength should have comment or be unexported (golint)
    • Line 76: warning: exported const HSMaxVersionCnt should have comment or be unexported (golint)
    • Line 78: warning: exported const HSError should have comment or be unexported (golint)
    • Line 80: warning: comment on exported type HSRespCode should be of the form "HSRespCode ..." (with optional leading article) (golint)
    • Line 85: warning: exported const HSCodeWrongHSReq should have comment (or a comment on this block) or be unexported (golint)
    • aergo/p2p/actorwork.go
    • Line 111: warning: comment on exported method P2P.GetBlockHashByNo should be of the form "GetBlockHashByNo ..." (golint)
    • Line 148: warning: comment on exported method P2P.NotifyBlockProduced should be of the form "NotifyBlockProduced ..." (golint)
    • Line 241: warning: exported method P2P.SendRaftMessage should have comment or be unexported (golint)
    • Line 259: warning: exported method P2P.SendIssueCertMessage should have comment or be unexported (golint)
    • Line 275: warning: exported method P2P.NotifyCertRenewed should have comment or be unexported (golint)
    • Line 292: warning: exported method P2P.TossBPNotice should have comment or be unexported (golint)
    • aergo/cmd/aergocli/util/base58addr.go
    • Line 17: warning: exported type InOutBlockHeader should have comment or be unexported (golint)
    • Line 32: warning: exported type InOutBlockBody should have comment or be unexported (golint)
    • Line 36: warning: exported type InOutBlock should have comment or be unexported (golint)
    • Line 42: warning: exported type InOutBlockIdx should have comment or be unexported (golint)
    • Line 47: warning: exported type InOutPeerAddress should have comment or be unexported (golint)
    • Line 53: warning: exported type InOutPeer should have comment or be unexported (golint)
    • Line 64: warning: exported type LongInOutPeer should have comment or be unexported (golint)
    • Line 70: warning: exported type InOutCert should have comment or be unexported (golint)
    • Line 79: warning: exported function FillTxBody should have comment or be unexported (golint)
    • Line 134: warning: exported function ParseBase58Tx should have comment or be unexported (golint)
    • Line 164: warning: exported function ParseBase58TxBody should have comment or be unexported (golint)
    • Line 181: warning: exported function ConvTxEx should have comment or be unexported (golint)
    • Line 213: warning: exported function ConvTxInBlockEx should have comment or be unexported (golint)
    • Line 221: warning: exported function ConvBlock should have comment or be unexported (golint)
    • Line 251: warning: exported function ConvPeer should have comment or be unexported (golint)
    • Line 271: warning: exported function ConvPeerLong should have comment or be unexported (golint)
    • Line 293: warning: exported function ConvBlockchainStatus should have comment or be unexported (golint)
    • Line 321: warning: exported function BlockConvBase58Addr should have comment or be unexported (golint)
    • Line 325: warning: exported function PeerListToString should have comment or be unexported (golint)
    • Line 332: warning: exported function ShortPeerListToString should have comment or be unexported (golint)
    • Line 340: warning: exported function LongPeerListToString should have comment or be unexported (golint)
    • aergo/consensus/impl/impl.go
    • Line 66: warning: exported type GenesisValidator should have comment or be unexported (golint)
    • Line 68: warning: exported function ValidateGenesis should have comment or be unexported (golint)
    • aergo/syncer/stubsyncer.go
    • Line 21: warning: exported type StubSyncer should have comment or be unexported (golint)
    • Line 41: warning: exported type TestResultFn should have comment or be unexported (golint)
    • Line 42: warning: exported type GetAnchorsHookFn should have comment or be unexported (golint)
    • Line 43: warning: exported type GetSyncAncestorHookFn should have comment or be unexported (golint)
    • Line 59: warning: exported function NewTestSyncer should have comment or be unexported (golint)
    • Line 207: warning: comment on exported method StubSyncer.GetAnchors should be of the form "GetAnchors ..." (golint)
    • Line 208: warning: receiver name syncer should be consistent with previous receiver name stubSyncer for StubSyncer (golint)
    • Line 229: warning: exported method StubSyncer.GetPeers should have comment or be unexported (golint)
    • Line 229: warning: receiver name syncer should be consistent with previous receiver name stubSyncer for StubSyncer (golint)
    • Line 234: warning: exported method StubSyncer.SendGetSyncAncestorRsp should have comment or be unexported (golint)
    • Line 234: warning: receiver name syncer should be consistent with previous receiver name stubSyncer for StubSyncer (golint)
    • Line 243: warning: exported method StubSyncer.GetSyncAncestor should have comment or be unexported (golint)
    • Line 243: warning: receiver name syncer should be consistent with previous receiver name stubSyncer for StubSyncer (golint)
    • Line 251: warning: exported method StubSyncer.GetHashByNo should have comment or be unexported (golint)
    • Line 251: warning: receiver name syncer should be consistent with previous receiver name stubSyncer for StubSyncer (golint)
    • Line 257: warning: exported method StubSyncer.GetHashes should have comment or be unexported (golint)
    • Line 257: warning: receiver name syncer should be consistent with previous receiver name stubSyncer for StubSyncer (golint)
    • Line 266: warning: exported method StubSyncer.GetBlockChunks should have comment or be unexported (golint)
    • Line 266: warning: receiver name syncer should be consistent with previous receiver name stubSyncer for StubSyncer (golint)
    • Line 291: warning: comment on exported method StubSyncer.AddBlock should be of the form "AddBlock ..." (golint)
    • Line 292: warning: receiver name syncer should be consistent with previous receiver name stubSyncer for StubSyncer (golint)
    • Line 300: warning: receiver name syncer should be consistent with previous receiver name stubSyncer for StubSyncer (golint)
    • aergo/contract/statesql.go
    • Line 25: warning: exported var ErrDBOpen should have comment or be unexported (golint)
    • Line 88: warning: exported function LoadDatabase should have comment or be unexported (golint)
    • Line 112: warning: exported function CloseDatabase should have comment or be unexported (golint)
    • Line 130: warning: exported function SaveRecoveryPoint should have comment or be unexported (golint)
    • aergo/p2p/p2pcommon/subprotocols.go
    • Line 23: warning: exported const GetBlocksRequest should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported const GetTXsRequest should have comment (or a comment on this block) or be unexported (golint)
    • Line 51: warning: exported const GetClusterRequest should have comment (or a comment on this block) or be unexported (golint)
    • aergo/p2p/handshakev2.go
    • Line 38: warning: exported type InboundWireHandshaker should have comment or be unexported (golint)
    • Line 42: warning: exported function NewInboundHSHandler should have comment or be unexported (golint)
    • Line 46: warning: exported method InboundWireHandshaker.Handle should have comment or be unexported (golint)
    • Line 73: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 94: warning: exported type OutboundWireHandshaker should have comment or be unexported (golint)
    • Line 98: warning: exported function NewOutboundHSHandler should have comment or be unexported (golint)
    • Line 102: warning: exported method OutboundWireHandshaker.Handle should have comment or be unexported (golint)
    • aergo/contract/system/param.go
    • Line 14: warning: exported const RESET should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported function InitSystemParams should have comment or be unexported (golint)
    • Line 85: warning: exported function GetStakingMinimum should have comment or be unexported (golint)
    • Line 89: warning: exported function GetGasPrice should have comment or be unexported (golint)
    • Line 93: warning: exported function GetNamePrice should have comment or be unexported (golint)
    • Line 97: warning: exported function GetNamePriceFromState should have comment or be unexported (golint)
    • Line 101: warning: exported function GetStakingMinimumFromState should have comment or be unexported (golint)
    • Line 105: warning: exported function GetGasPriceFromState should have comment or be unexported (golint)
    • aergo/p2p/p2pcommon/remoteinfo.go
    • Line 8: warning: exported type PeerZone should have comment or be unexported (golint)
    • Line 11: warning: exported const ExternalZone should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • aergo/polaris/server/peerstate.go
    • Line 22: warning: exported type PeerHealth should have comment or be unexported (golint)
    • Line 26: warning: don't use underscores in Go names; const PeerHealth_GOOD should be PeerHealthGOOD (golint)
    • Line 27: warning: don't use underscores in Go names; const PeerHealth_MID should be PeerHealthMID (golint)
    • Line 28: warning: don't use underscores in Go names; const PeerHealth_BAD should be PeerHealthBAD (golint)
    • aergo/pkg/component/hub.go
    • Line 20: warning: exported var ErrHubUnregistered should have comment or be unexported (golint)
    • Line 68: warning: exported method ComponentHub.SaveSpan should have comment or be unexported (golint)
    • Line 76: warning: exported method ComponentHub.RestoreSpan should have comment or be unexported (golint)
    • Line 82: warning: exported method ComponentHub.DestroySpan should have comment or be unexported (golint)
    • Line 217: warning: exported method ComponentHub.RequestFutureResult should have comment or be unexported (golint)
    • aergo/p2p/pi.go
    • Line 20: warning: exported function SetupSelfMeta should have comment or be unexported (golint)
    • Line 83: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • aergo/p2p/p2putil/certificate.go
    • Line 14: warning: exported function ConvertCertToProto should have comment or be unexported (golint)
    • Line 46: warning: exported function ConvertCertsToProto should have comment or be unexported (golint)
    • Line 71: warning: exported function CheckProtoCert should have comment or be unexported (golint)
    • Line 80: warning: exported function CheckAndGetV1 should have comment or be unexported (golint)
    • Line 135: warning: exported function SignCert should have comment or be unexported (golint)
    • Line 149: warning: exported function VerifyCert should have comment or be unexported (golint)
    • Line 153: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • aergo/consensus/impl/raftv2/raftserver.go
    • Line 48: warning: exported const HasNoLeader should have comment (or a comment on this block) or be unexported (golint)
    • Line 57: warning: exported var ErrRaftNotReady should have comment or be unexported (golint)
    • Line 69: warning: exported const BackendP2P should have comment (or a comment on this block) or be unexported (golint)
    • Line 124: warning: exported type LeaderStatus should have comment or be unexported (golint)
    • Line 142: warning: exported type CommitProgress should have comment or be unexported (golint)
    • Line 149: warning: exported method CommitProgress.UpdateConnect should have comment or be unexported (golint)
    • Line 158: warning: exported method CommitProgress.UpdateRequest should have comment or be unexported (golint)
    • Line 167: warning: exported method CommitProgress.GetConnect should have comment or be unexported (golint)
    • Line 174: warning: exported method CommitProgress.GetRequest should have comment or be unexported (golint)
    • Line 181: warning: exported method CommitProgress.IsReadyToPropose should have comment or be unexported (golint)
    • Line 204: warning: exported function RecoverExit should have comment or be unexported (golint)
    • Line 302: warning: exported type RaftServerState should have comment or be unexported (golint)
    • Line 305: warning: exported const RaftServerStateRestart should have comment (or a comment on this block) or be unexported (golint)
    • Line 1067: warning: exported var ErrInvCCType should have comment or be unexported (golint)
    • Line 1363: warning: exported type MemberProgressState should have comment or be unexported (golint)
    • Line 1366: warning: exported const MemberProgressStateHealthy should have comment (or a comment on this block) or be unexported (golint)
    • Line 1373: warning: exported var MemberProgressStateNames should have comment or be unexported (golint)
    • Line 1381: warning: exported type MemberProgress should have comment or be unexported (golint)
    • Line 1389: warning: exported type ClusterProgress should have comment or be unexported (golint)
    • Line 1395: warning: exported method ClusterProgress.ToString should have comment or be unexported (golint)
    • Line 1407: warning: exported method MemberProgress.ToString should have comment or be unexported (golint)
    • Line 1536: warning: exported var ErrUnmarshal should have comment or be unexported (golint)
    • aergo/message/mempoolmsg.go
    • Line 41: warning: exported type MemPoolListRsp should have comment or be unexported (golint)
    • Line 57: warning: exported const MaxReqestHashes should have comment or be unexported (golint)
    • Line 69: warning: exported type MemPoolSetWhitelist should have comment or be unexported (golint)
    • Line 73: warning: exported type MemPoolEnableWhitelist should have comment or be unexported (golint)
    • Line 83: warning: exported type MemPoolTxStat should have comment or be unexported (golint)
    • Line 86: warning: exported type MemPoolTxStatRsp should have comment or be unexported (golint)
    • Line 90: warning: exported type MemPoolTx should have comment or be unexported (golint)
    • Line 94: warning: exported type MemPoolTxRsp should have comment or be unexported (golint)
    • aergo/account/key/store.go
    • Line 162: warning: exported method Store.GetKey should have comment or be unexported (golint)
    • Line 171: warning: exported method Store.AddKey should have comment or be unexported (golint)
    • aergo/p2p/rolemanager.go
    • Line 20: warning: exported type RaftRoleManager should have comment or be unexported (golint)
    • Line 28: warning: exported function NewRaftRoleManager should have comment or be unexported (golint)
    • Line 32: warning: exported method RaftRoleManager.Start should have comment or be unexported (golint)
    • Line 35: warning: exported method RaftRoleManager.Stop should have comment or be unexported (golint)
    • Line 39: warning: exported method RaftRoleManager.UpdateBP should have comment or be unexported (golint)
    • Line 56: warning: exported method RaftRoleManager.SelfRole should have comment or be unexported (golint)
    • Line 60: warning: exported method RaftRoleManager.GetRole should have comment or be unexported (golint)
    • Line 65: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 70: warning: exported method RaftRoleManager.CheckRole should have comment or be unexported (golint)
    • Line 82: warning: exported method RaftRoleManager.FilterBPNoticeReceiver should have comment or be unexported (golint)
    • Line 93: warning: exported method RaftRoleManager.FilterNewBlockNoticeReceiver should have comment or be unexported (golint)
    • Line 104: warning: exported const BP should have comment (or a comment on this block) or be unexported (golint)
    • Line 108: warning: exported type DPOSRoleManager should have comment or be unexported (golint)
    • Line 119: warning: exported function NewDPOSRoleManager should have comment or be unexported (golint)
    • Line 123: warning: exported method DPOSRoleManager.Start should have comment or be unexported (golint)
    • Line 147: warning: exported method DPOSRoleManager.Stop should have comment or be unexported (golint)
    • Line 152: warning: exported method DPOSRoleManager.UpdateBP should have comment or be unexported (golint)
    • Line 163: warning: exported method DPOSRoleManager.SelfRole should have comment or be unexported (golint)
    • Line 167: warning: exported method DPOSRoleManager.GetRole should have comment or be unexported (golint)
    • Line 170: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 175: warning: exported method DPOSRoleManager.CheckRole should have comment or be unexported (golint)
    • Line 232: warning: should omit 2nd value from range; this loop is equivalent to `for id := range ...` (golint)
    • Line 238: warning: should omit 2nd value from range; this loop is equivalent to `for id := range ...` (golint)
    • Line 247: warning: exported method DPOSRoleManager.FilterBPNoticeReceiver should have comment or be unexported (golint)
    • Line 251: warning: exported method DPOSRoleManager.FilterNewBlockNoticeReceiver should have comment or be unexported (golint)
    • Line 255: warning: exported type DPOSAgentRoleManager should have comment or be unexported (golint)
    • Line 261: warning: exported function NewDPOSAgentRoleManager should have comment or be unexported (golint)
    • Line 267: warning: exported method DPOSAgentRoleManager.FilterBPNoticeReceiver should have comment or be unexported (golint)
    • Line 278: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 289: warning: exported method DPOSAgentRoleManager.FilterNewBlockNoticeReceiver should have comment or be unexported (golint)
    • aergo/consensus/impl/raftv2/cluster.go
    • Line 26: warning: exported var MaxConfChangeTimeOut should have comment or be unexported (golint)
    • Line 46: warning: exported const MembersNameInit should have comment (or a comment on this block) or be unexported (golint)
    • Line 52: warning: exported type RaftInfo should have comment or be unexported (golint)
    • Line 60: warning: exported type NotifyFn should have comment or be unexported (golint)
    • Line 62: warning: comment on exported type Cluster should be of the form "Cluster ..." (with optional leading article) (golint)
    • Line 105: warning: exported type Members should have comment or be unexported (golint)
    • Line 129: warning: exported method Members.ToArray should have comment or be unexported (golint)
    • Line 145: warning: exported method Members.ToMemberAttrArray should have comment or be unexported (golint)
    • Line 182: warning: exported function NewCluster should have comment or be unexported (golint)
    • Line 205: warning: exported function NewClusterFromMemberAttrs should have comment or be unexported (golint)
    • Line 232: warning: exported method Cluster.ClusterID should have comment or be unexported (golint)
    • Line 236: warning: exported method Cluster.NodeName should have comment or be unexported (golint)
    • Line 240: warning: exported method Cluster.NodeID should have comment or be unexported (golint)
    • Line 244: warning: exported method Cluster.NodePeerID should have comment or be unexported (golint)
    • Line 248: warning: exported method Cluster.SetNodeID should have comment or be unexported (golint)
    • Line 252: warning: exported method Cluster.SetClusterID should have comment or be unexported (golint)
    • Line 284: warning: exported method Cluster.Recover should have comment or be unexported (golint)
    • Line 316: warning: exported method Cluster.ResetMembers should have comment or be unexported (golint)
    • Line 345: warning: exported method Cluster.Members should have comment or be unexported (golint)
    • Line 349: warning: exported method Cluster.AppliedMembers should have comment or be unexported (golint)
    • Line 353: warning: exported method Cluster.RemovedMembers should have comment or be unexported (golint)
    • Line 357: warning: exported method Cluster.Quorum should have comment or be unexported (golint)
    • Line 660: warning: exported function MaxUint64 should have comment or be unexported (golint)
    • Line 843: warning: exported method Cluster.NewMemberFromAddReq should have comment or be unexported (golint)
    • Line 851: warning: exported method Cluster.NewMemberFromRemoveReq should have comment or be unexported (golint)
    • Line 862: warning: exported method Cluster.ChangeMembership should have comment or be unexported (golint)
    • Line 1001: warning: exported method Cluster.AfterConfChange should have comment or be unexported (golint)
    • Line 1042: warning: exported var ErrRaftStatusEmpty should have comment or be unexported (golint)
    • Line 1208: warning: exported function EtcdIDToString should have comment or be unexported (golint)
    • aergo/p2p/subproto/getblock.go
    • Line 32: warning: comment on exported function NewBlockReqHandler should be of the form "NewBlockReqHandler ..." (golint)
    • Line 44: warning: exported const EmptyGetBlockResponseSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 142: warning: comment on exported function NewBlockRespHandler should be of the form "NewBlockRespHandler ..." (golint)
    • aergo/consensus/raftCommon.go
    • Line 19: warning: exported type EntryType should have comment or be unexported (golint)
    • Line 22: warning: exported const EntryBlock should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported type ConfChangePropose should have comment or be unexported (golint)
    • Line 35: warning: exported type ConfChangeReply should have comment or be unexported (golint)
    • Line 41: warning: don't use underscores in Go names; var WalEntryType_name should be WalEntryTypeName (golint)
    • Line 41: warning: exported var WalEntryType_name should have comment or be unexported (golint)
    • Line 53: warning: exported type WalEntry should have comment or be unexported (golint)
    • Line 60: warning: exported method WalEntry.ToBytes should have comment or be unexported (golint)
    • Line 71: warning: exported method WalEntry.ToString should have comment or be unexported (golint)
    • Line 78: warning: exported type RaftIdentity should have comment or be unexported (golint)
    • Line 85: warning: exported method RaftIdentity.ToString should have comment or be unexported (golint)
    • Line 92: warning: exported type ChainWAL should have comment or be unexported (golint)
    • Line 113: warning: exported type SnapshotData should have comment or be unexported (golint)
    • Line 119: warning: exported function NewSnapshotData should have comment or be unexported (golint)
    • Line 131: warning: exported method SnapshotData.Encode should have comment or be unexported (golint)
    • Line 135: warning: exported method SnapshotData.Decode should have comment or be unexported (golint)
    • Line 142: warning: exported method SnapshotData.Equal should have comment or be unexported (golint)
    • Line 162: warning: exported method SnapshotData.ToString should have comment or be unexported (golint)
    • Line 185: warning: exported type ChainSnapshot should have comment or be unexported (golint)
    • Line 190: warning: exported function NewChainSnapshot should have comment or be unexported (golint)
    • Line 198: warning: exported method ChainSnapshot.Equal should have comment or be unexported (golint)
    • Line 202: warning: exported method ChainSnapshot.ToString should have comment or be unexported (golint)
    • Line 240: warning: exported function ConfStateToString should have comment or be unexported (golint)
    • Line 259: warning: exported function SnapToString should have comment or be unexported (golint)
    • Line 270: warning: exported type Member should have comment or be unexported (golint)
    • Line 274: warning: exported function NewMember should have comment or be unexported (golint)
    • Line 284: warning: exported method Member.Clone should have comment or be unexported (golint)
    • Line 292: warning: exported method Member.SetAttr should have comment or be unexported (golint)
    • Line 296: warning: exported method Member.SetMemberID should have comment or be unexported (golint)
    • Line 300: warning: exported method Member.CalculateMemberID should have comment or be unexported (golint)
    • Line 311: warning: exported method Member.IsValid should have comment or be unexported (golint)
    • Line 324: warning: exported method Member.GetPeerID should have comment or be unexported (golint)
    • Line 328: warning: exported method Member.Equal should have comment or be unexported (golint)
    • Line 336: warning: exported method Member.ToString should have comment or be unexported (golint)
    • Line 345: warning: exported method Member.HasDuplicatedAttr should have comment or be unexported (golint)
    • Line 358: warning: exported type MembersByName should have comment or be unexported (golint)
    • Line 374: warning: error var IllegalArgumentError should have name of the form ErrFoo (golint)
    • Line 374: warning: exported var IllegalArgumentError should have comment or be unexported (golint)
    • Line 376: warning: exported method DummyRaftAccessor.Process should have comment or be unexported (golint)
    • Line 380: warning: exported method DummyRaftAccessor.IsIDRemoved should have comment or be unexported (golint)
    • Line 384: warning: exported method DummyRaftAccessor.ReportUnreachable should have comment or be unexported (golint)
    • Line 387: warning: exported method DummyRaftAccessor.ReportSnapshot should have comment or be unexported (golint)
    • Line 390: warning: exported method DummyRaftAccessor.GetMemberByID should have comment or be unexported (golint)
    • Line 394: warning: exported method DummyRaftAccessor.GetMemberByPeerID should have comment or be unexported (golint)
    • Line 398: warning: exported method DummyRaftAccessor.SaveFromRemote should have comment or be unexported (golint)
    • aergo/types/p2pmore.go
    • Line 15: warning: exported type PeerBlockInfo should have comment or be unexported (golint)
    • Line 46: warning: exported method PeerRole.MarshalJSON should have comment or be unexported (golint)
    • aergo/p2p/p2pcommon/msgid.go
    • Line 23: warning: exported var EmptyID should have comment or be unexported (golint)
    • Line 26: warning: exported function ParseBytesToMsgID should have comment or be unexported (golint)
    • Line 39: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 44: warning: exported method MsgID.UUID should have comment or be unexported (golint)
    • aergo/pkg/trie/trie_test.go
    • Line 420: warning: should omit 2nd value from range; this loop is equivalent to `for node := range ...` (golint)
    • Line 425: warning: should omit 2nd value from range; this loop is equivalent to `for node := range ...` (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign93%

IneffAssign detects ineffectual assignments in Go code.

    • aergo/cmd/aergocli/util/unit_test.go
    • Line 62: warning: ineffectual assignment to amount (ineffassign)
    • Line 64: warning: ineffectual assignment to amount (ineffassign)
    • Line 66: warning: ineffectual assignment to amount (ineffassign)
    • Line 68: warning: ineffectual assignment to amount (ineffassign)
    • Line 70: warning: ineffectual assignment to amount (ineffassign)
    • Line 72: warning: ineffectual assignment to amount (ineffassign)
    • Line 74: warning: ineffectual assignment to amount (ineffassign)
    • Line 76: warning: ineffectual assignment to amount (ineffassign)
    • aergo/contract/vm_test.go
    • Line 1999: warning: ineffectual assignment to err (ineffassign)
    • Line 2178: warning: ineffectual assignment to err (ineffassign)
    • Line 2324: warning: ineffectual assignment to err (ineffassign)
    • Line 2338: warning: ineffectual assignment to err (ineffassign)
    • Line 2371: warning: ineffectual assignment to err (ineffassign)
    • Line 2982: warning: ineffectual assignment to err (ineffassign)
    • Line 3108: warning: ineffectual assignment to err (ineffassign)
    • Line 3593: warning: ineffectual assignment to err (ineffassign)
    • Line 3607: warning: ineffectual assignment to err (ineffassign)
    • Line 3613: warning: ineffectual assignment to err (ineffassign)
    • Line 3987: warning: ineffectual assignment to err (ineffassign)
    • Line 4132: warning: ineffectual assignment to err (ineffassign)
    • Line 4554: warning: ineffectual assignment to err (ineffassign)
    • Line 4707: warning: ineffectual assignment to err (ineffassign)
    • Line 4721: warning: ineffectual assignment to err (ineffassign)
    • Line 4787: warning: ineffectual assignment to err (ineffassign)
    • Line 5250: warning: ineffectual assignment to err (ineffassign)
    • Line 5892: warning: ineffectual assignment to err (ineffassign)
    • Line 5908: warning: ineffectual assignment to err (ineffassign)
    • aergo/contract/system/staking_test.go
    • Line 31: warning: ineffectual assignment to err (ineffassign)
    • Line 37: warning: ineffectual assignment to err (ineffassign)
    • Line 39: warning: ineffectual assignment to err (ineffassign)
    • Line 54: warning: ineffectual assignment to err (ineffassign)
    • Line 76: warning: ineffectual assignment to err (ineffassign)
    • Line 82: warning: ineffectual assignment to err (ineffassign)
    • Line 84: warning: ineffectual assignment to err (ineffassign)
    • Line 99: warning: ineffectual assignment to err (ineffassign)
    • Line 120: warning: ineffectual assignment to err (ineffassign)

misspell90%

Misspell Finds commonly misspelled English words

    • aergo/contract/hook_dbg.go
    • Line 534: warning: "precedance" is a misspelling of "precedence" (misspell)
    • Line 543: warning: "precedance" is a misspelling of "precedence" (misspell)
    • Line 811: warning: "hierachy" is a misspelling of "hierarchy" (misspell)
    • Line 813: warning: "permenant" is a misspelling of "permanent" (misspell)
    • aergo/contract/vm_test.go
    • Line 3076: warning: "payed" is a misspelling of "paid" (misspell)
    • Line 3081: warning: "payed" is a misspelling of "paid" (misspell)
    • Line 3293: warning: "lenght" is a misspelling of "length" (misspell)
    • Line 3311: warning: "transfered" is a misspelling of "transferred" (misspell)
    • Line 3409: warning: "transfered" is a misspelling of "transferred" (misspell)
    • aergo/p2p/p2putil/cryptoutil.go
    • Line 8: warning: "converison" is a misspelling of "conversions" (misspell)
    • Line 18: warning: "converison" is a misspelling of "conversions" (misspell)
    • Line 28: warning: "converison" is a misspelling of "conversions" (misspell)
    • Line 38: warning: "converison" is a misspelling of "conversions" (misspell)
    • aergo/contract/name/name_test.go
    • Line 58: warning: "registed" is a misspelling of "registered" (misspell)
    • Line 67: warning: "registed" is a misspelling of "registered" (misspell)
    • Line 97: warning: "registed" is a misspelling of "registered" (misspell)
    • Line 100: warning: "registed" is a misspelling of "registered" (misspell)
    • Line 103: warning: "registed" is a misspelling of "registered" (misspell)
    • Line 111: warning: "registed" is a misspelling of "registered" (misspell)