Merge pull request #518 from hermeznetwork/fix/api-recommended-fee

Fix api resopnse format for recommended fee
This commit is contained in:
Alberto Elias
2021-02-01 15:04:15 +00:00
committed by GitHub
3 changed files with 23 additions and 3 deletions

View File

@@ -22,9 +22,9 @@ var FeeFactorLsh60 [256]*big.Int
// 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
CreatesAccountAndRegister float64
ExistingAccount float64 `json:"existingAccount"`
CreatesAccount float64 `json:"createAccount"`
CreatesAccountAndRegister float64 `json:"createAccountInternal"`
}
// FeeSelector is used to select a percentage from the FeePlan.