Preparing report...

Report for github.com/MinterTeam/minter-go-node

A+    Excellent!    Found 153 issues across 294 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


golint57%

Golint is a linter for Go source code.

    • minter-go-node/coreV2/transaction/remove_liquidity.go
    • Line 14: warning: exported type RemoveLiquidity should have comment or be unexported (golint)
    • Line 22: warning: exported method RemoveLiquidity.Gas should have comment or be unexported (golint)
    • Line 25: warning: exported method RemoveLiquidity.TxType should have comment or be unexported (golint)
    • Line 55: warning: exported method RemoveLiquidity.CommissionData should have comment or be unexported (golint)
    • Line 59: warning: exported method RemoveLiquidity.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/state/validators/validators.go
    • Line 29: warning: exported const ValidatorMaxAbsentWindow should have comment (or a comment on this block) or be unexported (golint)
    • Line 75: warning: exported method Validators.SetImmutableTree should have comment or be unexported (golint)
    • Line 148: warning: exported method Validators.IsDirtyOrDirtyAccumReward should have comment or be unexported (golint)
    • Line 155: warning: exported method Validators.IsDirtyOrDirtyTotalStake should have comment or be unexported (golint)
    • minter-go-node/math/exp.go
    • Line 10: warning: comment on exported function ExpFloat should be of the form "ExpFloat ..." (golint)
    • Line 41: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • minter-go-node/coreV2/transaction/switch_candidate_status.go
    • Line 14: warning: exported type SetCandidateOnData should have comment or be unexported (golint)
    • Line 18: warning: exported method SetCandidateOnData.Gas should have comment or be unexported (golint)
    • Line 22: warning: exported method SetCandidateOnData.TxType should have comment or be unexported (golint)
    • Line 26: warning: exported method SetCandidateOnData.GetPubKey should have comment or be unexported (golint)
    • Line 39: warning: exported method SetCandidateOnData.CommissionData should have comment or be unexported (golint)
    • Line 43: warning: exported method SetCandidateOnData.Run should have comment or be unexported (golint)
    • Line 109: warning: exported type SetCandidateOffData should have comment or be unexported (golint)
    • Line 113: warning: exported method SetCandidateOffData.Gas should have comment or be unexported (golint)
    • Line 117: warning: exported method SetCandidateOffData.TxType should have comment or be unexported (golint)
    • Line 121: warning: exported method SetCandidateOffData.GetPubKey should have comment or be unexported (golint)
    • Line 134: warning: exported method SetCandidateOffData.CommissionData should have comment or be unexported (golint)
    • Line 138: warning: exported method SetCandidateOffData.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/state/checks/checks.go
    • Line 16: warning: exported type RChecks should have comment or be unexported (golint)
    • Line 21: warning: exported type Checks should have comment or be unexported (golint)
    • Line 29: warning: exported function NewChecks should have comment or be unexported (golint)
    • Line 45: warning: exported method Checks.SetImmutableTree should have comment or be unexported (golint)
    • Line 49: warning: exported method Checks.Commit should have comment or be unexported (golint)
    • Line 63: warning: exported method Checks.IsCheckUsed should have comment or be unexported (golint)
    • Line 76: warning: exported method Checks.UseCheck should have comment or be unexported (golint)
    • Line 80: warning: exported method Checks.UseCheckHash should have comment or be unexported (golint)
    • Line 87: warning: exported method Checks.Export should have comment or be unexported (golint)
    • minter-go-node/coreV2/state/commission/model.go
    • Line 10: warning: exported type Price should have comment or be unexported (golint)
    • Line 57: warning: exported method Price.Encode should have comment or be unexported (golint)
    • Line 64: warning: exported function Decode should have comment or be unexported (golint)
    • Line 73: warning: exported type Model should have comment or be unexported (golint)
    • minter-go-node/math/big.go
    • Line 29: warning: exported var MaxBig256 should have comment or be unexported (golint)
    • Line 81: warning: comment on exported function MustParseBig256 should be of the form "MustParseBig256 ..." (golint)
    • minter-go-node/coreV2/transaction/transaction.go
    • Line 25: warning: exported method TxType.UInt64 should have comment or be unexported (golint)
    • Line 30: warning: exported const TypeSend should have comment (or a comment on this block) or be unexported (golint)
    • Line 114: warning: exported type SigType should have comment or be unexported (golint)
    • Line 117: warning: exported const SigTypeSingle should have comment (or a comment on this block) or be unexported (golint)
    • Line 122: warning: exported var ErrInvalidSig should have comment or be unexported (golint)
    • Line 125: warning: exported type Transaction should have comment or be unexported (golint)
    • Line 143: warning: exported type Signature should have comment or be unexported (golint)
    • Line 149: warning: exported type SignatureMulti should have comment or be unexported (golint)
    • Line 154: warning: exported type RawData should have comment or be unexported (golint)
    • Line 186: warning: exported type Data should have comment or be unexported (golint)
    • Line 194: warning: exported method Transaction.Serialize should have comment or be unexported (golint)
    • Line 198: warning: exported method Transaction.Gas should have comment or be unexported (golint)
    • Line 212: warning: exported method Transaction.Price should have comment or be unexported (golint)
    • Line 220: warning: exported method Transaction.Commission should have comment or be unexported (golint)
    • Line 231: warning: exported method Transaction.Sign should have comment or be unexported (golint)
    • Line 243: warning: exported method Transaction.SetSignature should have comment or be unexported (golint)
    • Line 289: warning: exported method Transaction.MustSender should have comment or be unexported (golint)
    • Line 296: warning: exported method Transaction.Sender should have comment or be unexported (golint)
    • Line 317: warning: exported method Transaction.Hash should have comment or be unexported (golint)
    • Line 331: warning: exported method Transaction.SetDecodedData should have comment or be unexported (golint)
    • Line 335: warning: exported method Transaction.GetDecodedData should have comment or be unexported (golint)
    • Line 339: warning: exported method Transaction.SetMultisigAddress should have comment or be unexported (golint)
    • Line 355: warning: exported function RecoverPlain should have comment or be unexported (golint)
    • Line 393: warning: exported function CheckForCoinSupplyOverflow should have comment or be unexported (golint)
    • Line 408: warning: exported function CheckReserveUnderflow should have comment or be unexported (golint)
    • minter-go-node/crypto/crypto.go
    • Line 133: warning: exported function FromECDSAPub should have comment or be unexported (golint)
    • Line 175: warning: exported function GenerateKey should have comment or be unexported (golint)
    • Line 194: warning: exported function PubkeyToAddress should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/edit_coin_owner.go
    • Line 13: warning: exported type EditCoinOwnerData should have comment or be unexported (golint)
    • Line 18: warning: exported method EditCoinOwnerData.Gas should have comment or be unexported (golint)
    • Line 21: warning: exported method EditCoinOwnerData.TxType should have comment or be unexported (golint)
    • Line 61: warning: exported method EditCoinOwnerData.CommissionData should have comment or be unexported (golint)
    • Line 65: warning: exported method EditCoinOwnerData.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/events/store.go
    • Line 34: warning: exported type MockEvents should have comment or be unexported (golint)
    • Line 36: warning: exported method MockEvents.AddEvent should have comment or be unexported (golint)
    • Line 37: warning: exported method MockEvents.LoadEvents should have comment or be unexported (golint)
    • Line 38: warning: exported method MockEvents.CommitEvents should have comment or be unexported (golint)
    • Line 39: warning: exported method MockEvents.Close should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/decoder.go
    • Line 84: warning: exported function DecodeFromBytes should have comment or be unexported (golint)
    • Line 98: warning: exported function DecodeSig should have comment or be unexported (golint)
    • Line 121: warning: exported function DecodeFromBytesWithoutSig should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/delegate.go
    • Line 15: warning: exported type DelegateData should have comment or be unexported (golint)
    • Line 21: warning: exported method DelegateData.Gas should have comment or be unexported (golint)
    • Line 24: warning: exported method DelegateData.TxType should have comment or be unexported (golint)
    • Line 89: warning: exported method DelegateData.CommissionData should have comment or be unexported (golint)
    • Line 93: warning: exported method DelegateData.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/edit_candidate.go
    • Line 14: warning: exported type CandidateTx should have comment or be unexported (golint)
    • Line 18: warning: exported type EditCandidateData should have comment or be unexported (golint)
    • Line 25: warning: exported method EditCandidateData.Gas should have comment or be unexported (golint)
    • Line 28: warning: exported method EditCandidateData.TxType should have comment or be unexported (golint)
    • Line 32: warning: exported method EditCandidateData.GetPubKey should have comment or be unexported (golint)
    • Line 45: warning: exported method EditCandidateData.CommissionData should have comment or be unexported (golint)
    • Line 49: warning: exported method EditCandidateData.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/edit_candidate_commission.go
    • Line 15: warning: exported type EditCandidateCommission should have comment or be unexported (golint)
    • Line 20: warning: exported method EditCandidateCommission.Gas should have comment or be unexported (golint)
    • Line 23: warning: exported method EditCandidateCommission.TxType should have comment or be unexported (golint)
    • Line 27: warning: exported method EditCandidateCommission.GetPubKey should have comment or be unexported (golint)
    • Line 69: warning: exported method EditCandidateCommission.CommissionData should have comment or be unexported (golint)
    • Line 73: warning: exported method EditCandidateCommission.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/multisend.go
    • Line 18: warning: exported type MultisendData should have comment or be unexported (golint)
    • Line 22: warning: exported method MultisendData.Gas should have comment or be unexported (golint)
    • Line 25: warning: exported method MultisendData.TxType should have comment or be unexported (golint)
    • Line 45: warning: exported type MultisendDataItem should have comment or be unexported (golint)
    • Line 51: warning: exported method MultisendDataItem.MarshalJSON should have comment or be unexported (golint)
    • Line 67: warning: exported method MultisendData.CommissionData should have comment or be unexported (golint)
    • Line 71: warning: exported method MultisendData.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/state/accounts/accounts.go
    • Line 22: warning: exported type RAccounts should have comment or be unexported (golint)
    • Line 34: warning: exported type Accounts should have comment or be unexported (golint)
    • Line 44: warning: exported type Balance should have comment or be unexported (golint)
    • Line 49: warning: exported function NewAccounts should have comment or be unexported (golint)
    • Line 68: warning: exported method Accounts.SetImmutableTree should have comment or be unexported (golint)
    • Line 72: warning: exported method Accounts.Commit should have comment or be unexported (golint)
    • Line 145: warning: exported method Accounts.HasDirtyCoins should have comment or be unexported (golint)
    • Line 152: warning: exported method Accounts.IsNewOrDirty should have comment or be unexported (golint)
    • Line 174: warning: exported method Accounts.AddBalance should have comment or be unexported (golint)
    • Line 179: warning: exported method Accounts.GetBalance should have comment or be unexported (golint)
    • Line 209: warning: exported method Accounts.SubBalance should have comment or be unexported (golint)
    • Line 214: warning: exported method Accounts.SetBalance should have comment or be unexported (golint)
    • Line 222: warning: exported method Accounts.SetNonce should have comment or be unexported (golint)
    • Line 227: warning: exported method Accounts.ExistsMultisig should have comment or be unexported (golint)
    • Line 247: warning: exported method Accounts.CreateMultisig should have comment or be unexported (golint)
    • Line 273: warning: exported method Accounts.EditMultisig should have comment or be unexported (golint)
    • Line 349: warning: exported method Accounts.GetNonce should have comment or be unexported (golint)
    • Line 358: warning: exported method Accounts.GetBalances should have comment or be unexported (golint)
    • Line 383: warning: exported method Accounts.Export should have comment or be unexported (golint)
    • Line 436: warning: exported method Accounts.GetAccount should have comment or be unexported (golint)
    • minter-go-node/coreV2/state/accounts/model.go
    • Line 12: warning: exported type Model should have comment or be unexported (golint)
    • Line 30: warning: exported type Multisig should have comment or be unexported (golint)
    • Line 38: warning: exported function CreateMultisigAddress should have comment or be unexported (golint)
    • Line 53: warning: exported method Multisig.GetWeight should have comment or be unexported (golint)
    • Line 169: warning: exported method Model.IsMultisig should have comment or be unexported (golint)
    • Line 176: warning: exported method Model.Multisig should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/create_multisig.go
    • Line 17: warning: exported type CreateMultisigData should have comment or be unexported (golint)
    • Line 23: warning: exported method CreateMultisigData.Gas should have comment or be unexported (golint)
    • Line 27: warning: exported method CreateMultisigData.TxType should have comment or be unexported (golint)
    • Line 79: warning: exported method CreateMultisigData.CommissionData should have comment or be unexported (golint)
    • Line 83: warning: exported method CreateMultisigData.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/create_token.go
    • Line 15: warning: exported type CreateTokenData should have comment or be unexported (golint)
    • Line 24: warning: exported method CreateTokenData.Gas should have comment or be unexported (golint)
    • Line 27: warning: exported method CreateTokenData.TxType should have comment or be unexported (golint)
    • Line 88: warning: exported method CreateTokenData.CommissionData should have comment or be unexported (golint)
    • Line 106: warning: exported method CreateTokenData.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/redeem_check.go
    • Line 21: warning: exported type RedeemCheckData should have comment or be unexported (golint)
    • Line 26: warning: exported method RedeemCheckData.Gas should have comment or be unexported (golint)
    • Line 29: warning: exported method RedeemCheckData.TxType should have comment or be unexported (golint)
    • Line 58: warning: exported method RedeemCheckData.CommissionData should have comment or be unexported (golint)
    • Line 62: warning: exported method RedeemCheckData.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/state/checker/checker.go
    • Line 11: warning: exported type Checker should have comment or be unexported (golint)
    • Line 18: warning: exported function NewChecker should have comment or be unexported (golint)
    • Line 28: warning: exported method Checker.AddCoin should have comment or be unexported (golint)
    • Line 42: warning: exported method Checker.AddCoinVolume should have comment or be unexported (golint)
    • Line 80: warning: exported method Checker.Check should have comment or be unexported (golint)
    • minter-go-node/coreV2/state/commission/commission.go
    • Line 18: warning: exported type RCommission should have comment or be unexported (golint)
    • Line 28: warning: exported type Commission should have comment or be unexported (golint)
    • Line 40: warning: exported function NewCommission should have comment or be unexported (golint)
    • Line 63: warning: exported method Commission.SetImmutableTree should have comment or be unexported (golint)
    • Line 67: warning: exported method Commission.Export should have comment or be unexported (golint)
    • Line 182: warning: comment on exported method Commission.ExportV1 should be of the form "ExportV1 ..." (golint)
    • Line 279: warning: exported method Commission.Commit should have comment or be unexported (golint)
    • Line 314: warning: exported method Commission.GetVotes should have comment or be unexported (golint)
    • Line 318: warning: exported method Commission.GetCommissions should have comment or be unexported (golint)
    • Line 337: warning: exported method Commission.SetNewCommissions should have comment or be unexported (golint)
    • Line 416: warning: exported method Commission.IsVoteExists should have comment or be unexported (golint)
    • Line 433: warning: exported method Commission.AddVote should have comment or be unexported (golint)
    • Line 437: warning: exported method Commission.Delete should have comment or be unexported (golint)
    • minter-go-node/upgrades/grace.go
    • Line 3: warning: exported type Grace should have comment or be unexported (golint)
    • Line 7: warning: exported method Grace.IsUpgradeBlock should have comment or be unexported (golint)
    • Line 17: warning: exported method Grace.AddGracePeriods should have comment or be unexported (golint)
    • Line 21: warning: exported function NewGrace should have comment or be unexported (golint)
    • Line 25: warning: exported method Grace.IsGraceBlock should have comment or be unexported (golint)
    • Line 38: warning: exported type GracePeriod should have comment or be unexported (golint)
    • Line 48: warning: exported function NewGracePeriod should have comment or be unexported (golint)
    • minter-go-node/coreV2/state/bus/bus.go
    • Line 5: warning: exported type Bus should have comment or be unexported (golint)
    • Line 17: warning: exported function NewBus should have comment or be unexported (golint)
    • Line 21: warning: exported method Bus.SetCoins should have comment or be unexported (golint)
    • Line 25: warning: exported method Bus.Coins should have comment or be unexported (golint)
    • Line 29: warning: exported method Bus.SetApp should have comment or be unexported (golint)
    • Line 33: warning: exported method Bus.App should have comment or be unexported (golint)
    • Line 37: warning: exported method Bus.SetAccounts should have comment or be unexported (golint)
    • Line 41: warning: exported method Bus.Accounts should have comment or be unexported (golint)
    • Line 45: warning: exported method Bus.SetCandidates should have comment or be unexported (golint)
    • Line 49: warning: exported method Bus.Candidates should have comment or be unexported (golint)
    • Line 53: warning: exported method Bus.SetFrozenFunds should have comment or be unexported (golint)
    • Line 57: warning: exported method Bus.FrozenFunds should have comment or be unexported (golint)
    • Line 61: warning: exported method Bus.SetHaltBlocks should have comment or be unexported (golint)
    • Line 65: warning: exported method Bus.Halts should have comment or be unexported (golint)
    • Line 69: warning: exported method Bus.SetWaitList should have comment or be unexported (golint)
    • Line 73: warning: exported method Bus.WaitList should have comment or be unexported (golint)
    • Line 77: warning: exported method Bus.SetEvents should have comment or be unexported (golint)
    • Line 81: warning: exported method Bus.Events should have comment or be unexported (golint)
    • Line 85: warning: exported method Bus.SetChecker should have comment or be unexported (golint)
    • Line 89: warning: exported method Bus.Checker should have comment or be unexported (golint)
    • minter-go-node/coreV2/state/waitlist/waitlist.go
    • Line 19: warning: exported type RWaitList should have comment or be unexported (golint)
    • Line 29: warning: exported type WaitList should have comment or be unexported (golint)
    • Line 40: warning: exported function NewWaitList should have comment or be unexported (golint)
    • Line 64: warning: exported method WaitList.SetImmutableTree should have comment or be unexported (golint)
    • Line 68: warning: exported method WaitList.Export should have comment or be unexported (golint)
    • Line 92: warning: comment on exported method WaitList.ExportV1 should be of the form "ExportV1 ..." (golint)
    • Line 132: warning: exported method WaitList.Commit should have comment or be unexported (golint)
    • Line 161: warning: exported method WaitList.GetByAddress should have comment or be unexported (golint)
    • Line 165: warning: exported method WaitList.Get should have comment or be unexported (golint)
    • Line 185: warning: exported method WaitList.GetByAddressAndPubKey should have comment or be unexported (golint)
    • Line 206: warning: exported method WaitList.AddWaitList should have comment or be unexported (golint)
    • Line 220: warning: exported method WaitList.Delete should have comment or be unexported (golint)
    • minter-go-node/crypto/ecies/params.go
    • Line 49: warning: exported var DefaultCurve should have comment or be unexported (golint)
    • Line 54: warning: exported type ECIESParams should have comment or be unexported (golint)
    • Line 69: warning: exported var ECIES_AES128_SHA256 should have comment or be unexported (golint)
    • Line 109: warning: exported function AddParamsForCurve should have comment or be unexported (golint)
    • minter-go-node/crypto/bn256/google/bn256.go
    • Line 168: warning: comment on exported function RandomG2 should be of the form "RandomG2 ..." (golint)
    • Line 226: warning: receiver name n should be consistent with previous receiver name e for G2 (golint)
    • Line 309: warning: receiver name e should be consistent with previous receiver name g for GT (golint)
    • Line 318: warning: receiver name e should be consistent with previous receiver name g for GT (golint)
    • Line 327: warning: receiver name e should be consistent with previous receiver name g for GT (golint)
    • Line 336: warning: receiver name n should be consistent with previous receiver name g for GT (golint)
    • Line 374: warning: receiver name e should be consistent with previous receiver name g for GT (golint)
    • minter-go-node/coreV2/transaction/buy_swap_pool.go
    • Line 14: warning: exported type BuySwapPoolData should have comment or be unexported (golint)
    • Line 34: warning: exported method BuySwapPoolData.Gas should have comment or be unexported (golint)
    • Line 37: warning: exported method BuySwapPoolData.TxType should have comment or be unexported (golint)
    • Line 83: warning: exported method BuySwapPoolData.CommissionData should have comment or be unexported (golint)
    • Line 87: warning: exported method BuySwapPoolData.Run should have comment or be unexported (golint)
    • Line 237: warning: exported function CheckSwap should have comment or be unexported (golint)
    • minter-go-node/coreV2/state/halts/bus.go
    • Line 7: warning: exported type Bus should have comment or be unexported (golint)
    • Line 11: warning: exported method Bus.AddHaltBlock should have comment or be unexported (golint)
    • Line 15: warning: exported function NewBus should have comment or be unexported (golint)
    • minter-go-node/crypto/ecies/ecies.go
    • Line 45: warning: exported var ErrImport should have comment or be unexported (golint)
    • Line 61: warning: comment on exported method PublicKey.ExportECDSA should be of the form "ExportECDSA ..." (golint)
    • Line 66: warning: comment on exported function ImportECDSAPublic should be of the form "ImportECDSAPublic ..." (golint)
    • Line 82: warning: comment on exported method PrivateKey.ExportECDSA should be of the form "ExportECDSA ..." (golint)
    • Line 89: warning: comment on exported function ImportECDSA should be of the form "ImportECDSA ..." (golint)
    • Line 95: warning: comment on exported function GenerateKey should be of the form "GenerateKey ..." (golint)
    • Line 120: warning: comment on exported method PrivateKey.GenerateShared should be of the form "GenerateShared ..." (golint)
    • Line 141: warning: exported var ErrKeyDataTooLong should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/sell_all_coin.go
    • Line 14: warning: exported type SellAllCoinData should have comment or be unexported (golint)
    • Line 20: warning: exported method SellAllCoinData.Gas should have comment or be unexported (golint)
    • Line 23: warning: exported method SellAllCoinData.TxType should have comment or be unexported (golint)
    • Line 89: warning: exported method SellAllCoinData.CommissionData should have comment or be unexported (golint)
    • Line 93: warning: exported method SellAllCoinData.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/sell_all_swap_pool.go
    • Line 37: warning: exported type SellAllSwapPoolData should have comment or be unexported (golint)
    • Line 42: warning: exported method SellAllSwapPoolData.Gas should have comment or be unexported (golint)
    • Line 46: warning: exported method SellAllSwapPoolData.TxType should have comment or be unexported (golint)
    • Line 92: warning: exported method SellAllSwapPoolData.CommissionData should have comment or be unexported (golint)
    • Line 96: warning: exported method SellAllSwapPoolData.Run should have comment or be unexported (golint)
    • Line 229: warning: exported type DummyCoin should have comment or be unexported (golint)
    • Line 238: warning: exported function NewDummyCoin should have comment or be unexported (golint)
    • Line 242: warning: exported method DummyCoin.ID should have comment or be unexported (golint)
    • Line 246: warning: exported method DummyCoin.BaseOrHasReserve should have comment or be unexported (golint)
    • Line 250: warning: exported method DummyCoin.Volume should have comment or be unexported (golint)
    • Line 254: warning: exported method DummyCoin.Reserve should have comment or be unexported (golint)
    • Line 258: warning: exported method DummyCoin.Crr should have comment or be unexported (golint)
    • Line 262: warning: exported method DummyCoin.GetFullSymbol should have comment or be unexported (golint)
    • Line 265: warning: exported method DummyCoin.MaxSupply should have comment or be unexported (golint)
    • Line 269: warning: exported type CalculateCoin should have comment or be unexported (golint)
    • Line 287: warning: exported function CalculateCommission should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/create_coin.go
    • Line 38: warning: exported type CreateCoinData should have comment or be unexported (golint)
    • Line 47: warning: exported method CreateCoinData.Gas should have comment or be unexported (golint)
    • Line 50: warning: exported method CreateCoinData.TxType should have comment or be unexported (golint)
    • Line 128: warning: exported method CreateCoinData.CommissionData should have comment or be unexported (golint)
    • Line 146: warning: exported method CreateCoinData.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/state/app/app.go
    • Line 16: warning: exported type RApp should have comment or be unexported (golint)
    • Line 25: warning: exported type App should have comment or be unexported (golint)
    • Line 35: warning: exported function NewApp should have comment or be unexported (golint)
    • Line 54: warning: exported method App.SetImmutableTree should have comment or be unexported (golint)
    • Line 58: warning: exported method App.Commit should have comment or be unexported (golint)
    • Line 79: warning: exported method App.GetMaxGas should have comment or be unexported (golint)
    • Line 85: warning: exported method App.SetMaxGas should have comment or be unexported (golint)
    • Line 90: warning: exported method App.GetTotalSlashed should have comment or be unexported (golint)
    • Line 96: warning: exported method App.AddTotalSlashed should have comment or be unexported (golint)
    • Line 154: warning: exported method App.SetTotalSlashed should have comment or be unexported (golint)
    • Line 158: warning: exported method App.GetCoinsCount should have comment or be unexported (golint)
    • Line 162: warning: exported method App.GetNextCoinID should have comment or be unexported (golint)
    • Line 166: warning: exported method App.SetCoinsCount should have comment or be unexported (golint)
    • Line 170: warning: exported method App.ExportV1 should have comment or be unexported (golint)
    • Line 176: warning: exported method App.Export should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/add_liquidity.go
    • Line 14: warning: exported type AddLiquidityData should have comment or be unexported (golint)
    • Line 21: warning: exported method AddLiquidityData.Gas should have comment or be unexported (golint)
    • Line 25: warning: exported method AddLiquidityData.TxType should have comment or be unexported (golint)
    • Line 75: warning: exported method AddLiquidityData.CommissionData should have comment or be unexported (golint)
    • Line 79: warning: exported method AddLiquidityData.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/buy_coin.go
    • Line 14: warning: exported type BuyCoinData should have comment or be unexported (golint)
    • Line 21: warning: exported method BuyCoinData.Gas should have comment or be unexported (golint)
    • Line 24: warning: exported method BuyCoinData.TxType should have comment or be unexported (golint)
    • Line 33: warning: exported method BuyCoinData.CommissionData should have comment or be unexported (golint)
    • Line 102: warning: exported method BuyCoinData.Run should have comment or be unexported (golint)
    • Line 239: warning: exported function CalculateSaleAmountAndCheck should have comment or be unexported (golint)
    • Line 268: warning: exported function CalculateSaleReturnAndCheck should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/edit_multisig.go
    • Line 15: warning: exported type EditMultisigData should have comment or be unexported (golint)
    • Line 21: warning: exported method EditMultisigData.Gas should have comment or be unexported (golint)
    • Line 24: warning: exported method EditMultisigData.TxType should have comment or be unexported (golint)
    • Line 99: warning: exported method EditMultisigData.CommissionData should have comment or be unexported (golint)
    • Line 103: warning: exported method EditMultisigData.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/events/types.go
    • Line 20: warning: exported type Stake should have comment or be unexported (golint)
    • Line 28: warning: exported type Event should have comment or be unexported (golint)
    • Line 42: warning: exported type Events should have comment or be unexported (golint)
    • Line 44: warning: exported type Role should have comment or be unexported (golint)
    • Line 47: warning: exported const RoleValidator should have comment (or a comment on this block) or be unexported (golint)
    • Line 68: warning: exported function NewRole should have comment or be unexported (golint)
    • Line 107: warning: exported type RewardEvent should have comment or be unexported (golint)
    • Line 114: warning: exported method RewardEvent.Type should have comment or be unexported (golint)
    • Line 118: warning: exported method RewardEvent.AddressString should have comment or be unexported (golint)
    • Line 126: warning: exported method RewardEvent.ValidatorPubKeyString should have comment or be unexported (golint)
    • Line 168: warning: exported type SlashEvent should have comment or be unexported (golint)
    • Line 175: warning: exported method SlashEvent.Type should have comment or be unexported (golint)
    • Line 179: warning: exported method SlashEvent.AddressString should have comment or be unexported (golint)
    • Line 187: warning: exported method SlashEvent.ValidatorPubKeyString should have comment or be unexported (golint)
    • Line 221: warning: exported type JailEvent should have comment or be unexported (golint)
    • Line 226: warning: exported method JailEvent.Type should have comment or be unexported (golint)
    • Line 230: warning: exported method JailEvent.ValidatorPubKeyString should have comment or be unexported (golint)
    • Line 269: warning: exported type UnbondEvent should have comment or be unexported (golint)
    • Line 276: warning: exported method UnbondEvent.Type should have comment or be unexported (golint)
    • Line 280: warning: exported method UnbondEvent.AddressString should have comment or be unexported (golint)
    • Line 288: warning: exported method UnbondEvent.ValidatorPubKeyString should have comment or be unexported (golint)
    • Line 333: warning: exported type StakeKickEvent should have comment or be unexported (golint)
    • Line 340: warning: exported method StakeKickEvent.Type should have comment or be unexported (golint)
    • Line 344: warning: exported method StakeKickEvent.AddressString should have comment or be unexported (golint)
    • Line 352: warning: exported method StakeKickEvent.ValidatorPubKeyString should have comment or be unexported (golint)
    • Line 370: warning: exported type UpdateCommissionsEvent should have comment or be unexported (golint)
    • Line 416: warning: exported method UpdateCommissionsEvent.Type should have comment or be unexported (golint)
    • Line 420: warning: exported type UpdateNetworkEvent should have comment or be unexported (golint)
    • Line 424: warning: exported method UpdateNetworkEvent.Type should have comment or be unexported (golint)
    • minter-go-node/rlp/decode.go
    • Line 36: warning: error var EOL should have name of the form ErrFoo (golint)
    • Line 39: warning: exported var ErrExpectedString should have comment or be unexported (golint)
    • Line 510: warning: exported const Byte should have comment (or a comment on this block) or be unexported (golint)
    • minter-go-node/coreV2/transaction/sell_swap_pool.go
    • Line 13: warning: exported type SellSwapPoolData should have comment or be unexported (golint)
    • Line 19: warning: exported method SellSwapPoolData.TxType should have comment or be unexported (golint)
    • Line 23: warning: exported method SellSwapPoolData.Gas should have comment or be unexported (golint)
    • Line 70: warning: exported method SellSwapPoolData.CommissionData should have comment or be unexported (golint)
    • Line 74: warning: exported method SellSwapPoolData.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/send.go
    • Line 14: warning: exported type SendData should have comment or be unexported (golint)
    • Line 20: warning: exported method SendData.TxType should have comment or be unexported (golint)
    • Line 24: warning: exported method SendData.Gas should have comment or be unexported (golint)
    • Line 28: warning: exported type Coin should have comment or be unexported (golint)
    • Line 50: warning: exported method SendData.CommissionData should have comment or be unexported (golint)
    • Line 54: warning: exported method SendData.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/appdb/appdb.go
    • Line 104: warning: comment on exported method AppDB.SaveStartHeight should be of the form "SaveStartHeight ..." (golint)
    • Line 178: warning: exported const BlocksTimeCount should have comment or be unexported (golint)
    • Line 214: warning: exported method AppDB.AddBlocksTime should have comment or be unexported (golint)
    • Line 235: warning: exported method AppDB.SaveBlocksTime should have comment or be unexported (golint)
    • Line 246: warning: exported type Version should have comment or be unexported (golint)
    • Line 251: warning: exported method AppDB.GetVersionName should have comment or be unexported (golint)
    • Line 263: warning: exported method AppDB.GetVersionHeight should have comment or be unexported (golint)
    • Line 275: warning: exported method AppDB.GetVersions should have comment or be unexported (golint)
    • Line 293: warning: exported method AppDB.AddVersion should have comment or be unexported (golint)
    • Line 305: warning: exported method AppDB.SaveVersions should have comment or be unexported (golint)
    • minter-go-node/coreV2/state/validators/model.go
    • Line 11: warning: exported type Validator should have comment or be unexported (golint)
    • Line 29: warning: exported function NewValidator should have comment or be unexported (golint)
    • Line 44: warning: exported method Validator.IsToDrop should have comment or be unexported (golint)
    • Line 51: warning: exported method Validator.SetAccumReward should have comment or be unexported (golint)
    • Line 66: warning: exported method Validator.GetAccumReward should have comment or be unexported (golint)
    • Line 101: warning: exported method Validator.AddAccumReward should have comment or be unexported (golint)
    • Line 109: warning: exported method Validator.CountAbsentTimes should have comment or be unexported (golint)
    • Line 137: warning: exported method Validator.SetPresent should have comment or be unexported (golint)
    • Line 149: warning: exported method Validator.SetAbsent should have comment or be unexported (golint)
    • minter-go-node/coreV2/state/app/bus.go
    • Line 5: warning: exported type Bus should have comment or be unexported (golint)
    • Line 9: warning: exported method Bus.AddTotalSlashed should have comment or be unexported (golint)
    • Line 13: warning: exported function NewBus should have comment or be unexported (golint)
    • minter-go-node/coreV2/types/bytes.go
    • Line 17: warning: package comment should be of the form "Package types ..." (golint)
    • Line 25: warning: exported function ToHex should have comment or be unexported (golint)
    • Line 33: warning: exported function FromHex should have comment or be unexported (golint)
    • Line 45: warning: comment on exported function CopyBytes should be of the form "CopyBytes ..." (golint)
    • Line 78: warning: exported function Bytes2Hex should have comment or be unexported (golint)
    • Line 82: warning: exported function Hex2Bytes should have comment or be unexported (golint)
    • Line 88: warning: exported function Hex2BytesFixed should have comment or be unexported (golint)
    • Line 96: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 103: warning: exported function RightPadBytes should have comment or be unexported (golint)
    • Line 114: warning: exported function LeftPadBytes should have comment or be unexported (golint)
    • minter-go-node/coreV2/state/state.go
    • Line 29: warning: exported type Interface should have comment or be unexported (golint)
    • Line 33: warning: exported type CheckState should have comment or be unexported (golint)
    • Line 37: warning: exported function NewCheckState should have comment or be unexported (golint)
    • Line 41: warning: don't use underscores in Go names; method isValue_State should be isValueState (golint)
    • Line 43: warning: exported method CheckState.Export should have comment or be unexported (golint)
    • Line 61: warning: exported method CheckState.Updates should have comment or be unexported (golint)
    • Line 64: warning: exported method CheckState.Validators should have comment or be unexported (golint)
    • Line 67: warning: exported method CheckState.App should have comment or be unexported (golint)
    • Line 70: warning: exported method CheckState.Candidates should have comment or be unexported (golint)
    • Line 73: warning: exported method CheckState.FrozenFunds should have comment or be unexported (golint)
    • Line 76: warning: exported method CheckState.InitialHeight should have comment or be unexported (golint)
    • Line 79: warning: exported method CheckState.Halts should have comment or be unexported (golint)
    • Line 82: warning: exported method CheckState.Accounts should have comment or be unexported (golint)
    • Line 85: warning: exported method CheckState.Coins should have comment or be unexported (golint)
    • Line 88: warning: exported method CheckState.Checks should have comment or be unexported (golint)
    • Line 91: warning: exported method CheckState.WaitList should have comment or be unexported (golint)
    • Line 95: warning: exported method CheckState.Swap should have comment or be unexported (golint)
    • Line 99: warning: exported method CheckState.Commission should have comment or be unexported (golint)
    • Line 103: warning: exported type State should have comment or be unexported (golint)
    • Line 129: warning: don't use underscores in Go names; method isValue_State should be isValueState (golint)
    • Line 131: warning: exported function NewState should have comment or be unexported (golint)
    • Line 152: warning: exported function NewCheckStateAtHeight should have comment or be unexported (golint)
    • Line 160: warning: exported method State.Tree should have comment or be unexported (golint)
    • Line 164: warning: exported method State.Lock should have comment or be unexported (golint)
    • Line 168: warning: exported method State.Unlock should have comment or be unexported (golint)
    • Line 172: warning: exported method State.RLock should have comment or be unexported (golint)
    • Line 176: warning: exported method State.RUnlock should have comment or be unexported (golint)
    • Line 180: warning: exported method State.Check should have comment or be unexported (golint)
    • Line 184: warning: exported method State.Commit should have comment or be unexported (golint)
    • Line 219: warning: exported method State.Import should have comment or be unexported (golint)
    • Line 359: warning: exported method State.Export should have comment or be unexported (golint)
    • Line 368: warning: comment on exported method State.ReloadFromDiskAndExport should be of the form "ReloadFromDiskAndExport ..." (golint)
    • minter-go-node/coreV2/transaction/create_swap_pool.go
    • Line 14: warning: exported type CreateSwapPoolData should have comment or be unexported (golint)
    • Line 21: warning: exported method CreateSwapPoolData.Gas should have comment or be unexported (golint)
    • Line 24: warning: exported method CreateSwapPoolData.TxType should have comment or be unexported (golint)
    • Line 74: warning: exported method CreateSwapPoolData.CommissionData should have comment or be unexported (golint)
    • Line 78: warning: exported method CreateSwapPoolData.Run should have comment or be unexported (golint)
    • Line 194: warning: exported function LiquidityCoinSymbol should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/declare_candidacy.go
    • Line 18: warning: exported type DeclareCandidacyData should have comment or be unexported (golint)
    • Line 26: warning: exported method DeclareCandidacyData.Gas should have comment or be unexported (golint)
    • Line 29: warning: exported method DeclareCandidacyData.TxType should have comment or be unexported (golint)
    • Line 86: warning: exported method DeclareCandidacyData.CommissionData should have comment or be unexported (golint)
    • Line 90: warning: exported method DeclareCandidacyData.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/minter/minter.go
    • Line 24: warning: exported method Blockchain.RpcClient should have comment or be unexported (golint)
    • Line 28: warning: exported method Blockchain.RewardCounter should have comment or be unexported (golint)
    • Line 32: warning: exported method Blockchain.InitialHeight should have comment or be unexported (golint)
    • Line 159: warning: exported method Blockchain.UpdateVersions should have comment or be unexported (golint)
    • Line 402: warning: exported function GetDbOpts should have comment or be unexported (golint)
    • minter-go-node/coreV2/state/halts/halts.go
    • Line 17: warning: exported type RHalts should have comment or be unexported (golint)
    • Line 23: warning: exported type HaltBlocks should have comment or be unexported (golint)
    • Line 33: warning: exported function NewHalts should have comment or be unexported (golint)
    • Line 58: warning: exported method HaltBlocks.SetImmutableTree should have comment or be unexported (golint)
    • Line 62: warning: exported method HaltBlocks.Commit should have comment or be unexported (golint)
    • Line 87: warning: exported method HaltBlocks.GetHaltBlocks should have comment or be unexported (golint)
    • Line 91: warning: exported method HaltBlocks.GetOrNew should have comment or be unexported (golint)
    • Line 149: warning: exported method HaltBlocks.IsHaltExists should have comment or be unexported (golint)
    • Line 167: warning: exported method HaltBlocks.AddHaltBlock should have comment or be unexported (golint)
    • Line 171: warning: exported method HaltBlocks.Delete should have comment or be unexported (golint)
    • Line 180: warning: exported method HaltBlocks.Export should have comment or be unexported (golint)
    • minter-go-node/coreV2/state/coins/bus.go
    • Line 9: warning: exported type Bus should have comment or be unexported (golint)
    • Line 13: warning: exported function NewBus should have comment or be unexported (golint)
    • Line 17: warning: exported method Bus.GetCoin should have comment or be unexported (golint)
    • Line 34: warning: exported method Bus.SubCoinVolume should have comment or be unexported (golint)
    • Line 38: warning: exported method Bus.SubCoinReserve should have comment or be unexported (golint)
    • minter-go-node/coreV2/state/swap/swap.go
    • Line 19: warning: exported var Bound should have comment or be unexported (golint)
    • Line 24: warning: exported type EditableChecker should have comment or be unexported (golint)
    • Line 40: warning: exported type RSwap should have comment or be unexported (golint)
    • Line 52: warning: exported type Swap should have comment or be unexported (golint)
    • Line 80: warning: exported function New should have comment or be unexported (golint)
    • Line 90: warning: comment on exported method Swap.ExportV1 should be of the form "ExportV1 ..." (golint)
    • Line 102: warning: exported method Swap.Export should have comment or be unexported (golint)
    • Line 137: warning: exported method Swap.Import should have comment or be unexported (golint)
    • Line 180: warning: exported method Swap.CheckSwap should have comment or be unexported (golint)
    • Line 183: warning: exported method Pair.CheckSwap should have comment or be unexported (golint)
    • Line 186: warning: exported method Pair.Exists should have comment or be unexported (golint)
    • Line 189: warning: exported method Pair.AddLastSwapStep should have comment or be unexported (golint)
    • Line 199: warning: exported method Pair.Reverse should have comment or be unexported (golint)
    • Line 217: warning: exported method Swap.Commit should have comment or be unexported (golint)
    • Line 246: warning: exported method Swap.SetImmutableTree should have comment or be unexported (golint)
    • Line 250: warning: exported method Swap.SwapPoolExist should have comment or be unexported (golint)
    • Line 267: warning: exported method Swap.SwapPool should have comment or be unexported (golint)
    • Line 276: warning: exported method Swap.GetSwapper should have comment or be unexported (golint)
    • Line 280: warning: exported method Swap.Pair should have comment or be unexported (golint)
    • Line 312: warning: exported method Swap.PairCalculateSellForBuy should have comment or be unexported (golint)
    • Line 324: warning: exported method Swap.PairCalculateBuyForSell should have comment or be unexported (golint)
    • Line 336: warning: exported method Swap.PairMint should have comment or be unexported (golint)
    • Line 351: warning: exported method Swap.PairCreate should have comment or be unexported (golint)
    • Line 368: warning: exported method Swap.PairBurn should have comment or be unexported (golint)
    • Line 383: warning: exported method Swap.PairSell should have comment or be unexported (golint)
    • Line 395: warning: exported method Swap.PairBuy should have comment or be unexported (golint)
    • Line 427: warning: exported var ErrorIdenticalAddresses should have comment or be unexported (golint)
    • Line 430: warning: exported method Swap.ReturnPair should have comment or be unexported (golint)
    • Line 506: warning: exported var ErrorInsufficientLiquidityMinted should have comment or be unexported (golint)
    • Line 509: warning: exported type Balance should have comment or be unexported (golint)
    • Line 514: warning: exported type Limit should have comment or be unexported (golint)
    • Line 521: warning: exported method Limit.Rate should have comment or be unexported (golint)
    • Line 530: warning: exported type Pair should have comment or be unexported (golint)
    • Line 536: warning: exported method Pair.BuyLimit should have comment or be unexported (golint)
    • Line 543: warning: exported method Pair.SellLimit should have comment or be unexported (golint)
    • Line 550: warning: exported method Pair.GetID should have comment or be unexported (golint)
    • Line 557: warning: exported method Pair.CalculateAddLiquidity should have comment or be unexported (golint)
    • Line 562: warning: exported method Pair.Mint should have comment or be unexported (golint)
    • Line 571: warning: exported method Pair.Create should have comment or be unexported (golint)
    • Line 581: warning: exported method Pair.CheckMint should have comment or be unexported (golint)
    • Line 594: warning: exported method Pair.CheckCreate should have comment or be unexported (golint)
    • Line 605: warning: exported var ErrorInsufficientLiquidityBurned should have comment or be unexported (golint)
    • Line 610: warning: exported method Pair.Burn should have comment or be unexported (golint)
    • Line 622: warning: exported method Pair.CheckBurn should have comment or be unexported (golint)
    • Line 636: warning: exported var ErrorK should have comment or be unexported (golint)
    • Line 642: warning: comment on exported method Pair.CalculateBuyForSell should be of the form "CalculateBuyForSell ..." (golint)
    • Line 655: warning: comment on exported method Pair.CalculateSellForBuy should be of the form "CalculateSellForBuy ..." (golint)
    • Line 675: warning: exported method Pair.Swap should have comment or be unexported (golint)
    • Line 740: warning: exported method Pair.Amounts should have comment or be unexported (golint)
    • minter-go-node/coreV2/types/appstate.go
    • Line 10: warning: exported type AppState should have comment or be unexported (golint)
    • Line 29: warning: exported method AppState.Verify should have comment or be unexported (golint)
    • Line 267: warning: exported type Validator should have comment or be unexported (golint)
    • Line 274: warning: exported type Candidate should have comment or be unexported (golint)
    • Line 289: warning: exported type Stake should have comment or be unexported (golint)
    • Line 296: warning: exported type Waitlist should have comment or be unexported (golint)
    • Line 303: warning: exported type Pool should have comment or be unexported (golint)
    • Line 311: warning: exported type Coin should have comment or be unexported (golint)
    • Line 325: warning: exported type FrozenFund should have comment or be unexported (golint)
    • Line 335: warning: exported type UsedCheck should have comment or be unexported (golint)
    • Line 337: warning: exported type Account should have comment or be unexported (golint)
    • Line 344: warning: exported type Balance should have comment or be unexported (golint)
    • Line 349: warning: exported type Multisig should have comment or be unexported (golint)
    • Line 355: warning: exported type HaltBlock should have comment or be unexported (golint)
    • Line 359: warning: exported type CommissionVote should have comment or be unexported (golint)
    • Line 365: warning: exported type UpdateVote should have comment or be unexported (golint)
    • Line 371: warning: exported type Commission should have comment or be unexported (golint)
    • minter-go-node/crypto/bn256/bn256.go
    • Line 156: warning: comment on exported function RandomG2 should be of the form "RandomG2 ..." (golint)
    • Line 284: warning: receiver name e should be consistent with previous receiver name g for GT (golint)
    • Line 293: warning: receiver name e should be consistent with previous receiver name g for GT (golint)
    • Line 302: warning: receiver name e should be consistent with previous receiver name g for GT (golint)
    • Line 311: warning: receiver name n should be consistent with previous receiver name g for GT (golint)
    • Line 349: warning: receiver name e should be consistent with previous receiver name g for GT (golint)
    • minter-go-node/coreV2/types/constants.go
    • Line 15: warning: exported function GetUnbondPeriod should have comment or be unexported (golint)
    • Line 19: warning: exported function GetUnbondPeriodWithChain should have comment or be unexported (golint)
    • Line 28: warning: exported function GetJailPeriod should have comment or be unexported (golint)
    • Line 32: warning: exported function GetJailPeriodWithChain should have comment or be unexported (golint)
    • minter-go-node/crypto/bn256/cloudflare/bn256.go
    • Line 54: warning: receiver name e should be consistent with previous receiver name g for G1 (golint)
    • Line 63: warning: receiver name e should be consistent with previous receiver name g for G1 (golint)
    • Line 72: warning: receiver name e should be consistent with previous receiver name g for G1 (golint)
    • Line 81: warning: receiver name e should be consistent with previous receiver name g for G1 (golint)
    • Line 90: warning: receiver name e should be consistent with previous receiver name g for G1 (golint)
    • Line 99: warning: receiver name e should be consistent with previous receiver name g for G1 (golint)
    • Line 120: warning: receiver name e should be consistent with previous receiver name g for G1 (golint)
    • Line 338: warning: receiver name e should be consistent with previous receiver name g for GT (golint)
    • Line 347: warning: receiver name e should be consistent with previous receiver name g for GT (golint)
    • Line 356: warning: receiver name e should be consistent with previous receiver name g for GT (golint)
    • Line 365: warning: receiver name e should be consistent with previous receiver name g for GT (golint)
    • Line 374: warning: receiver name e should be consistent with previous receiver name g for GT (golint)
    • Line 381: warning: receiver name e should be consistent with previous receiver name g for GT (golint)
    • Line 418: warning: receiver name e should be consistent with previous receiver name g for GT (golint)
    • minter-go-node/rlp/encode.go
    • Line 28: warning: comment on exported var EmptyString should be of the form "EmptyString ..." (golint)
    • Line 31: warning: exported var EmptyList should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/edit_candidate_public_key.go
    • Line 14: warning: exported type EditCandidatePublicKeyData should have comment or be unexported (golint)
    • Line 19: warning: exported method EditCandidatePublicKeyData.Gas should have comment or be unexported (golint)
    • Line 22: warning: exported method EditCandidatePublicKeyData.TxType should have comment or be unexported (golint)
    • Line 26: warning: exported method EditCandidatePublicKeyData.GetPubKey should have comment or be unexported (golint)
    • Line 39: warning: exported method EditCandidatePublicKeyData.CommissionData should have comment or be unexported (golint)
    • Line 43: warning: exported method EditCandidatePublicKeyData.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/state/update/update.go
    • Line 16: warning: exported type RUpdate should have comment or be unexported (golint)
    • Line 25: warning: exported type Update should have comment or be unexported (golint)
    • Line 34: warning: exported function New should have comment or be unexported (golint)
    • Line 57: warning: exported method Update.SetImmutableTree should have comment or be unexported (golint)
    • Line 61: warning: exported method Update.Export should have comment or be unexported (golint)
    • Line 85: warning: comment on exported method Update.ExportV1 should be of the form "ExportV1 ..." (golint)
    • Line 90: warning: exported method Update.Commit should have comment or be unexported (golint)
    • Line 121: warning: exported method Update.GetVotes should have comment or be unexported (golint)
    • Line 189: warning: exported method Update.IsVoteExists should have comment or be unexported (golint)
    • Line 206: warning: exported method Update.AddVote should have comment or be unexported (golint)
    • Line 210: warning: exported method Update.Delete should have comment or be unexported (golint)
    • minter-go-node/coreV2/state/candidates/candidates.go
    • Line 115: warning: exported method Candidates.SetImmutableTree should have comment or be unexported (golint)
    • Line 122: warning: exported method Candidates.IsChangedPublicKeys should have comment or be unexported (golint)
    • Line 129: warning: exported method Candidates.ResetIsChangedPublicKeys should have comment or be unexported (golint)
    • Line 136: warning: exported method Candidates.IsCandidateJailed should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/burn_token.go
    • Line 13: warning: exported type BurnTokenData should have comment or be unexported (golint)
    • Line 18: warning: exported method BurnTokenData.Gas should have comment or be unexported (golint)
    • Line 21: warning: exported method BurnTokenData.TxType should have comment or be unexported (golint)
    • Line 73: warning: exported method BurnTokenData.CommissionData should have comment or be unexported (golint)
    • Line 77: warning: exported method BurnTokenData.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/recreate_coin.go
    • Line 15: warning: exported type RecreateCoinData should have comment or be unexported (golint)
    • Line 24: warning: exported method RecreateCoinData.Gas should have comment or be unexported (golint)
    • Line 27: warning: exported method RecreateCoinData.TxType should have comment or be unexported (golint)
    • Line 114: warning: exported method RecreateCoinData.CommissionData should have comment or be unexported (golint)
    • Line 118: warning: exported method RecreateCoinData.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/state/bus/coins.go
    • Line 9: warning: exported type Coins should have comment or be unexported (golint)
    • Line 18: warning: exported type Coin should have comment or be unexported (golint)
    • Line 28: warning: exported method Coin.GetFullSymbol should have comment or be unexported (golint)
    • minter-go-node/coreV2/state/coins/deprecated.go
    • Line 16: warning: exported function MaxCoinSupply should have comment or be unexported (golint)
    • Line 39: warning: comment on exported method Coins.ExportV1 should be of the form "ExportV1 ..." (golint)
    • Line 173: warning: comment on exported method Bus.GetCoinV1 should be of the form "GetCoinV1 ..." (golint)
    • Line 191: warning: comment on exported method Coins.GetCoinV1 should be of the form "GetCoinV1 ..." (golint)
    • minter-go-node/coreV2/state/coins/model.go
    • Line 13: warning: exported type Model should have comment or be unexported (golint)
    • Line 34: warning: exported method Model.Name should have comment or be unexported (golint)
    • Line 41: warning: exported method Model.Symbol should have comment or be unexported (golint)
    • Line 48: warning: exported method Model.ID should have comment or be unexported (golint)
    • Line 55: warning: exported method Model.Crr should have comment or be unexported (golint)
    • Line 62: warning: exported method Model.Volume should have comment or be unexported (golint)
    • Line 77: warning: exported method Model.Reserve should have comment or be unexported (golint)
    • Line 88: warning: exported method Model.BaseOrHasReserve should have comment or be unexported (golint)
    • Line 92: warning: exported method Model.IsToken should have comment or be unexported (golint)
    • Line 96: warning: exported method Model.Version should have comment or be unexported (golint)
    • Line 103: warning: exported method Model.IsMintable should have comment or be unexported (golint)
    • Line 110: warning: exported method Model.IsBurnable should have comment or be unexported (golint)
    • Line 117: warning: exported method Model.SubVolume should have comment or be unexported (golint)
    • Line 129: warning: exported method Model.AddVolume should have comment or be unexported (golint)
    • Line 141: warning: exported method Model.SubReserve should have comment or be unexported (golint)
    • Line 153: warning: exported method Model.AddReserve should have comment or be unexported (golint)
    • Line 165: warning: exported method Model.Mint should have comment or be unexported (golint)
    • Line 177: warning: exported method Model.Burn should have comment or be unexported (golint)
    • Line 189: warning: exported method Model.SetVolume should have comment or be unexported (golint)
    • Line 201: warning: exported method Model.SetReserve should have comment or be unexported (golint)
    • Line 213: warning: exported method Model.CheckReserveUnderflow should have comment or be unexported (golint)
    • Line 224: warning: exported method Model.IsInfoDirty should have comment or be unexported (golint)
    • Line 238: warning: exported method Model.IsSymbolInfoDirty should have comment or be unexported (golint)
    • Line 252: warning: exported method Model.IsDirty should have comment or be unexported (golint)
    • Line 259: warning: exported method Model.IsCreated should have comment or be unexported (golint)
    • Line 266: warning: exported method Model.MaxSupply should have comment or be unexported (golint)
    • Line 273: warning: exported method Model.GetFullSymbol should have comment or be unexported (golint)
    • Line 281: warning: exported type Info should have comment or be unexported (golint)
    • Line 289: warning: exported type SymbolInfo should have comment or be unexported (golint)
    • Line 305: warning: exported method SymbolInfo.OwnerAddress should have comment or be unexported (golint)
    • minter-go-node/coreV2/state/coins/coins.go
    • Line 21: warning: exported const BaseVersion should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported type MaxCoinVolume should have comment or be unexported (golint)
    • Line 29: warning: exported type RCoins should have comment or be unexported (golint)
    • Line 93: warning: exported function NewCoins should have comment or be unexported (golint)
    • Line 119: warning: exported method Coins.SetImmutableTree should have comment or be unexported (golint)
    • Line 123: warning: exported method Coins.Commit should have comment or be unexported (golint)
    • Line 191: warning: exported method Coins.GetCoin should have comment or be unexported (golint)
    • Line 195: warning: exported method Coins.GetSymbolInfo should have comment or be unexported (golint)
    • Line 199: warning: exported method Coins.Exists should have comment or be unexported (golint)
    • Line 207: warning: exported method Coins.ExistsBySymbol should have comment or be unexported (golint)
    • Line 215: warning: exported method Coins.GetCoinBySymbol should have comment or be unexported (golint)
    • Line 235: warning: exported method Coins.SubVolume should have comment or be unexported (golint)
    • Line 244: warning: exported method Coins.AddVolume should have comment or be unexported (golint)
    • Line 253: warning: exported method Coins.SubReserve should have comment or be unexported (golint)
    • Line 262: warning: exported method Coins.AddReserve should have comment or be unexported (golint)
    • Line 271: warning: exported method Coins.Create should have comment or be unexported (golint)
    • Line 310: warning: exported method Coins.ImportCoin should have comment or be unexported (golint)
    • Line 349: warning: exported method Coins.CreateToken should have comment or be unexported (golint)
    • Line 387: warning: exported method Coins.ImportToken should have comment or be unexported (golint)
    • Line 427: warning: exported method Coins.Recreate should have comment or be unexported (golint)
    • Line 457: warning: exported method Coins.RecreateToken should have comment or be unexported (golint)
    • Line 485: warning: exported method Coins.ChangeOwner should have comment or be unexported (golint)
    • Line 613: warning: exported method Coins.Export should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/set_halt_block.go
    • Line 17: warning: exported type SetHaltBlockData should have comment or be unexported (golint)
    • Line 22: warning: exported method SetHaltBlockData.Gas should have comment or be unexported (golint)
    • Line 26: warning: exported method SetHaltBlockData.TxType should have comment or be unexported (golint)
    • Line 30: warning: exported method SetHaltBlockData.GetPubKey should have comment or be unexported (golint)
    • Line 59: warning: exported method SetHaltBlockData.CommissionData should have comment or be unexported (golint)
    • Line 63: warning: exported method SetHaltBlockData.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/update_network.go
    • Line 16: warning: exported type VoteUpdateData should have comment or be unexported (golint)
    • Line 22: warning: exported method VoteUpdateData.Gas should have comment or be unexported (golint)
    • Line 25: warning: exported method VoteUpdateData.TxType should have comment or be unexported (golint)
    • Line 29: warning: exported method VoteUpdateData.GetPubKey should have comment or be unexported (golint)
    • Line 66: warning: exported method VoteUpdateData.CommissionData should have comment or be unexported (golint)
    • Line 70: warning: exported method VoteUpdateData.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/statistics/statistics.go
    • Line 20: warning: exported method Data.Statistic should have comment or be unexported (golint)
    • Line 72: warning: exported type Data should have comment or be unexported (golint)
    • Line 96: warning: exported type StartRequest should have comment or be unexported (golint)
    • Line 101: warning: exported type EndRequest should have comment or be unexported (golint)
    • Line 106: warning: exported type LastBlockInfo should have comment or be unexported (golint)
    • Line 130: warning: exported function New should have comment or be unexported (golint)
    • Line 178: warning: exported method Data.PushStartBlock should have comment or be unexported (golint)
    • Line 221: warning: exported method Data.PushEndBlock should have comment or be unexported (golint)
    • Line 303: warning: exported method Data.SetApiTime should have comment or be unexported (golint)
    • Line 314: warning: exported method Data.SetPeerTime should have comment or be unexported (golint)
    • Line 325: warning: exported method Data.GetAverageBlockProcessingTime should have comment or be unexported (golint)
    • Line 343: warning: exported method Data.GetTimePerBlock should have comment or be unexported (golint)
    • Line 354: warning: exported method Data.GetLastBlockInfo should have comment or be unexported (golint)
    • Line 365: warning: exported method Data.ResetPeersPing should have comment or be unexported (golint)
    • minter-go-node/coreV2/state/frozenfunds/frozen_funds.go
    • Line 20: warning: exported type RFrozenFunds should have comment or be unexported (golint)
    • Line 25: warning: exported type FrozenFunds should have comment or be unexported (golint)
    • Line 35: warning: exported function NewFrozenFunds should have comment or be unexported (golint)
    • Line 54: warning: exported method FrozenFunds.SetImmutableTree should have comment or be unexported (golint)
    • Line 57: warning: exported method FrozenFunds.Commit should have comment or be unexported (golint)
    • Line 89: warning: exported method FrozenFunds.GetFrozenFunds should have comment or be unexported (golint)
    • Line 93: warning: exported method FrozenFunds.PunishFrozenFundsWithID should have comment or be unexported (golint)
    • Line 142: warning: exported method FrozenFunds.GetOrNew should have comment or be unexported (golint)
    • Line 200: warning: exported method FrozenFunds.AddFund should have comment or be unexported (golint)
    • Line 205: warning: exported method FrozenFunds.Delete should have comment or be unexported (golint)
    • Line 218: warning: exported method FrozenFunds.Export should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/sell_coin.go
    • Line 14: warning: exported type SellCoinData should have comment or be unexported (golint)
    • Line 21: warning: exported method SellCoinData.Gas should have comment or be unexported (golint)
    • Line 24: warning: exported method SellCoinData.TxType should have comment or be unexported (golint)
    • Line 98: warning: exported method SellCoinData.CommissionData should have comment or be unexported (golint)
    • Line 102: warning: exported method SellCoinData.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/recreate_token.go
    • Line 15: warning: exported type RecreateTokenData should have comment or be unexported (golint)
    • Line 24: warning: exported method RecreateTokenData.Gas should have comment or be unexported (golint)
    • Line 27: warning: exported method RecreateTokenData.TxType should have comment or be unexported (golint)
    • Line 97: warning: exported method RecreateTokenData.CommissionData should have comment or be unexported (golint)
    • Line 101: warning: exported method RecreateTokenData.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/unbond.go
    • Line 15: warning: exported type UnbondData should have comment or be unexported (golint)
    • Line 21: warning: exported method UnbondData.Gas should have comment or be unexported (golint)
    • Line 24: warning: exported method UnbondData.TxType should have comment or be unexported (golint)
    • Line 92: warning: exported method UnbondData.CommissionData should have comment or be unexported (golint)
    • Line 96: warning: exported method UnbondData.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/vote_commission.go
    • Line 15: warning: exported type VoteCommissionData should have comment or be unexported (golint)
    • Line 64: warning: exported method VoteCommissionData.TxType should have comment or be unexported (golint)
    • Line 67: warning: exported method VoteCommissionData.Gas should have comment or be unexported (golint)
    • Line 71: warning: exported method VoteCommissionData.GetPubKey should have comment or be unexported (golint)
    • Line 123: warning: exported method VoteCommissionData.CommissionData should have comment or be unexported (golint)
    • Line 127: warning: exported method VoteCommissionData.Run should have comment or be unexported (golint)
    • minter-go-node/coreV2/code/code.go
    • Line 102: warning: exported function NewInsufficientLiquidityBalance should have comment or be unexported (golint)
    • Line 118: warning: exported function NewInsufficientLiquidityBurned should have comment or be unexported (golint)
    • Line 133: warning: exported function NewInsufficientLiquidity should have comment or be unexported (golint)
    • Line 148: warning: exported function NewInsufficientInputAmount should have comment or be unexported (golint)
    • Line 162: warning: exported function NewInsufficientOutputAmount should have comment or be unexported (golint)
    • Line 174: warning: exported function NewInsufficientLiquidityMinted should have comment or be unexported (golint)
    • Line 193: warning: exported function NewPairNotExists should have comment or be unexported (golint)
    • Line 203: warning: exported function NewPairAlreadyExists should have comment or be unexported (golint)
    • Line 213: warning: exported function NewVoteExpired should have comment or be unexported (golint)
    • Line 223: warning: exported function NewCommissionCoinNotSufficient should have comment or be unexported (golint)
    • Line 233: warning: exported function NewWrongNonce should have comment or be unexported (golint)
    • Line 243: warning: exported function NewCoinNotExists should have comment or be unexported (golint)
    • Line 253: warning: exported function NewCoinIsNotMintable should have comment or be unexported (golint)
    • Line 256: warning: exported function NewCoinIsNotBurnable should have comment or be unexported (golint)
    • Line 268: warning: exported function NewWrongGasCoin should have comment or be unexported (golint)
    • Line 280: warning: exported function NewCoinReserveNotSufficient should have comment or be unexported (golint)
    • Line 290: warning: exported function NewCoinHasNotReserve should have comment or be unexported (golint)
    • Line 300: warning: exported function NewCoinInNotToken should have comment or be unexported (golint)
    • Line 310: warning: exported function NewTxTooLarge should have comment or be unexported (golint)
    • Line 318: warning: exported function NewDecodeError should have comment or be unexported (golint)
    • Line 330: warning: exported function NewInsufficientFunds should have comment or be unexported (golint)
    • Line 340: warning: exported function NewTxPayloadTooLarge should have comment or be unexported (golint)
    • Line 350: warning: exported function NewTxServiceDataTooLarge should have comment or be unexported (golint)
    • Line 361: warning: exported function NewInvalidMultisendData should have comment or be unexported (golint)
    • Line 375: warning: exported function NewCoinSupplyOverflow should have comment or be unexported (golint)
    • Line 385: warning: exported function NewTxFromSenderAlreadyInMempool should have comment or be unexported (golint)
    • Line 395: warning: exported function NewTooLowGasPrice should have comment or be unexported (golint)
    • Line 405: warning: exported function NewWrongChainID should have comment or be unexported (golint)
    • Line 419: warning: exported function NewCoinReserveUnderflow should have comment or be unexported (golint)
    • Line 429: warning: exported function NewCoinAlreadyExists should have comment or be unexported (golint)
    • Line 439: warning: exported function NewInvalidCoinSymbol should have comment or be unexported (golint)
    • Line 449: warning: exported function NewInvalidCoinName should have comment or be unexported (golint)
    • Line 459: warning: exported function NewTooHighGasPrice should have comment or be unexported (golint)
    • Line 468: warning: exported function NewCandidateExists should have comment or be unexported (golint)
    • Line 477: warning: exported function NewCandidateNotFound should have comment or be unexported (golint)
    • Line 486: warning: exported function NewPublicKeyInBlockList should have comment or be unexported (golint)
    • Line 496: warning: exported function NewNewPublicKeyIsBad should have comment or be unexported (golint)
    • Line 506: warning: exported function NewInsufficientWaitList should have comment or be unexported (golint)
    • Line 518: warning: exported function NewStakeNotFound should have comment or be unexported (golint)
    • Line 532: warning: exported function NewInsufficientStake should have comment or be unexported (golint)
    • Line 542: warning: exported function NewTooLongNonce should have comment or be unexported (golint)
    • Line 552: warning: exported function NewTooLargeOwnersList should have comment or be unexported (golint)
    • Line 563: warning: exported function NewIncorrectWeights should have comment or be unexported (golint)
    • Line 573: warning: exported function NewIncorrectTotalWeights should have comment or be unexported (golint)
    • Line 583: warning: exported function NewDifferentCountAddressesAndWeights should have comment or be unexported (golint)
    • Line 595: warning: exported function NewMinimumValueToBuyReached should have comment or be unexported (golint)
    • Line 607: warning: exported function NewMaximumValueToSellReached should have comment or be unexported (golint)
    • Line 616: warning: exported function NewDuplicatedAddresses should have comment or be unexported (golint)
    • Line 624: warning: exported function NewCheckInvalidLock should have comment or be unexported (golint)
    • Line 636: warning: exported function NewCrossConvert should have comment or be unexported (golint)
    • Line 646: warning: exported function NewIsNotOwnerOfCoin should have comment or be unexported (golint)
    • Line 662: warning: exported function NewIsNotOwnerOfCandidate should have comment or be unexported (golint)
    • Line 672: warning: exported function MewCheckExpired should have comment or be unexported (golint)
    • Line 680: warning: exported function NewCheckUsed should have comment or be unexported (golint)
    • Line 690: warning: exported function NewNotEnoughMultisigVotes should have comment or be unexported (golint)
    • Line 698: warning: exported function NewIncorrectMultiSignature should have comment or be unexported (golint)
    • Line 709: warning: exported function NewWrongCrr should have comment or be unexported (golint)
    • Line 718: warning: exported function NewStakeShouldBePositive should have comment or be unexported (golint)
    • Line 728: warning: exported function NewHaltAlreadyExists should have comment or be unexported (golint)
    • Line 738: warning: exported function NewVoteAlreadyExists should have comment or be unexported (golint)
    • Line 751: warning: exported function NewTooLowStake should have comment or be unexported (golint)
    • Line 762: warning: exported function NewWrongCommission should have comment or be unexported (golint)
    • Line 771: warning: exported function NewMultisigNotExists should have comment or be unexported (golint)
    • Line 781: warning: exported function NewPeriodLimitReached should have comment or be unexported (golint)
    • Line 790: warning: exported function NewMultisigExists should have comment or be unexported (golint)
    • Line 807: warning: exported function NewWrongCoinSupply should have comment or be unexported (golint)
    • Line 821: warning: exported function NewWrongCoinEmission should have comment or be unexported (golint)
    • Line 829: warning: exported function NewCustomCode should have comment or be unexported (golint)
    • minter-go-node/cmd/utils/flags.go
    • Line 10: warning: exported type Storage should have comment or be unexported (golint)
    • Line 17: warning: exported method Storage.SetMinterConfig should have comment or be unexported (golint)
    • Line 21: warning: exported method Storage.SetMinterHome should have comment or be unexported (golint)
    • Line 25: warning: exported method Storage.EventDB should have comment or be unexported (golint)
    • Line 29: warning: exported method Storage.StateDB should have comment or be unexported (golint)
    • Line 33: warning: exported function NewStorage should have comment or be unexported (golint)
    • Line 37: warning: exported method Storage.InitEventLevelDB should have comment or be unexported (golint)
    • Line 46: warning: exported method Storage.InitStateLevelDB should have comment or be unexported (golint)
    • Line 55: warning: exported method Storage.GetMinterHome should have comment or be unexported (golint)
    • Line 70: warning: exported method Storage.GetMinterConfigPath should have comment or be unexported (golint)
    • minter-go-node/coreV2/transaction/mint_coin.go
    • Line 13: warning: exported type MintTokenData should have comment or be unexported (golint)
    • Line 18: warning: exported method MintTokenData.Gas should have comment or be unexported (golint)
    • Line 21: warning: exported method MintTokenData.TxType should have comment or be unexported (golint)
    • Line 73: warning: exported method MintTokenData.CommissionData should have comment or be unexported (golint)
    • Line 77: warning: exported method MintTokenData.Run should have comment or be unexported (golint)

gocyclo86%

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.


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell99%

Misspell Finds commonly misspelled English words