mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 11:26:44 +01:00
Add linter checks to GHA & Fix code to pass lints
Add linter checks to GHA & Fix code to pass lints. The linters added are: - whitespace: Tool for detection of leading and trailing whitespace - gosec: Inspects source code for security problems - gci: Gci control golang package import order and make it always deterministic - misspell: Finds commonly misspelled English words in comments - gomnd: An analyzer to detect magic numbers The file utils/utils.go is excluded from the checks of gomnd, as uses magic numbers through the code
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package common
|
||||
|
||||
// Fee is a type that represents the percentage of tokens that will be payed in a transaction
|
||||
// Fee is a type that represents the percentage of tokens that will be paid in a transaction
|
||||
// to incentivaise the materialization of it
|
||||
type Fee float64
|
||||
|
||||
@@ -15,5 +15,7 @@ type RecommendedFee struct {
|
||||
// FeeSelector is used to select a percentage from the FeePlan.
|
||||
type FeeSelector uint8
|
||||
|
||||
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
|
||||
var FeePlan = [256]float64{}
|
||||
var FeePlan = [MAXFEEPLAN]float64{}
|
||||
|
||||
Reference in New Issue
Block a user