mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 11:26:44 +01:00
Add lint checks: gofmt, goimports, golint
- gofmt - Gofmt checks whether code was gofmt-ed. By default this tool runs
with -s option to check for code simplification
- goimports - Goimports does everything that gofmt does. Additionally it checks
unused imports
- golint - Golint differs from gofmt. Gofmt reformats Go source code, whereas
golint prints out style mistakes
- checks the uncommented exported functions & types
Update the code to fix the lint checks.
This commit is contained in:
@@ -4,8 +4,9 @@ package common
|
||||
// to incentivaise the materialization of it
|
||||
type Fee float64
|
||||
|
||||
// RecommendedFee is the recommended fee to pay in USD per transaction set by the coordinator
|
||||
// according to the tx type (if the tx requires to create an account and register, only register or he account already esists)
|
||||
// RecommendedFee is the recommended fee to pay in USD per transaction set by
|
||||
// the coordinator according to the tx type (if the tx requires to create an
|
||||
// account and register, only register or he account already esists)
|
||||
type RecommendedFee struct {
|
||||
ExistingAccount float64
|
||||
CreatesAccount float64
|
||||
@@ -15,7 +16,9 @@ type RecommendedFee struct {
|
||||
// FeeSelector is used to select a percentage from the FeePlan.
|
||||
type FeeSelector uint8
|
||||
|
||||
// MAXFEEPLAN is the maximum value of the FeePlan
|
||||
const MAXFEEPLAN = 256
|
||||
|
||||
// FeePlan represents the fee model, a position in the array indicates the percentage of tokens paid in concept of fee for a transaction
|
||||
// FeePlan represents the fee model, a position in the array indicates the
|
||||
// percentage of tokens paid in concept of fee for a transaction
|
||||
var FeePlan = [MAXFEEPLAN]float64{}
|
||||
|
||||
Reference in New Issue
Block a user