Preparing report...

Report for github.com/dappley/go-dappley

A    Great!    Found 156 issues across 245 files

Tweet

gofmt85%

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!


gocyclo97%

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.

    • go-dappley/common/trie/trie.go
    • Line 470: warning: cyclomatic complexity 20 of function (*Trie).del() is high (> 15) (gocyclo)
    • Line 306: warning: cyclomatic complexity 16 of function (*Trie).updateWhenMeetExt() is high (> 15) (gocyclo)
    • go-dappley/dapp/cli/cli.go
    • Line 638: warning: cyclomatic complexity 27 of function listAddressesCommandHandler() is high (> 15) (gocyclo)
    • Line 863: warning: cyclomatic complexity 20 of function sendCommandHandler() is high (> 15) (gocyclo)
    • Line 1062: warning: cyclomatic complexity 16 of function estimateGasCommandHandler() is high (> 15) (gocyclo)

golint43%

Golint is a linter for Go source code.

    • go-dappley/core/block/block_header.go
    • Line 9: warning: exported type BlockHeader should have comment or be unexported (golint)
    • Line 19: warning: exported function NewBlockHeader should have comment or be unexported (golint)
    • Line 29: warning: exported method BlockHeader.ToProto should have comment or be unexported (golint)
    • Line 41: warning: exported method BlockHeader.FromProto should have comment or be unexported (golint)
    • go-dappley/core/utxo/utxo_tx.go
    • Line 32: warning: exported type UTXOTx should have comment or be unexported (golint)
    • Line 36: warning: exported type StringEntry should have comment or be unexported (golint)
    • Line 38: warning: exported method StringEntry.Hash should have comment or be unexported (golint)
    • Line 44: warning: exported method StringEntry.Equal should have comment or be unexported (golint)
    • Line 53: warning: exported function NewUTXOTx should have comment or be unexported (golint)
    • Line 57: warning: comment on exported function NewUTXOTxWithData should be of the form "NewUTXOTxWithData ..." (golint)
    • Line 63: warning: comment on exported function NewUTXOTxWithSize should be of the form "NewUTXOTxWithSize ..." (golint)
    • Line 68: warning: comment on exported method UTXOTx.GetUtxo should be of the form "GetUtxo ..." (golint)
    • Line 78: warning: exported method UTXOTx.GetPerUtxoByKey should have comment or be unexported (golint)
    • Line 87: warning: comment on exported method UTXOTx.PutUtxo should be of the form "PutUtxo ..." (golint)
    • Line 93: warning: comment on exported method UTXOTx.RemoveUtxo should be of the form "RemoveUtxo ..." (golint)
    • Line 99: warning: exported method UTXOTx.Size should have comment or be unexported (golint)
    • Line 104: warning: exported method UTXOTx.GetAllUtxos should have comment or be unexported (golint)
    • Line 112: warning: exported method UTXOTx.PrepareUtxos should have comment or be unexported (golint)
    • Line 134: warning: exported method UTXOTx.DeepCopy should have comment or be unexported (golint)
    • go-dappley/core/transaction/transaction_journal.go
    • Line 1: warning: package comment should be of the form "Package transaction ..." (golint)
    • Line 32: warning: exported var ErrVoutNotFound should have comment or be unexported (golint)
    • Line 42: warning: comment on exported function NewTxJournal should be of the form "NewTxJournal ..." (golint)
    • Line 54: warning: comment on exported function PutTxJournal should be of the form "PutTxJournal ..." (golint)
    • Line 60: warning: comment on exported function GetTxOutput should be of the form "GetTxOutput ..." (golint)
    • Line 87: warning: exported method TxJournal.SerializeJournal should have comment or be unexported (golint)
    • Line 96: warning: exported function DeserializeJournal should have comment or be unexported (golint)
    • go-dappley/logic/logic.go
    • Line 46: warning: exported var ErrInvalidAmount should have comment or be unexported (golint)
    • Line 55: warning: comment on exported function CreateBlockchain should be of the form "CreateBlockchain ..." (golint)
    • Line 75: warning: comment on exported function IsAccountLocked should be of the form "IsAccountLocked ..." (golint)
    • Line 81: warning: comment on exported function IsAccountEmpty should be of the form "IsAccountEmpty ..." (golint)
    • Line 95: warning: comment on exported function SetLockAccount should be of the form "SetLockAccount ..." (golint)
    • Line 113: warning: comment on exported function SetUnLockAccount should be of the form "SetUnLockAccount ..." (golint)
    • Line 123: warning: comment on exported function CreateAccountWithPassphrase should be of the form "CreateAccountWithPassphrase ..." (golint)
    • Line 154: warning: comment on exported function CreateAccount should be of the form "CreateAccount ..." (golint)
    • Line 170: warning: comment on exported function GetUnlockDuration should be of the form "GetUnlockDuration ..." (golint)
    • Line 175: warning: comment on exported function GetBalance should be of the form "GetBalance ..." (golint)
    • Line 192: warning: exported function Send should have comment or be unexported (golint)
    • Line 197: warning: exported function SetMinerKeyPair should have comment or be unexported (golint)
    • Line 201: warning: exported function GetMinerAddress should have comment or be unexported (golint)
    • Line 205: warning: comment on exported function SendFromMiner should be of the form "SendFromMiner ..." (golint)
    • Line 212: warning: exported function GetAccountManager should have comment or be unexported (golint)
    • go-dappley/vm/logger.go
    • Line 11: warning: exported type LogFunc should have comment or be unexported (golint)
    • Line 14: warning: exported const DEBUG should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: comment on exported function LoggerFunc should be of the form "LoggerFunc ..." (golint)
    • go-dappley/core/account/address.go
    • Line 30: warning: exported var ErrInvalidAddress should have comment or be unexported (golint)
    • Line 33: warning: exported type Address should have comment or be unexported (golint)
    • Line 37: warning: exported function NewAddress should have comment or be unexported (golint)
    • go-dappley/core/block/block.go
    • Line 14: warning: exported type Block should have comment or be unexported (golint)
    • Line 19: warning: exported function NewBlock should have comment or be unexported (golint)
    • Line 23: warning: exported function NewBlockWithRawInfo should have comment or be unexported (golint)
    • Line 35: warning: exported function NewBlockWithTimestamp should have comment or be unexported (golint)
    • Line 62: warning: exported function NewBlockByHash should have comment or be unexported (golint)
    • Line 78: warning: exported method Block.GetHeader should have comment or be unexported (golint)
    • Line 82: warning: exported method Block.GetHash should have comment or be unexported (golint)
    • Line 86: warning: exported method Block.GetSign should have comment or be unexported (golint)
    • Line 90: warning: exported method Block.GetHeight should have comment or be unexported (golint)
    • Line 94: warning: exported method Block.GetPrevHash should have comment or be unexported (golint)
    • Line 98: warning: exported method Block.GetNonce should have comment or be unexported (golint)
    • Line 102: warning: exported method Block.GetTimestamp should have comment or be unexported (golint)
    • Line 106: warning: exported method Block.GetProducer should have comment or be unexported (golint)
    • Line 110: warning: exported method Block.GetTransactions should have comment or be unexported (golint)
    • Line 114: warning: exported method Block.SetHash should have comment or be unexported (golint)
    • Line 118: warning: exported method Block.SetNonce should have comment or be unexported (golint)
    • Line 122: warning: exported method Block.SetSignature should have comment or be unexported (golint)
    • Line 126: warning: exported method Block.SetHeight should have comment or be unexported (golint)
    • Line 130: warning: exported method Block.SetTimestamp should have comment or be unexported (golint)
    • Line 134: warning: exported method Block.SetTransactions should have comment or be unexported (golint)
    • Line 138: warning: exported method Block.IsSigned should have comment or be unexported (golint)
    • Line 142: warning: exported method Block.ToProto should have comment or be unexported (golint)
    • Line 155: warning: exported method Block.FromProto should have comment or be unexported (golint)
    • Line 171: warning: exported method Block.Serialize should have comment or be unexported (golint)
    • Line 179: warning: exported function Deserialize should have comment or be unexported (golint)
    • Line 190: warning: exported method Block.GetCoinbaseTransaction should have comment or be unexported (golint)
    • go-dappley/common/evicting_queue.go
    • Line 10: warning: exported type EvictingQueue should have comment or be unexported (golint)
    • Line 16: warning: exported type Element should have comment or be unexported (golint)
    • Line 55: warning: exported method EvictingQueue.IsEmpty should have comment or be unexported (golint)
    • Line 61: warning: exported method EvictingQueue.Len should have comment or be unexported (golint)
    • Line 103: warning: exported method EvictingQueue.MarshalJSON should have comment or be unexported (golint)
    • go-dappley/network/stream.go
    • Line 35: warning: exported const WriteChTotalLength should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported type Stream 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)
    • go-dappley/vm/crypto.go
    • Line 14: warning: comment on exported function VerifySignatureFunc should be of the form "VerifySignatureFunc ..." (golint)
    • Line 57: warning: comment on exported function VerifyPublicKeyFunc should be of the form "VerifyPublicKeyFunc ..." (golint)
    • go-dappley/vm/engine_manager.go
    • Line 10: warning: exported type V8EngineManager should have comment or be unexported (golint)
    • Line 14: warning: exported function NewV8EngineManager should have comment or be unexported (golint)
    • Line 18: warning: exported method V8EngineManager.CreateEngine should have comment or be unexported (golint)
    • go-dappley/core/utxo/utxo.go
    • Line 29: warning: exported type UtxoType should have comment or be unexported (golint)
    • Line 32: warning: exported const UtxoNormal should have comment (or a comment on this block) or be unexported (golint)
    • Line 51: warning: exported method UTXO.ToProto should have comment or be unexported (golint)
    • Line 63: warning: exported method UTXO.FromProto should have comment or be unexported (golint)
    • Line 74: warning: exported method UTXO.GetUTXOKey should have comment or be unexported (golint)
    • go-dappley/sdk/grpc_client.go
    • Line 10: warning: exported type DappSdkGrpcClient should have comment or be unexported (golint)
    • Line 28: warning: exported method DappSdkGrpcClient.GetRpcClient should have comment or be unexported (golint)
    • Line 30: warning: exported method DappSdkGrpcClient.GetAdminClient should have comment or be unexported (golint)
    • go-dappley/metrics/logMetrics/logMetricsInfo.go
    • Line 1: warning: don't use MixedCaps in package name; logMetrics should be logmetrics (golint)
    • Line 122: warning: exported type RequestStats should have comment or be unexported (golint)
    • Line 136: warning: exported type TxFromMinerRequestStats should have comment or be unexported (golint)
    • Line 142: warning: exported type ForkInfo should have comment or be unexported (golint)
    • Line 147: warning: exported type BlockStat should have comment or be unexported (golint)
    • Line 159: warning: exported type Network should have comment or be unexported (golint)
    • Line 183: warning: exported type MetricsInfo should have comment or be unexported (golint)
    • Line 187: warning: exported method MetricsInfo.Add should have comment or be unexported (golint)
    • Line 191: warning: exported method MetricsInfo.ToJsonString should have comment or be unexported (golint)
    • Line 196: warning: exported function NewMetricsInfo should have comment or be unexported (golint)
    • Line 201: warning: exported function LogMetricsInfo should have comment or be unexported (golint)
    • go-dappley/network/ping_service.go
    • Line 17: warning: exported type PingResult should have comment or be unexported (golint)
    • Line 22: warning: exported type PingService 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 (golint)
    • Line 77: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-dappley/logic/lblock/block.go
    • Line 25: warning: exported function HashTransactions should have comment or be unexported (golint)
    • Line 37: warning: exported function CalculateHash should have comment or be unexported (golint)
    • Line 41: warning: exported function CalculateHashWithoutNonce should have comment or be unexported (golint)
    • Line 57: warning: exported function CalculateHashWithNonce should have comment or be unexported (golint)
    • Line 73: warning: exported function SignBlock should have comment or be unexported (golint)
    • Line 103: warning: exported function VerifyHash should have comment or be unexported (golint)
    • Line 107: warning: exported function VerifyTransactions should have comment or be unexported (golint)
    • Line 195: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 314: warning: exported function IsHashEqual should have comment or be unexported (golint)
    • go-dappley/logic/ltransaction/transaction_logic.go
    • Line 21: warning: exported var ErrInvalidGasPrice should have comment or be unexported (golint)
    • Line 24: warning: comment on exported var ErrExecutionFailed should be of the form "ErrExecutionFailed ..." (golint)
    • Line 120: warning: exported function CheckContractSyntaxTransaction should have comment or be unexported (golint)
    • Line 131: warning: exported function CheckContractSyntax should have comment or be unexported (golint)
    • go-dappley/network/networkmodel/dapp_send_command_context.go
    • Line 9: warning: exported type DappSendCmdContext should have comment or be unexported (golint)
    • Line 15: warning: exported type DappCmdPriority should have comment or be unexported (golint)
    • Line 18: warning: exported const Unicast should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported const HighPriorityCommand should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: comment on exported function NewDappSendCmdContextFromDappCmd should be of the form "NewDappSendCmdContextFromDappCmd ..." (golint)
    • go-dappley/common/sorted/slice.go
    • Line 87: warning: exported method Slice.Get should have comment or be unexported (golint)
    • Line 90: warning: exported method Slice.Set should have comment or be unexported (golint)
    • Line 94: warning: exported method Slice.AddSliceItem should have comment or be unexported (golint)
    • Line 98: warning: exported method Slice.AddSliceSlice should have comment or be unexported (golint)
    • Line 102: warning: exported method Slice.GetSliceCmp should have comment or be unexported (golint)
    • go-dappley/crypto/crypto_unit_test.go
    • Line 64: warning: don't use underscores in Go names; var want_res should be wantRes (golint)
    • Line 65: warning: don't use underscores in Go names; var act_res should be actRes (golint)
    • Line 72: warning: don't use underscores in Go names; var act_res should be actRes (golint)
    • Line 73: warning: don't use underscores in Go names; var want_res should be wantRes (golint)
    • Line 81: warning: don't use underscores in Go names; var act_res should be actRes (golint)
    • Line 82: warning: don't use underscores in Go names; var want_res should be wantRes (golint)
    • Line 131: warning: don't use underscores in Go names; var want_res should be wantRes (golint)
    • Line 132: warning: don't use underscores in Go names; var act_res should be actRes (golint)
    • Line 139: warning: don't use underscores in Go names; var act_res should be actRes (golint)
    • Line 140: warning: don't use underscores in Go names; var want_res should be wantRes (golint)
    • Line 148: warning: don't use underscores in Go names; var act_res should be actRes (golint)
    • Line 149: warning: don't use underscores in Go names; var want_res should be wantRes (golint)
    • Line 200: warning: don't use underscores in Go names; var act_res should be actRes (golint)
    • Line 201: warning: don't use underscores in Go names; var want_res should be wantRes (golint)
    • Line 209: warning: don't use underscores in Go names; var act_res should be actRes (golint)
    • Line 210: warning: don't use underscores in Go names; var want_res should be wantRes (golint)
    • Line 264: warning: don't use underscores in Go names; var act_res should be actRes (golint)
    • Line 265: warning: don't use underscores in Go names; var want_res should be wantRes (golint)
    • Line 271: warning: don't use underscores in Go names; var act_res should be actRes (golint)
    • Line 272: warning: don't use underscores in Go names; var want_res should be wantRes (golint)
    • Line 278: warning: don't use underscores in Go names; var act_res should be actRes (golint)
    • Line 279: warning: don't use underscores in Go names; var want_res should be wantRes (golint)
    • Line 285: warning: don't use underscores in Go names; var act_res should be actRes (golint)
    • Line 286: warning: don't use underscores in Go names; var want_res should be wantRes (golint)
    • Line 441: warning: don't use underscores in Go names; var fake_pk should be fakePk (golint)
    • Line 442: warning: don't use underscores in Go names; var invalid_pk should be invalidPk (golint)
    • Line 443: warning: don't use underscores in Go names; var fake_sig should be fakeSig (golint)
    • Line 444: warning: don't use underscores in Go names; var invalid_sig should be invalidSig (golint)
    • go-dappley/tool/transaction_generator/util/tx_normal.go
    • Line 11: warning: exported type NormalTxSender should have comment or be unexported (golint)
    • Line 15: warning: exported function NewNormalTransaction should have comment or be unexported (golint)
    • Line 24: warning: exported method NormalTxSender.Generate should have comment or be unexported (golint)
    • Line 41: warning: exported method NormalTxSender.Send should have comment or be unexported (golint)
    • Line 52: warning: exported method NormalTxSender.Print should have comment or be unexported (golint)
    • go-dappley/logic/lblockchain/test_util.go
    • Line 17: warning: exported function PrepareBlockContext should have comment or be unexported (golint)
    • Line 25: warning: exported function GenerateMockBlockchainWithCoinbaseTxOnly should have comment or be unexported (golint)
    • Line 45: warning: exported function AddBlockToGeneratedBlockchain should have comment or be unexported (golint)
    • go-dappley/tool/transaction_generator/util/tx_unexisting_utxo.go
    • Line 14: warning: exported type UnexistingUtxoTxSender should have comment or be unexported (golint)
    • Line 18: warning: exported function NewUnexistingUtxoTxSender should have comment or be unexported (golint)
    • Line 27: warning: exported method UnexistingUtxoTxSender.Generate should have comment or be unexported (golint)
    • Line 52: warning: exported method UnexistingUtxoTxSender.Send should have comment or be unexported (golint)
    • Line 61: warning: exported method UnexistingUtxoTxSender.Print should have comment or be unexported (golint)
    • go-dappley/vm/engine.go
    • Line 68: warning: exported const TimeoutGasLimitCost should have comment (or a comment on this block) or be unexported (golint)
    • Line 72: warning: exported type V8Engine should have comment or be unexported (golint)
    • Line 107: warning: exported function InitializeV8Engine should have comment or be unexported (golint)
    • Line 170: warning: exported method V8Engine.ImportSourceCode should have comment or be unexported (golint)
    • Line 174: warning: exported method V8Engine.ImportUtxoIndex should have comment or be unexported (golint)
    • Line 178: warning: exported method V8Engine.ImportLocalStorage should have comment or be unexported (golint)
    • Line 182: warning: exported method V8Engine.ImportTransaction should have comment or be unexported (golint)
    • Line 186: warning: exported method V8Engine.ImportContractCreateUTXO should have comment or be unexported (golint)
    • Line 210: warning: exported method V8Engine.ImportRewardStorage should have comment or be unexported (golint)
    • Line 224: warning: comment on exported method V8Engine.ImportSeed should be of the form "ImportSeed ..." (golint)
    • Line 229: warning: comment on exported method V8Engine.ImportNodeAddress should be of the form "ImportNodeAddress ..." (golint)
    • Line 234: warning: comment on exported function ClearSourceModuleCache should be of the form "ClearSourceModuleCache ..." (golint)
    • Line 277: warning: exported method V8Engine.Execute should have comment or be unexported (golint)
    • Line 384: warning: exported method V8Engine.CheckContactSyntax should have comment or be unexported (golint)
    • go-dappley/storage/ram_storage.go
    • Line 25: warning: exported type RamStorage should have comment or be unexported (golint)
    • Line 32: warning: exported function NewRamStorage should have comment or be unexported (golint)
    • Line 40: warning: exported method RamStorage.Get should have comment or be unexported (golint)
    • Line 48: warning: exported method RamStorage.Put should have comment or be unexported (golint)
    • Line 59: warning: exported method RamStorage.Del should have comment or be unexported (golint)
    • Line 64: warning: exported method RamStorage.Close should have comment or be unexported (golint)
    • go-dappley/consensus/dynasty.go
    • Line 29: warning: exported type Dynasty should have comment or be unexported (golint)
    • Line 176: warning: comment on exported method Dynasty.GetProducerIndex should be of the form "GetProducerIndex ..." (golint)
    • Line 207: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 211: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • go-dappley/network/networkmodel/peer_info.go
    • Line 12: warning: exported type PeerInfo should have comment or be unexported (golint)
    • Line 18: warning: exported function NewPeerInfoFromString should have comment or be unexported (golint)
    • Line 71: warning: comment on exported method PeerInfo.ToProto should be of the form "ToProto ..." (golint)
    • Line 85: warning: comment on exported method PeerInfo.FromProto should be of the form "FromProto ..." (golint)
    • go-dappley/core/account/transaction_account.go
    • Line 1: warning: package comment should be of the form "Package account ..." (golint)
    • Line 29: warning: exported type TransactionAccount should have comment or be unexported (golint)
    • Line 34: warning: exported function NewContractTransactionAccount should have comment or be unexported (golint)
    • Line 41: warning: exported function NewTransactionAccountByPubKey should have comment or be unexported (golint)
    • Line 48: warning: exported function NewContractAccountByPubKeyHash should have comment or be unexported (golint)
    • Line 55: warning: exported function NewTransactionAccountByAddress should have comment or be unexported (golint)
    • Line 86: warning: exported method TransactionAccount.IsValid should have comment or be unexported (golint)
    • Line 115: warning: exported method TransactionAccount.GetAddress should have comment or be unexported (golint)
    • Line 119: warning: exported method TransactionAccount.GetPubKeyHash should have comment or be unexported (golint)
    • Line 123: warning: exported method TransactionAccount.ToProto should have comment or be unexported (golint)
    • Line 133: warning: exported method TransactionAccount.FromProto should have comment or be unexported (golint)
    • go-dappley/core/transactionbase/test_util.go
    • Line 9: warning: exported function MockTxInputs should have comment or be unexported (golint)
    • Line 22: warning: exported function MockTxOutputs should have comment or be unexported (golint)
    • Line 33: warning: exported function GenerateFakeTxInputs should have comment or be unexported (golint)
    • Line 40: warning: exported function GenerateFakeTxOutputs should have comment or be unexported (golint)
    • go-dappley/core/scState/event.go
    • Line 1: warning: don't use MixedCaps in package name; scState should be scstate (golint)
    • Line 3: warning: exported type Event should have comment or be unexported (golint)
    • Line 8: warning: exported function NewEvent should have comment or be unexported (golint)
    • Line 12: warning: exported method Event.GetTopic should have comment or be unexported (golint)
    • Line 13: warning: exported method Event.GetData should have comment or be unexported (golint)
    • go-dappley/core/utxo/utxo_cache.go
    • Line 33: warning: exported const UtxoCacheLRUCacheLimit should have comment or be unexported (golint)
    • Line 45: warning: exported function NewUTXOCache should have comment or be unexported (golint)
    • Line 60: warning: exported method UTXOCache.AddUtxos should have comment or be unexported (golint)
    • Line 77: warning: exported method UTXOCache.RemoveUtxos should have comment or be unexported (golint)
    • Line 114: warning: exported method UTXOCache.GetUtxo should have comment or be unexported (golint)
    • Line 124: warning: exported method UTXOCache.GetUtxoByPubkey should have comment or be unexported (golint)
    • Line 139: warning: exported method UTXOCache.GetPreUtxo should have comment or be unexported (golint)
    • Line 168: warning: exported method UTXOCache.IsLastUtxoKeyExist should have comment or be unexported (golint)
    • Line 175: warning: exported method UTXOCache.GetUTXOTx should have comment or be unexported (golint)
    • Line 191: warning: comment on exported method UTXOCache.GetContractCreateUtxo should be of the form "GetContractCreateUtxo ..." (golint)
    • Line 200: warning: exported method UTXOCache.Delete should have comment or be unexported (golint)
    • go-dappley/tool/transaction_generator/util/tx_double_spending.go
    • Line 11: warning: exported type DoubleSpendingTxSender should have comment or be unexported (golint)
    • Line 15: warning: exported function NewDoubleSpendingTxSender should have comment or be unexported (golint)
    • Line 24: warning: exported method DoubleSpendingTxSender.Generate should have comment or be unexported (golint)
    • Line 41: warning: exported method DoubleSpendingTxSender.Send should have comment or be unexported (golint)
    • Line 61: warning: exported method DoubleSpendingTxSender.Print should have comment or be unexported (golint)
    • go-dappley/rpc/metrics_service.go
    • Line 25: warning: exported type MetricsService should have comment or be unexported (golint)
    • Line 34: warning: exported function NewMetricsService should have comment or be unexported (golint)
    • Line 53: warning: exported method MetricsService.RpcGetStats should have comment or be unexported (golint)
    • Line 63: warning: exported method MetricsService.RpcGetNodeConfig should have comment or be unexported (golint)
    • Line 67: warning: exported method MetricsService.RpcSetNodeConfig should have comment or be unexported (golint)
    • Line 132: warning: exported method MetricsService.IsPrivate should have comment or be unexported (golint)
    • go-dappley/rpc/rpc_service.go
    • Line 1: warning: package comment should be of the form "Package rpc ..." (golint)
    • Line 56: warning: exported const ProtoVersion should have comment (or a comment on this block) or be unexported (golint)
    • Line 61: warning: exported type RpcService should have comment or be unexported (golint)
    • Line 70: warning: exported method RpcService.GetBlockchain should have comment or be unexported (golint)
    • Line 78: warning: exported method RpcService.RpcGetVersion should have comment or be unexported (golint)
    • Line 78: warning: receiver name rpcService should be consistent with previous receiver name rpcSerivce for RpcService (golint)
    • Line 95: warning: exported method RpcService.RpcGetBalance should have comment or be unexported (golint)
    • Line 95: warning: receiver name rpcService should be consistent with previous receiver name rpcSerivce for RpcService (golint)
    • Line 114: warning: exported method RpcService.RpcGetBlockchainInfo should have comment or be unexported (golint)
    • Line 114: warning: receiver name rpcService should be consistent with previous receiver name rpcSerivce for RpcService (golint)
    • Line 133: warning: exported method RpcService.RpcGetUTXO should have comment or be unexported (golint)
    • Line 133: warning: receiver name rpcService should be consistent with previous receiver name rpcSerivce for RpcService (golint)
    • Line 179: warning: receiver name rpcService should be consistent with previous receiver name rpcSerivce for RpcService (golint)
    • Line 208: warning: receiver name rpcService should be consistent with previous receiver name rpcSerivce for RpcService (golint)
    • Line 222: warning: receiver name rpcService should be consistent with previous receiver name rpcSerivce for RpcService (golint)
    • Line 233: warning: receiver name rpcService should be consistent with previous receiver name rpcSerivce for RpcService (golint)
    • Line 244: warning: receiver name rpcService should be consistent with previous receiver name rpcSerivce for RpcService (golint)
    • Line 303: warning: receiver name rpcService should be consistent with previous receiver name rpcSerivce for RpcService (golint)
    • Line 366: warning: exported method RpcService.RpcGetNewTransaction should have comment or be unexported (golint)
    • Line 366: warning: receiver name rpcService should be consistent with previous receiver name rpcSerivce for RpcService (golint)
    • Line 386: warning: exported method RpcService.RpcSubscribe should have comment or be unexported (golint)
    • Line 386: warning: receiver name rpcService should be consistent with previous receiver name rpcSerivce for RpcService (golint)
    • Line 406: warning: exported method RpcService.IsPrivate should have comment or be unexported (golint)
    • Line 406: warning: receiver name rpcService should be consistent with previous receiver name rpcSerivce for RpcService (golint)
    • Line 409: warning: receiver name rpcService should be consistent with previous receiver name rpcSerivce for RpcService (golint)
    • Line 419: warning: receiver name rpcService should be consistent with previous receiver name rpcSerivce for RpcService (golint)
    • Line 430: warning: receiver name rpcService should be consistent with previous receiver name rpcSerivce for RpcService (golint)
    • Line 458: warning: receiver name rpcService should be consistent with previous receiver name rpcSerivce for RpcService (golint)
    • Line 464: warning: receiver name rpcService should be consistent with previous receiver name rpcSerivce for RpcService (golint)
    • go-dappley/util/test_util.go
    • Line 26: warning: exported function GenerateRandomAoB should have comment or be unexported (golint)
    • Line 32: warning: exported function IsTimeOut should have comment or be unexported (golint)
    • Line 36: warning: exported type Done should have comment or be unexported (golint)
    • Line 38: warning: exported function WaitDoneOrTimeout should have comment or be unexported (golint)
    • Line 44: warning: exported function WaitDone should have comment or be unexported (golint)
    • go-dappley/util/utils.go
    • Line 57: warning: exported type ArgStruct should have comment or be unexported (golint)
    • Line 62: warning: exported function DecodeScInput should have comment or be unexported (golint)
    • Line 75: warning: exported function PrepareArgs should have comment or be unexported (golint)
    • Line 104: warning: exported function InProtoEnum should have comment or be unexported (golint)
    • Line 113: warning: exported function Str2bytes should have comment or be unexported (golint)
    • Line 119: warning: exported function Bytes2str should have comment or be unexported (golint)
    • go-dappley/vm/memory.go
    • Line 10: warning: comment on exported function Malloc should be of the form "Malloc ..." (golint)
    • Line 15: warning: comment on exported function Free should be of the form "Free ..." (golint)
    • go-dappley/logic/ltransaction/transaction_extends.go
    • Line 46: warning: comment on exported type TxNormal should be of the form "TxNormal ..." (with optional leading article) (golint)
    • Line 57: warning: comment on exported type TxCoinbase should be of the form "TxCoinbase ..." (with optional leading article) (golint)
    • Line 62: warning: comment on exported type TxGasReward should be of the form "TxGasReward ..." (with optional leading article) (golint)
    • Line 67: warning: comment on exported type TxGasChange should be of the form "TxGasChange ..." (with optional leading article) (golint)
    • Line 72: warning: comment on exported type TxReward should be of the form "TxReward ..." (with optional leading article) (golint)
    • Line 82: warning: comment on exported function NewTxDecorator should be of the form "NewTxDecorator ..." (golint)
    • Line 106: warning: exported method TxNormal.Sign should have comment or be unexported (golint)
    • Line 110: warning: exported method TxNormal.Verify should have comment or be unexported (golint)
    • Line 122: warning: exported method TxContract.Sign should have comment or be unexported (golint)
    • Line 126: warning: exported method TxContract.Verify should have comment or be unexported (golint)
    • Line 150: warning: exported method TxCoinbase.Sign should have comment or be unexported (golint)
    • Line 154: warning: exported method TxCoinbase.Verify should have comment or be unexported (golint)
    • Line 166: warning: exported method TxGasReward.Sign should have comment or be unexported (golint)
    • Line 170: warning: exported method TxGasReward.Verify should have comment or be unexported (golint)
    • Line 174: warning: exported method TxGasChange.Sign should have comment or be unexported (golint)
    • Line 178: warning: exported method TxGasChange.Verify should have comment or be unexported (golint)
    • Line 182: warning: exported method TxReward.Sign should have comment or be unexported (golint)
    • Line 186: warning: exported method TxReward.Verify should have comment or be unexported (golint)
    • Line 190: warning: exported method TxContractSend.Sign should have comment or be unexported (golint)
    • Line 194: warning: exported method TxContractSend.Verify should have comment or be unexported (golint)
    • Line 198: warning: exported function NewTxContract should have comment or be unexported (golint)
    • Line 208: warning: receiver name ctx should be consistent with previous receiver name tx for TxContract (golint)
    • Line 216: warning: receiver name ctx should be consistent with previous receiver name tx for TxContract (golint)
    • Line 221: warning: receiver name ctx should be consistent with previous receiver name tx for TxContract (golint)
    • Line 226: warning: receiver name ctx should be consistent with previous receiver name tx for TxContract (golint)
    • Line 237: warning: receiver name ctx should be consistent with previous receiver name tx for TxContract (golint)
    • Line 242: warning: receiver name ctx should be consistent with previous receiver name tx for TxContract (golint)
    • Line 354: warning: comment on exported method TxContract.CollectContractOutput should be of the form "CollectContractOutput ..." (golint)
    • Line 502: warning: exported function NewSmartContractDestoryTX should have comment or be unexported (golint)
    • Line 512: warning: exported function NewContractTransferTX should have comment or be unexported (golint)
    • Line 577: warning: exported method TxContract.GetTotalBalance should have comment or be unexported (golint)
    • go-dappley/tool/transaction_automator/util/random_tx_sender.go
    • Line 18: warning: exported const TimeBetweenBatch1 should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type BatchTxSender should have comment or be unexported (golint)
    • Line 34: warning: exported function NewBatchTxSender should have comment or be unexported (golint)
    • Line 47: warning: exported method BatchTxSender.Resume should have comment or be unexported (golint)
    • Line 51: warning: exported method BatchTxSender.Pause should have comment or be unexported (golint)
    • Line 56: warning: exported method BatchTxSender.EnableSmartContract should have comment or be unexported (golint)
    • Line 60: warning: exported method BatchTxSender.IsRunning should have comment or be unexported (golint)
    • Line 64: warning: exported method BatchTxSender.ClearPendingTx should have comment or be unexported (golint)
    • Line 68: warning: exported method BatchTxSender.AddTxToPendingTxs should have comment or be unexported (golint)
    • Line 72: warning: exported method BatchTxSender.IsPendingTxsReady should have comment or be unexported (golint)
    • Line 76: warning: exported method BatchTxSender.Run should have comment or be unexported (golint)
    • Line 204: warning: exported method BatchTxSender.IsTheTurnToSendSmartContractTransaction should have comment or be unexported (golint)
    • go-dappley/metrics/metrics.go
    • Line 8: warning: exported const HISTOGRAM_RESERVOIR_SIZE should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported function DeregisterAll should have comment or be unexported (golint)
    • Line 38: warning: exported function NewHistogram should have comment or be unexported (golint)
    • go-dappley/logic/ltransaction/interfaces.go
    • Line 12: warning: exported type ScEngineManager should have comment or be unexported (golint)
    • Line 16: warning: exported type ScEngine should have comment or be unexported (golint)
    • Line 37: warning: comment on exported type TxDecorator should be of the form "TxDecorator ..." (with optional leading article) (golint)
    • go-dappley/logic/lblockchain/blockchain_manager.go
    • Line 1: warning: package comment should be of the form "Package lblockchain ..." (golint)
    • Line 45: warning: exported const HeightDiffThreshold should have comment (or a comment on this block) or be unexported (golint)
    • Line 58: warning: exported var ErrParentBlockNotFound should have comment or be unexported (golint)
    • Line 61: warning: exported type BlockchainManager should have comment or be unexported (golint)
    • Line 69: warning: exported function NewBlockchainManager should have comment or be unexported (golint)
    • Line 80: warning: exported method BlockchainManager.GetDownloadRequestCh should have comment or be unexported (golint)
    • Line 84: warning: exported method BlockchainManager.RequestDownloadBlockchain should have comment or be unexported (golint)
    • Line 109: warning: exported method BlockchainManager.ListenToNetService should have comment or be unexported (golint)
    • Line 117: warning: exported method BlockchainManager.GetSubscribedTopics should have comment or be unexported (golint)
    • Line 121: warning: exported method BlockchainManager.GetTopicHandler should have comment or be unexported (golint)
    • Line 132: warning: exported method BlockchainManager.Getblockchain should have comment or be unexported (golint)
    • Line 136: warning: exported method BlockchainManager.GetblockPool should have comment or be unexported (golint)
    • Line 140: warning: exported method BlockchainManager.VerifyBlock should have comment or be unexported (golint)
    • Line 154: warning: exported method BlockchainManager.Push should have comment or be unexported (golint)
    • Line 225: warning: exported method BlockchainManager.MergeFork should have comment or be unexported (golint)
    • Line 294: warning: comment on exported method BlockchainManager.RequestBlockHandler should be of the form "RequestBlockHandler ..." (golint)
    • Line 403: warning: comment on exported method BlockchainManager.NumForks should be of the form "NumForks ..." (golint)
    • go-dappley/core/scState/event_manager.go
    • Line 1: warning: don't use MixedCaps in package name; scState should be scstate (golint)
    • Line 7: warning: exported type EventManager should have comment or be unexported (golint)
    • Line 11: warning: exported function NewEventManager should have comment or be unexported (golint)
    • Line 15: warning: exported method EventManager.Trigger should have comment or be unexported (golint)
    • Line 21: warning: exported method EventManager.SubscribeMultiple should have comment or be unexported (golint)
    • Line 27: warning: exported method EventManager.Subscribe should have comment or be unexported (golint)
    • Line 31: warning: exported method EventManager.Unsubscribe should have comment or be unexported (golint)
    • go-dappley/network/types.go
    • Line 9: warning: exported type StreamInfo should have comment or be unexported (golint)
    • Line 15: warning: exported type SyncPeerContext should have comment or be unexported (golint)
    • go-dappley/core/transactionbase/transaction_output.go
    • Line 29: warning: exported type TXOutput should have comment or be unexported (golint)
    • Line 35: warning: exported method TXOutput.GetAddress should have comment or be unexported (golint)
    • Line 39: warning: exported function NewTXOutput should have comment or be unexported (golint)
    • Line 43: warning: exported function NewContractTXOutput should have comment or be unexported (golint)
    • Line 47: warning: exported function NewTxOut should have comment or be unexported (golint)
    • Line 52: warning: exported method TXOutput.IsFoundInRewardStorage should have comment or be unexported (golint)
    • Line 70: warning: exported method TXOutput.ToProto should have comment or be unexported (golint)
    • Line 78: warning: exported method TXOutput.FromProto should have comment or be unexported (golint)
    • go-dappley/logic/lutxo/utxo_index.go
    • Line 39: warning: exported var ErrUTXONotFound should have comment or be unexported (golint)
    • Line 63: warning: exported method UTXOIndex.SetIndexAdd should have comment or be unexported (golint)
    • Line 67: warning: exported method UTXOIndex.SetindexRemove should have comment or be unexported (golint)
    • Line 71: warning: exported method UTXOIndex.IsIndexAddExist should have comment or be unexported (golint)
    • Line 75: warning: exported method UTXOIndex.Save should have comment or be unexported (golint)
    • Line 100: warning: exported method UTXOIndex.IsLastUtxoKeyExist should have comment or be unexported (golint)
    • Line 104: warning: exported method UTXOIndex.GetAllUTXOsByPubKeyHash should have comment or be unexported (golint)
    • Line 124: warning: exported method UTXOIndex.GetUpdatedUtxo should have comment or be unexported (golint)
    • Line 148: warning: exported method UTXOIndex.GetContractCreateUTXOByPubKeyHash should have comment or be unexported (golint)
    • Line 164: warning: comment on exported method UTXOIndex.GetContractInvokeUTXOsByPubKeyHash should be of the form "GetContractInvokeUTXOsByPubKeyHash ..." (golint)
    • Line 198: warning: exported method UTXOIndex.UpdateUtxo should have comment or be unexported (golint)
    • Line 229: warning: comment on exported method UTXOIndex.UpdateUtxos should be of the form "UpdateUtxos ..." (golint)
    • Line 366: warning: comment on exported method UTXOIndex.DeepCopy should be of the form "DeepCopy ..." (golint)
    • go-dappley/storage/file_loader.go
    • Line 29: warning: exported type FileLoader should have comment or be unexported (golint)
    • Line 33: warning: exported function NewFileLoader should have comment or be unexported (golint)
    • Line 39: warning: exported method FileLoader.ReadFromFile should have comment or be unexported (golint)
    • Line 55: warning: exported method FileLoader.SaveToFile should have comment or be unexported (golint)
    • go-dappley/network/peer_manager.go
    • Line 38: warning: exported type ConnectionType should have comment or be unexported (golint)
    • Line 46: warning: exported const PeerConnectionInterval should have comment (or a comment on this block) or be unexported (golint)
    • Line 61: warning: exported type PeerManager should have comment or be unexported (golint)
    • Line 113: warning: comment on exported method PeerManager.ListenToNetService should be of the form "ListenToNetService ..." (golint)
    • Line 212: warning: exported method PeerManager.SetHostPeerId should have comment or be unexported (golint)
    • Line 230: warning: exported method PeerManager.IsPeerNew should have comment or be unexported (golint)
    • Line 255: warning: exported method PeerManager.GetAllPeers should have comment or be unexported (golint)
    • go-dappley/metrics/datastore.go
    • Line 38: warning: exported type DataStore should have comment or be unexported (golint)
    • Line 47: warning: comment on exported function NewDataStore should be of the form "NewDataStore ..." (golint)
    • Line 126: warning: exported method DataStore.ToProto should have comment or be unexported (golint)
    • go-dappley/core/blockproducerinfo/block_producer_info.go
    • Line 25: warning: exported type BlockProducerInfo should have comment or be unexported (golint)
    • Line 30: warning: exported function NewBlockProducerInfo should have comment or be unexported (golint)
    • Line 42: warning: exported method BlockProducerInfo.BlockProduceFinish should have comment or be unexported (golint)
    • Line 46: warning: exported method BlockProducerInfo.BlockProduceStart should have comment or be unexported (golint)
    • Line 50: warning: exported method BlockProducerInfo.IsIdle should have comment or be unexported (golint)
    • Line 54: warning: exported method BlockProducerInfo.Produced should have comment or be unexported (golint)
    • go-dappley/tool/transaction_generator/util/tx_unauthorized_utxo.go
    • Line 11: warning: exported type UnauthorizedUtxoTxSender should have comment or be unexported (golint)
    • Line 16: warning: exported function NewUnauthorizedUtxoTxSender should have comment or be unexported (golint)
    • Line 28: warning: exported method UnauthorizedUtxoTxSender.Generate should have comment or be unexported (golint)
    • Line 48: warning: exported method UnauthorizedUtxoTxSender.Send should have comment or be unexported (golint)
    • Line 57: warning: exported method UnauthorizedUtxoTxSender.Print should have comment or be unexported (golint)
    • go-dappley/core/blockchain/block_pool.go
    • Line 33: warning: exported const BlockCacheLRUCacheLimit should have comment or be unexported (golint)
    • Line 34: warning: exported const ForkCacheLRUCacheLimit should have comment or be unexported (golint)
    • Line 36: warning: exported type BlockPool should have comment or be unexported (golint)
    • Line 43: warning: exported function NewBlockPool should have comment or be unexported (golint)
    • Line 181: warning: exported method BlockPool.GetFork should have comment or be unexported (golint)
    • Line 207: warning: exported method BlockPool.RemoveFork should have comment or be unexported (golint)
    • Line 264: warning: exported method BlockPool.ForkHeadRange should have comment or be unexported (golint)
    • go-dappley/core/blockchain/blockchain.go
    • Line 7: warning: exported type BlockchainState should have comment or be unexported (golint)
    • Line 10: warning: exported const BlockchainInit should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type Blockchain should have comment or be unexported (golint)
    • Line 23: warning: exported function NewBlockchain should have comment or be unexported (golint)
    • Line 31: warning: exported method Blockchain.GetTailBlockHash should have comment or be unexported (golint)
    • Line 35: warning: exported method Blockchain.GetLIBHash should have comment or be unexported (golint)
    • Line 39: warning: exported method Blockchain.SetTailBlockHash should have comment or be unexported (golint)
    • Line 43: warning: exported method Blockchain.SetLIBHash should have comment or be unexported (golint)
    • Line 47: warning: exported method Blockchain.SetState should have comment or be unexported (golint)
    • Line 51: warning: exported method Blockchain.GetState should have comment or be unexported (golint)
    • go-dappley/sdk/wallet.go
    • Line 16: warning: exported type DappSdkAccount should have comment or be unexported (golint)
    • Line 69: warning: exported method DappSdkAccount.GetAddrs should have comment or be unexported (golint)
    • Line 71: warning: exported method DappSdkAccount.GetBalance should have comment or be unexported (golint)
    • Line 78: warning: exported method DappSdkAccount.GetAccountManager should have comment or be unexported (golint)
    • Line 80: warning: exported method DappSdkAccount.GetUtxoIndex should have comment or be unexported (golint)
    • Line 82: warning: exported method DappSdkAccount.Initialize should have comment or be unexported (golint)
    • Line 90: warning: exported method DappSdkAccount.IsZeroBalance should have comment or be unexported (golint)
    • Line 101: warning: comment on exported method DappSdkAccount.DisplayBalances should be of the form "DisplayBalances ..." (golint)
    • Line 145: warning: comment on exported method DappSdkAccount.UpdateBalance should be of the form "UpdateBalance ..." (golint)
    • go-dappley/rpc/grpc_host.go
    • Line 51: warning: exported type MetricsServiceConfig should have comment or be unexported (golint)
    • Line 56: warning: exported type Server should have comment or be unexported (golint)
    • Line 65: warning: exported function NewGrpcServer should have comment or be unexported (golint)
    • Line 69: warning: exported function NewGrpcServerWithMetrics should have comment or be unexported (golint)
    • Line 79: warning: exported method Server.Start should have comment or be unexported (golint)
    • Line 106: warning: exported method Server.AuthInterceptor should have comment or be unexported (golint)
    • Line 121: warning: exported method Server.Stop should have comment or be unexported (golint)
    • go-dappley/core/transaction/transactions.go
    • Line 8: warning: exported type Transactions should have comment or be unexported (golint)
    • Line 12: warning: exported function NewTransactions should have comment or be unexported (golint)
    • Line 16: warning: exported method Transactions.GetTransactions should have comment or be unexported (golint)
    • Line 20: warning: exported method Transactions.ToProto should have comment or be unexported (golint)
    • Line 32: warning: exported method Transactions.FromProto should have comment or be unexported (golint)
    • go-dappley/sdk/sdk.go
    • Line 16: warning: exported type DappSdk should have comment or be unexported (golint)
    • Line 39: warning: comment on exported method DappSdk.GetBalance should be of the form "GetBalance ..." (golint)
    • go-dappley/logic/lblockchain/blockchain.go
    • Line 50: warning: exported var ErrBlockDoesNotExist should have comment or be unexported (golint)
    • Line 60: warning: exported type Blockchain should have comment or be unexported (golint)
    • Line 96: warning: exported function GetBlockchain should have comment or be unexported (golint)
    • Line 121: warning: exported method Blockchain.GetDb should have comment or be unexported (golint)
    • Line 125: warning: exported method Blockchain.GetUtxoCache should have comment or be unexported (golint)
    • Line 129: warning: exported method Blockchain.GetTailBlockHash should have comment or be unexported (golint)
    • Line 133: warning: exported method Blockchain.GetLIBHash should have comment or be unexported (golint)
    • Line 137: warning: exported method Blockchain.GetSCManager should have comment or be unexported (golint)
    • Line 141: warning: exported method Blockchain.GetTxPool should have comment or be unexported (golint)
    • Line 145: warning: exported method Blockchain.GetEventManager should have comment or be unexported (golint)
    • Line 149: warning: exported method Blockchain.GetUpdatedUTXOIndex should have comment or be unexported (golint)
    • Line 158: warning: exported method Blockchain.SetBlockSizeLimit should have comment or be unexported (golint)
    • Line 162: warning: exported method Blockchain.GetBlockSizeLimit should have comment or be unexported (golint)
    • Line 166: warning: exported method Blockchain.GetTailBlock should have comment or be unexported (golint)
    • Line 171: warning: exported method Blockchain.GetLIB should have comment or be unexported (golint)
    • Line 176: warning: exported method Blockchain.GetMaxHeight should have comment or be unexported (golint)
    • Line 185: warning: exported method Blockchain.GetLIBHeight should have comment or be unexported (golint)
    • Line 193: warning: exported method Blockchain.GetBlockByHash should have comment or be unexported (golint)
    • Line 201: warning: exported method Blockchain.GetBlockByHeight should have comment or be unexported (golint)
    • Line 210: warning: exported method Blockchain.SetTailBlockHash should have comment or be unexported (golint)
    • Line 214: warning: exported method Blockchain.SetState should have comment or be unexported (golint)
    • Line 218: warning: exported method Blockchain.GetState should have comment or be unexported (golint)
    • Line 222: warning: exported method Blockchain.AddBlockContextToTail should have comment or be unexported (golint)
    • Line 298: warning: exported method Blockchain.Iterator should have comment or be unexported (golint)
    • Line 312: warning: exported method Blockchain.Next should have comment or be unexported (golint)
    • Line 377: warning: exported method Blockchain.IsHigherThanBlockchain should have comment or be unexported (golint)
    • Line 381: warning: exported method Blockchain.IsInBlockchain should have comment or be unexported (golint)
    • Line 386: warning: comment on exported method Blockchain.Rollback should be of the form "Rollback ..." (golint)
    • Line 446: warning: exported method Blockchain.DeepCopy should have comment or be unexported (golint)
    • Line 452: warning: exported method Blockchain.SetLIBHash should have comment or be unexported (golint)
    • Line 461: warning: exported method Blockchain.IsLIB should have comment or be unexported (golint)
    • Line 485: warning: exported method Blockchain.CheckLibPolicy should have comment or be unexported (golint)
    • go-dappley/intergationTest/integration_test.go
    • Line 17: warning: don't use MixedCaps in package name; intergationTest should be intergationtest (golint)
    • Line 56: warning: don't use underscores in Go names; const testport_msg_relay_port1 should be testportMsgRelayPort1 (golint)
    • Line 57: warning: don't use underscores in Go names; const testport_msg_relay_port2 should be testportMsgRelayPort2 (golint)
    • Line 58: warning: don't use underscores in Go names; const testport_msg_relay_port3 should be testportMsgRelayPort3 (golint)
    • Line 59: warning: don't use underscores in Go names; const testport_fork should be testportFork (golint)
    • Line 60: warning: don't use underscores in Go names; const testport_fork_segment should be testportForkSegment (golint)
    • Line 61: warning: don't use underscores in Go names; const testport_fork_syncing should be testportForkSyncing (golint)
    • Line 62: warning: don't use underscores in Go names; const testport_fork_download should be testportForkDownload (golint)
    • go-dappley/common/log/log.go
    • Line 13: warning: exported function BuildLogAndInit should have comment or be unexported (golint)
    • Line 19: warning: exported type Log should have comment or be unexported (golint)
    • Line 28: warning: exported method Log.GetParameters should have comment or be unexported (golint)
    • Line 66: warning: exported type LogNullWriter should have comment or be unexported (golint)
    • Line 73: warning: exported method Log.LogInit should have comment or be unexported (golint)
    • go-dappley/tool/db_inspect/main.go
    • Line 20: warning: exported type HandleFunc should have comment or be unexported (golint)
    • Line 22: warning: exported type CommandInfo should have comment or be unexported (golint)
    • Line 36: warning: exported function GetBlockHandle should have comment or be unexported (golint)
    • Line 68: warning: exported function GetBlockByHeightHandle should have comment or be unexported (golint)
    • Line 100: warning: exported function GetTransactionHandle should have comment or be unexported (golint)
    • Line 145: warning: exported function GetCostTransactionHandle should have comment or be unexported (golint)
    • Line 194: warning: exported function GetUtxoHandle should have comment or be unexported (golint)
    • go-dappley/wallet/account_manager.go
    • Line 40: warning: exported var ErrPasswordIncorrect should have comment or be unexported (golint)
    • Line 44: warning: exported type AccountManager should have comment or be unexported (golint)
    • Line 76: warning: exported function NewAccountManager should have comment or be unexported (golint)
    • Line 82: warning: exported function Exists should have comment or be unexported (golint)
    • Line 93: warning: exported method AccountManager.NewTimer should have comment or be unexported (golint)
    • Line 97: warning: exported method AccountManager.LoadFromFile should have comment or be unexported (golint)
    • Line 116: warning: exported method AccountManager.IsEmpty should have comment or be unexported (golint)
    • Line 134: warning: exported method AccountManager.AddAccount should have comment or be unexported (golint)
    • Line 140: warning: exported method AccountManager.GetAddresses should have comment or be unexported (golint)
    • Line 152: warning: exported method AccountManager.GetAddressesWithPassphrase should have comment or be unexported (golint)
    • Line 169: warning: exported method AccountManager.GetKeyPairByAddress should have comment or be unexported (golint)
    • Line 177: warning: exported method AccountManager.GetAccountByAddress should have comment or be unexported (golint)
    • Line 189: warning: exported method AccountManager.GetAccountByAddressWithPassphrase should have comment or be unexported (golint)
    • Line 202: warning: exported method AccountManager.SetUnlockTimer should have comment or be unexported (golint)
    • Line 210: warning: exported method AccountManager.UnlockExpire should have comment or be unexported (golint)
    • Line 220: warning: exported method AccountManager.ToProto should have comment or be unexported (golint)
    • Line 233: warning: exported method AccountManager.FromProto should have comment or be unexported (golint)
    • go-dappley/core/transaction/transaction_node.go
    • Line 9: warning: exported type TransactionNode should have comment or be unexported (golint)
    • Line 15: warning: exported function NewTransactionNode should have comment or be unexported (golint)
    • Line 33: warning: exported method TransactionNode.GetTipsPerByte should have comment or be unexported (golint)
    • Line 37: warning: exported method TransactionNode.ToProto should have comment or be unexported (golint)
    • Line 49: warning: exported method TransactionNode.FromProto should have comment or be unexported (golint)
    • go-dappley/network/node.go
    • Line 38: warning: exported const TopicOnStreamStop should have comment (or a comment on this block) or be unexported (golint)
    • Line 50: warning: exported type Node should have comment or be unexported (golint)
    • Line 91: warning: exported method Node.GetIPFSAddresses should have comment or be unexported (golint)
    • Line 110: warning: comment on exported method Node.GetPeers should be of the form "GetPeers ..." (golint)
    • go-dappley/logic/test_utils.go
    • Line 11: warning: comment on exported function GetAllAddressesByPath should be of the form "GetAllAddressesByPath ..." (golint)
    • Line 23: warning: exported function GetTestAccountPath should have comment or be unexported (golint)
    • Line 28: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 46: warning: exported function RemoveAccountTestFile should have comment or be unexported (golint)
    • go-dappley/logic/lblockchain/interfaces.go
    • Line 10: warning: exported type Storage should have comment or be unexported (golint)
    • Line 15: warning: exported type Consensus should have comment or be unexported (golint)
    • Line 19: warning: exported type LIBPolicy should have comment or be unexported (golint)
    • Line 25: warning: exported type NetService should have comment or be unexported (golint)
    • go-dappley/common/pubsub/command_broker.go
    • Line 8: warning: exported var ErrTopicOccupied should have comment or be unexported (golint)
    • Line 12: warning: exported type TopicHandler should have comment or be unexported (golint)
    • Line 14: warning: exported type CommandBroker should have comment or be unexported (golint)
    • Line 34: warning: comment on exported method CommandBroker.AddSubscriber should be of the form "AddSubscriber ..." (golint)
    • go-dappley/consensus/dpos.go
    • Line 40: warning: exported const MinConsensusSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported type DPOS should have comment or be unexported (golint)
    • go-dappley/logic/downloadmanager/download_manager.go
    • Line 46: warning: exported const PeerStatusInit should have comment (or a comment on this block) or be unexported (golint)
    • Line 71: warning: exported var ErrEmptyBlocks should have comment or be unexported (golint)
    • Line 88: warning: exported type PeerBlockInfo should have comment or be unexported (golint)
    • Line 95: warning: exported type DownloadCommand should have comment or be unexported (golint)
    • Line 99: warning: exported type DownloadingCommandInfo should have comment or be unexported (golint)
    • Line 105: warning: exported type SyncCommandBlocksHeader should have comment or be unexported (golint)
    • Line 110: warning: exported type SyncCommonBlocksCommand should have comment or be unexported (golint)
    • Line 115: warning: exported type ExecuteCommand should have comment or be unexported (golint)
    • Line 120: warning: exported type DownloadManager should have comment or be unexported (golint)
    • Line 135: warning: exported function NewDownloadManager should have comment or be unexported (golint)
    • Line 158: warning: exported method DownloadManager.Start should have comment or be unexported (golint)
    • Line 162: warning: exported method DownloadManager.StartDownloadRequestListener should have comment or be unexported (golint)
    • Line 181: warning: exported method DownloadManager.Subscribe should have comment or be unexported (golint)
    • Line 189: warning: exported method DownloadManager.GetSubscribedTopics should have comment or be unexported (golint)
    • Line 193: warning: exported method DownloadManager.GetTopicHandler should have comment or be unexported (golint)
    • Line 214: warning: exported method DownloadManager.StartDownloadBlockchain should have comment or be unexported (golint)
    • Line 258: warning: exported method DownloadManager.AddPeerBlockChainInfo should have comment or be unexported (golint)
    • Line 316: warning: exported method DownloadManager.GetBlocksDataHandler should have comment or be unexported (golint)
    • Line 384: warning: exported method DownloadManager.GetCommonBlockDataHandler should have comment or be unexported (golint)
    • Line 412: warning: exported method DownloadManager.DisconnectPeer should have comment or be unexported (golint)
    • Line 431: warning: exported method DownloadManager.GetCommonBlockCheckPoint should have comment or be unexported (golint)
    • Line 450: warning: exported method DownloadManager.FindCommonBlock should have comment or be unexported (golint)
    • Line 473: warning: exported method DownloadManager.CheckGetCommonBlockCommand should have comment or be unexported (golint)
    • Line 496: warning: exported method DownloadManager.CheckDownloadCommand should have comment or be unexported (golint)
    • Line 707: warning: exported method DownloadManager.SendGetCommonBlockRequest should have comment or be unexported (golint)
    • Line 721: warning: exported method DownloadManager.GetCommonBlockRequestHandler should have comment or be unexported (golint)
    • Line 738: warning: exported method DownloadManager.SendGetCommonBlockResponse should have comment or be unexported (golint)
    • Line 760: warning: exported method DownloadManager.GetCommonBlockResponseHandler should have comment or be unexported (golint)
    • Line 776: warning: exported method DownloadManager.SendGetBlocksRequest should have comment or be unexported (golint)
    • Line 788: warning: exported method DownloadManager.GetBlocksRequestHandler should have comment or be unexported (golint)
    • Line 805: warning: exported method DownloadManager.SendGetBlocksResponse should have comment or be unexported (golint)
    • Line 839: warning: exported method DownloadManager.GetBlocksResponseHandler should have comment or be unexported (golint)
    • Line 855: warning: exported method DownloadManager.SendGetBlockchainInfoRequest should have comment or be unexported (golint)
    • Line 862: warning: exported method DownloadManager.GetBlockchainInfoRequestHandler should have comment or be unexported (golint)
    • Line 871: warning: exported method DownloadManager.SendGetBlockchainInfoResponse should have comment or be unexported (golint)
    • Line 893: warning: exported method DownloadManager.GetBlockchainInfoResponseHandler should have comment or be unexported (golint)
    • Line 908: warning: exported method DownloadManager.OnStreamStopHandler should have comment or be unexported (golint)
    • go-dappley/core/transaction/transaction.go
    • Line 41: warning: exported var Subsidy should have comment or be unexported (golint)
    • Line 44: warning: exported const ContractTxouputIndex should have comment (or a comment on this block) or be unexported (golint)
    • Line 49: warning: exported var RewardTxData should have comment or be unexported (golint)
    • Line 50: warning: exported var GasRewardData should have comment or be unexported (golint)
    • Line 51: warning: exported var GasChangeData should have comment or be unexported (golint)
    • Line 58: warning: exported var ErrOutOfGasLimit should have comment or be unexported (golint)
    • Line 67: warning: exported type TxType should have comment or be unexported (golint)
    • Line 70: warning: exported const TxTypeDefault should have comment (or a comment on this block) or be unexported (golint)
    • Line 80: warning: exported type Transaction should have comment or be unexported (golint)
    • Line 91: warning: exported type TxIndex should have comment or be unexported (golint)
    • Line 108: warning: comment on exported function SetSubsidy should be of the form "SetSubsidy ..." (golint)
    • Line 164: warning: exported method Transaction.IsCoinbase should have comment or be unexported (golint)
    • Line 264: warning: exported method Transaction.DeepCopy should have comment or be unexported (golint)
    • Line 286: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 325: warning: exported method Transaction.MatchRewards should have comment or be unexported (golint)
    • Line 375: warning: exported method Transaction.ToProto should have comment or be unexported (golint)
    • Line 403: warning: exported method Transaction.FromProto should have comment or be unexported (golint)
    • Line 428: warning: exported method Transaction.GetSize should have comment or be unexported (golint)
    • Line 437: warning: comment on exported method Transaction.GetDefaultFromTransactionAccount should be of the form "GetDefaultFromTransactionAccount ..." (golint)
    • Line 483: warning: exported method Transaction.VerifySignatures should have comment or be unexported (golint)
    • Line 511: warning: comment on exported method Transaction.VerifyPublicKeyHash should be of the form "VerifyPublicKeyHash ..." (golint)
    • Line 544: warning: exported method Transaction.Verify should have comment or be unexported (golint)
    • go-dappley/network/node_integration_test.go
    • Line 33: warning: don't use underscores in Go names; const test_port1 should be testPort1 (golint)
    • Line 34: warning: don't use underscores in Go names; const test_port2 should be testPort2 (golint)
    • Line 35: warning: don't use underscores in Go names; const test_port3 should be testPort3 (golint)
    • Line 36: warning: don't use underscores in Go names; const test_port4 should be testPort4 (golint)
    • Line 37: warning: don't use underscores in Go names; const test_port5 should be testPort5 (golint)
    • Line 38: warning: don't use underscores in Go names; const test_port6 should be testPort6 (golint)
    • Line 39: warning: don't use underscores in Go names; const test_port7 should be testPort7 (golint)
    • Line 40: warning: don't use underscores in Go names; const test_port8 should be testPort8 (golint)
    • Line 41: warning: don't use underscores in Go names; const test_port9 should be testPort9 (golint)
    • Line 42: warning: don't use underscores in Go names; const test_port10 should be testPort10 (golint)
    • Line 43: warning: don't use underscores in Go names; const test_port11 should be testPort11 (golint)
    • Line 44: warning: don't use underscores in Go names; const test_port12 should be testPort12 (golint)
    • Line 45: warning: don't use underscores in Go names; const test_port13 should be testPort13 (golint)
    • Line 46: warning: don't use underscores in Go names; const test_port14 should be testPort14 (golint)
    • go-dappley/rpc/metrics.go
    • Line 11: warning: exported var RpcReqMetricsMap should have comment or be unexported (golint)
    • Line 17: warning: exported type ReqStats should have comment or be unexported (golint)
    • Line 23: warning: exported type ReqStatsFunc should have comment or be unexported (golint)
    • Line 30: warning: exported type TxRequestStats should have comment or be unexported (golint)
    • Line 35: warning: exported function NewTxRequestStats should have comment or be unexported (golint)
    • Line 45: warning: exported method TxRequestStats.GetConcurrentNum should have comment or be unexported (golint)
    • Line 49: warning: exported method TxRequestStats.GetResponseTime should have comment or be unexported (golint)
    • Line 53: warning: exported method TxRequestStats.GetRequestPerSecond should have comment or be unexported (golint)
    • go-dappley/storage/leveldb.go
    • Line 1: warning: package comment should be of the form "Package storage ..." (golint)
    • Line 30: warning: exported var ErrLevelDbNotAbleToOpenFile should have comment or be unexported (golint)
    • Line 33: warning: exported type LevelDB should have comment or be unexported (golint)
    • Line 39: warning: comment on exported function OpenDatabase should be of the form "OpenDatabase ..." (golint)
    • Line 58: warning: exported method LevelDB.Close should have comment or be unexported (golint)
    • Line 63: warning: exported method LevelDB.Get should have comment or be unexported (golint)
    • Line 71: warning: exported method LevelDB.Put should have comment or be unexported (golint)
    • Line 88: warning: exported method LevelDB.Del should have comment or be unexported (golint)
    • Line 92: warning: exported method LevelDB.EnableBatch should have comment or be unexported (golint)
    • Line 97: warning: exported method LevelDB.Flush should have comment or be unexported (golint)
    • Line 105: warning: exported method LevelDB.DisableBatch should have comment or be unexported (golint)
    • Line 110: warning: exported function DbExists should have comment or be unexported (golint)
    • go-dappley/network/network.go
    • Line 15: warning: exported type Network should have comment or be unexported (golint)
    • Line 24: warning: exported type NetworkContext should have comment or be unexported (golint)
    • Line 74: warning: exported method Network.GetStreamManager should have comment or be unexported (golint)
    • Line 78: warning: exported method Network.StartNewPingService should have comment or be unexported (golint)
    • go-dappley/dapp/cli/cli.go
    • Line 132: warning: exported var ErrInsufficientFund should have comment or be unexported (golint)
    • Line 924: warning: don't use underscores in Go names; var tx_utxos should be txUtxos (golint)
    • Line 964: warning: exported function GetUTXOsfromAmount should have comment or be unexported (golint)
    • Line 1116: warning: don't use underscores in Go names; var tx_utxos should be txUtxos (golint)
    • go-dappley/core/utxo/utxotx_sync_pool.go
    • Line 7: warning: exported var DEFAULT_SYNC_POOL should have comment or be unexported (golint)
    • Line 13: warning: exported function NewPool should have comment or be unexported (golint)
    • Line 22: warning: exported function Alloc should have comment or be unexported (golint)
    • Line 26: warning: exported function Free should have comment or be unexported (golint)
    • Line 39: warning: exported function NewSyncPool should have comment or be unexported (golint)
    • Line 63: warning: exported method SyncPool.Alloc should have comment or be unexported (golint)
    • Line 75: warning: exported method SyncPool.Free should have comment or be unexported (golint)
    • Line 79: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • go-dappley/vm/storage.go
    • Line 27: warning: comment on exported function StorageGetFunc should be of the form "StorageGetFunc ..." (golint)
    • Line 53: warning: comment on exported function StorageSetFunc should be of the form "StorageSetFunc ..." (golint)
    • Line 72: warning: comment on exported function StorageDelFunc should be of the form "StorageDelFunc ..." (golint)
    • go-dappley/rpc/admin_service.go
    • Line 1: warning: package comment should be of the form "Package rpc ..." (golint)
    • Line 43: warning: exported type AdminRpcService should have comment or be unexported (golint)
    • Line 50: warning: exported method AdminRpcService.RpcAddPeer should have comment or be unexported (golint)
    • Line 58: warning: exported method AdminRpcService.RpcAddProducer should have comment or be unexported (golint)
    • Line 71: warning: exported method AdminRpcService.RpcGetPeerInfo should have comment or be unexported (golint)
    • Line 78: warning: comment on exported method AdminRpcService.RpcUnlockAccount should be of the form "RpcUnlockAccount ..." (golint)
    • Line 87: warning: exported method AdminRpcService.RpcSendFromMiner should have comment or be unexported (golint)
    • Line 121: warning: exported method AdminRpcService.RpcSend should have comment or be unexported (golint)
    • Line 183: warning: exported method AdminRpcService.IsPrivate should have comment or be unexported (golint)
    • go-dappley/core/account/key_pair.go
    • Line 30: warning: exported type KeyPair should have comment or be unexported (golint)
    • Line 35: warning: exported function NewKeyPair should have comment or be unexported (golint)
    • Line 40: warning: exported method KeyPair.GenerateAddress should have comment or be unexported (golint)
    • Line 56: warning: exported method KeyPair.GetPrivateKey should have comment or be unexported (golint)
    • Line 60: warning: exported method KeyPair.GetPublicKey should have comment or be unexported (golint)
    • Line 64: warning: exported function GenerateKeyPairByPrivateKey should have comment or be unexported (golint)
    • Line 74: warning: exported method KeyPair.ToProto should have comment or be unexported (golint)
    • Line 85: warning: exported method KeyPair.FromProto should have comment or be unexported (golint)
    • go-dappley/common/amount.go
    • Line 79: warning: exported function NewAmountFromBytes should have comment or be unexported (golint)
    • Line 83: warning: comment on exported method Amount.BigInt should be of the form "BigInt ..." (golint)
    • Line 112: warning: comment on exported method Amount.Div should be of the form "Div ..." (golint)
    • Line 130: warning: exported method Amount.IsZero should have comment or be unexported (golint)
    • go-dappley/tool/block_generator/src/tool.go
    • Line 44: warning: exported type FileInfo should have comment or be unexported (golint)
    • Line 50: warning: exported type Key should have comment or be unexported (golint)
    • Line 55: warning: exported type Keys should have comment or be unexported (golint)
    • Line 59: warning: exported type GeneralConfigs should have comment or be unexported (golint)
    • Line 64: warning: exported function GenerateNewBlockChain should have comment or be unexported (golint)
    • Line 124: warning: exported function GetMaxHeightOfDifferentStart should have comment or be unexported (golint)
    • Line 290: warning: exported function CreateRandomTransactions should have comment or be unexported (golint)
    • Line 294: warning: exported function CreateAccount should have comment or be unexported (golint)
    • Line 312: warning: exported function LoadPrivateKey should have comment or be unexported (golint)
    • go-dappley/core/test_util.go
    • Line 34: warning: exported function GenerateMockBlock should have comment or be unexported (golint)
    • Line 48: warning: exported function MockTransaction should have comment or be unexported (golint)
    • Line 59: warning: exported function MockTxInputs should have comment or be unexported (golint)
    • Line 72: warning: exported function MockTxInputsWithPubkey should have comment or be unexported (golint)
    • Line 85: warning: exported function MockUtxos should have comment or be unexported (golint)
    • Line 100: warning: exported function MockTxOutputs should have comment or be unexported (golint)
    • Line 108: warning: exported function GenerateUtxoMockBlockWithoutInputs should have comment or be unexported (golint)
    • Line 121: warning: exported function GenerateUtxoMockBlockWithInputs should have comment or be unexported (golint)
    • Line 135: warning: exported function MockUtxoTransactionWithoutInputs should have comment or be unexported (golint)
    • Line 144: warning: exported function MockUtxoTransactionWithInputs should have comment or be unexported (golint)
    • Line 159: warning: exported function MockUtxoInputs should have comment or be unexported (golint)
    • Line 174: warning: exported function MockUtxoOutputsWithoutInputs should have comment or be unexported (golint)
    • Line 181: warning: exported function MockUtxoOutputsWithInputs should have comment or be unexported (golint)
    • go-dappley/network/connection_manager.go
    • Line 9: warning: exported const ConnectionTypeSeed should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type ConnectionManager should have comment or be unexported (golint)
    • Line 23: warning: exported function NewConnectionManager should have comment or be unexported (golint)
    • Line 39: warning: exported method ConnectionManager.GetMaxConnectionInCount should have comment or be unexported (golint)
    • Line 43: warning: exported method ConnectionManager.GetMaxConnectionOutCount should have comment or be unexported (golint)
    • Line 47: warning: exported method ConnectionManager.SetMaxConnectionInCount should have comment or be unexported (golint)
    • Line 51: warning: exported method ConnectionManager.SetMaxConnectionOutCount should have comment or be unexported (golint)
    • Line 55: warning: exported method ConnectionManager.GetNumOfConnectionsAllowed should have comment or be unexported (golint)
    • Line 73: warning: exported method ConnectionManager.IsConnectionFull should have comment or be unexported (golint)
    • Line 95: warning: exported method ConnectionManager.RemoveConnection should have comment or be unexported (golint)
    • Line 112: warning: exported method ConnectionManager.AddConnection should have comment or be unexported (golint)
    • go-dappley/core/account/account.go
    • Line 1: warning: package comment should be of the form "Package account ..." (golint)
    • Line 27: warning: exported type Account should have comment or be unexported (golint)
    • Line 33: warning: exported function NewAccount should have comment or be unexported (golint)
    • Line 41: warning: exported function NewAccountByKey should have comment or be unexported (golint)
    • Line 49: warning: exported function NewAccountByPrivateKey should have comment or be unexported (golint)
    • Line 54: warning: exported method Account.GetKeyPair should have comment or be unexported (golint)
    • Line 58: warning: exported method Account.GetAddress should have comment or be unexported (golint)
    • Line 62: warning: exported method Account.GetPubKeyHash should have comment or be unexported (golint)
    • Line 66: warning: exported method Account.ToProto should have comment or be unexported (golint)
    • Line 76: warning: exported method Account.IsValid should have comment or be unexported (golint)
    • Line 88: warning: exported method Account.FromProto should have comment or be unexported (golint)
    • go-dappley/core/scState/sc_state.go
    • Line 1: warning: don't use MixedCaps in package name; scState should be scstate (golint)
    • Line 14: warning: exported type ChangeLog should have comment or be unexported (golint)
    • Line 18: warning: exported type ScState should have comment or be unexported (golint)
    • Line 29: warning: exported function NewChangeLog should have comment or be unexported (golint)
    • Line 33: warning: exported function NewScState should have comment or be unexported (golint)
    • Line 37: warning: exported method ScState.GetEvents should have comment or be unexported (golint)
    • Line 39: warning: exported method ScState.RecordEvent should have comment or be unexported (golint)
    • Line 124: warning: exported function GetScStateKey should have comment or be unexported (golint)
    • Line 144: warning: exported method ScState.ToProto should have comment or be unexported (golint)
    • Line 153: warning: exported method ScState.FromProto should have comment or be unexported (golint)
    • Line 159: warning: exported method ChangeLog.ToProto should have comment or be unexported (golint)
    • Line 168: warning: exported method ChangeLog.FromProto should have comment or be unexported (golint)
    • Line 193: warning: exported method ScState.RevertState should have comment or be unexported (golint)
    • Line 303: warning: exported method ScState.DeepCopy should have comment or be unexported (golint)
    • Line 303: warning: receiver name scState should be consistent with previous receiver name ss for ScState (golint)
    • go-dappley/logic/transactionpool/transaction_pool.go
    • Line 42: warning: exported const NewTransactionTopic should have comment (or a comment on this block) or be unexported (golint)
    • Line 58: warning: exported type TransactionPool should have comment or be unexported (golint)
    • Line 69: warning: exported function NewTransactionPool should have comment or be unexported (golint)
    • Line 84: warning: exported method TransactionPool.GetTipOrder should have comment or be unexported (golint)
    • Line 86: warning: exported method TransactionPool.ListenToNetService should have comment or be unexported (golint)
    • Line 94: warning: exported method TransactionPool.GetSubscribedTopics should have comment or be unexported (golint)
    • Line 98: warning: exported method TransactionPool.GetTopicHandler should have comment or be unexported (golint)
    • Line 109: warning: exported method TransactionPool.DeepCopy should have comment or be unexported (golint)
    • Line 134: warning: exported method TransactionPool.SetSizeLimit should have comment or be unexported (golint)
    • Line 138: warning: exported method TransactionPool.GetSizeLimit should have comment or be unexported (golint)
    • Line 142: warning: exported method TransactionPool.GetTransactions should have comment or be unexported (golint)
    • Line 148: warning: exported method TransactionPool.GetNumOfTxInPool should have comment or be unexported (golint)
    • Line 155: warning: exported method TransactionPool.ResetPendingTransactions should have comment or be unexported (golint)
    • Line 162: warning: exported method TransactionPool.GetAllTransactions should have comment or be unexported (golint)
    • Line 351: warning: exported method TransactionPool.GetTransactionById should have comment or be unexported (golint)
    • Line 369: warning: should omit 2nd value from range; this loop is equivalent to `for key := range ...` (golint)
    • Line 469: warning: exported method TransactionPool.GetParentTxidsInTxPool should have comment or be unexported (golint)
    • Line 554: warning: exported method TransactionPool.BroadcastTx should have comment or be unexported (golint)
    • Line 558: warning: exported method TransactionPool.BroadcastTxHandler should have comment or be unexported (golint)
    • Line 587: warning: exported method TransactionPool.BroadcastBatchTxs should have comment or be unexported (golint)
    • Line 598: warning: exported method TransactionPool.BroadcastBatchTxsHandler should have comment or be unexported (golint)
    • go-dappley/storage/interfaces.go
    • Line 1: warning: package comment should be of the form "Package storage ..." (golint)
    • Line 26: warning: exported var ErrKeyInvalid should have comment or be unexported (golint)
    • Line 29: warning: exported type Storage should have comment or be unexported (golint)
    • Line 48: warning: exported type FileStorage should have comment or be unexported (golint)
    • go-dappley/tool/tool_util/next_block_ticker.go
    • Line 10: warning: exported type NextBlockTicker should have comment or be unexported (golint)
    • Line 15: warning: exported function NewNextBlockTicker should have comment or be unexported (golint)
    • Line 22: warning: exported method NextBlockTicker.GetTickerChan should have comment or be unexported (golint)
    • Line 26: warning: exported method NextBlockTicker.Run should have comment or be unexported (golint)
    • go-dappley/tool/transaction_generator/util/tx_insufficient_balance.go
    • Line 12: warning: exported type InsufficientBalanceTxSender should have comment or be unexported (golint)
    • Line 16: warning: exported function NewInsufficientBalanceTxSender should have comment or be unexported (golint)
    • Line 25: warning: exported method InsufficientBalanceTxSender.Generate should have comment or be unexported (golint)
    • Line 44: warning: exported method InsufficientBalanceTxSender.Send should have comment or be unexported (golint)
    • Line 53: warning: exported method InsufficientBalanceTxSender.Print should have comment or be unexported (golint)
    • go-dappley/network/stream_manager.go
    • Line 21: warning: exported var ErrConnectionsFull should have comment or be unexported (golint)
    • Line 25: warning: exported type OnStreamCbFunc should have comment or be unexported (golint)
    • Line 27: warning: exported type StreamManager should have comment or be unexported (golint)
    • Line 263: warning: comment on exported method StreamManager.OnStreamStop should be of the form "OnStreamStop ..." (golint)
    • go-dappley/core/account/pub_key_hash.go
    • Line 15: warning: exported type PubKeyHash should have comment or be unexported (golint)
    • Line 18: warning: exported var ErrIncorrectPublicKey should have comment or be unexported (golint)
    • Line 36: warning: exported method PubKeyHash.IsValid should have comment or be unexported (golint)
    • go-dappley/vm/blockchain.go
    • Line 41: warning: comment on exported function DeleteContractFunc should be of the form "DeleteContractFunc ..." (golint)
    • Line 123: warning: comment on exported function GetCurrBlockHeightFunc should be of the form "GetCurrBlockHeightFunc ..." (golint)
    • Line 137: warning: comment on exported function GetNodeAddressFunc should be of the form "GetNodeAddressFunc ..." (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign93%

IneffAssign detects ineffectual assignments in Go code.

    • go-dappley/intergationTest/integration_test.go
    • Line 177: warning: ineffectual assignment to err (ineffassign)
    • Line 179: warning: ineffectual assignment to err (ineffassign)
    • Line 198: warning: ineffectual assignment to err (ineffassign)
    • Line 244: warning: ineffectual assignment to err (ineffassign)
    • Line 460: warning: ineffectual assignment to blk1 (ineffassign)
    • Line 461: warning: ineffectual assignment to blk2 (ineffassign)
    • Line 600: warning: ineffectual assignment to err (ineffassign)
    • Line 1134: warning: ineffectual assignment to err (ineffassign)
    • Line 1213: warning: ineffectual assignment to err (ineffassign)
    • Line 1293: warning: ineffectual assignment to err (ineffassign)
    • go-dappley/rpc/grpc_host_integration_test.go
    • Line 406: warning: ineffectual assignment to err (ineffassign)
    • Line 409: warning: ineffectual assignment to err (ineffassign)
    • Line 453: warning: ineffectual assignment to err (ineffassign)
    • Line 455: warning: ineffectual assignment to err (ineffassign)
    • Line 524: warning: ineffectual assignment to err (ineffassign)
    • Line 530: warning: ineffectual assignment to err (ineffassign)
    • Line 568: warning: ineffectual assignment to err (ineffassign)
    • Line 574: warning: ineffectual assignment to err (ineffassign)
    • Line 627: warning: ineffectual assignment to err (ineffassign)
    • Line 662: warning: ineffectual assignment to err (ineffassign)
    • Line 664: warning: ineffectual assignment to err (ineffassign)
    • Line 675: warning: ineffectual assignment to err (ineffassign)
    • Line 701: warning: ineffectual assignment to err (ineffassign)
    • Line 746: warning: ineffectual assignment to err (ineffassign)
    • Line 755: warning: ineffectual assignment to err (ineffassign)
    • Line 764: warning: ineffectual assignment to err (ineffassign)
    • Line 782: warning: ineffectual assignment to err (ineffassign)
    • Line 783: warning: ineffectual assignment to err (ineffassign)
    • Line 785: warning: ineffectual assignment to err (ineffassign)
    • Line 839: warning: ineffectual assignment to err (ineffassign)
    • Line 841: warning: ineffectual assignment to err (ineffassign)
    • Line 850: warning: ineffectual assignment to err (ineffassign)
    • Line 853: warning: ineffectual assignment to err (ineffassign)
    • Line 862: warning: ineffectual assignment to err (ineffassign)
    • Line 879: warning: ineffectual assignment to err (ineffassign)
    • Line 888: warning: ineffectual assignment to err (ineffassign)
    • Line 898: warning: ineffectual assignment to err (ineffassign)
    • Line 924: warning: ineffectual assignment to err (ineffassign)
    • Line 925: warning: ineffectual assignment to err (ineffassign)
    • Line 927: warning: ineffectual assignment to err (ineffassign)
    • Line 928: warning: ineffectual assignment to err (ineffassign)
    • Line 929: warning: ineffectual assignment to err (ineffassign)
    • Line 1015: warning: ineffectual assignment to err (ineffassign)
    • Line 1021: warning: ineffectual assignment to err (ineffassign)
    • Line 1065: warning: ineffectual assignment to err (ineffassign)
    • Line 1126: warning: ineffectual assignment to err (ineffassign)
    • Line 1146: warning: ineffectual assignment to err (ineffassign)
    • Line 1339: warning: ineffectual assignment to err (ineffassign)
    • Line 1348: warning: ineffectual assignment to err (ineffassign)
    • Line 1492: warning: ineffectual assignment to err (ineffassign)
    • go-dappley/common/trie/trie_test.go
    • Line 449: warning: ineffectual assignment to err (ineffassign)
    • Line 506: warning: ineffectual assignment to err (ineffassign)
    • Line 507: warning: ineffectual assignment to err (ineffassign)
    • Line 508: warning: ineffectual assignment to err (ineffassign)
    • Line 509: warning: ineffectual assignment to err (ineffassign)
    • Line 510: warning: ineffectual assignment to err (ineffassign)
    • Line 511: warning: ineffectual assignment to err (ineffassign)
    • Line 514: warning: ineffectual assignment to err (ineffassign)
    • Line 515: warning: ineffectual assignment to err (ineffassign)
    • Line 516: warning: ineffectual assignment to err (ineffassign)
    • Line 517: warning: ineffectual assignment to err (ineffassign)
    • Line 522: warning: ineffectual assignment to err (ineffassign)
    • Line 524: warning: ineffectual assignment to err (ineffassign)
    • Line 527: warning: ineffectual assignment to err (ineffassign)

misspell99%

Misspell Finds commonly misspelled English words