Add configuration option to choose recommended fee strategy, and add static strategy

This commit is contained in:
arnaubennassar
2021-03-24 16:41:48 +01:00
parent f07fd82822
commit f9ddf88c93
5 changed files with 88 additions and 13 deletions

View File

@@ -145,3 +145,11 @@ Coordinator = true
BatchPath = "/tmp/iden3-test/hermez/batchesdebug"
LightScrypt = true
# RollupVerifierIndex = 0
[RecommendedFeePolicy]
# Strategy used to calculate the recommended fee that the API will expose.
# Available options:
# - Static: always return the same value (StaticValue) in USD
# - AvgLastHour: calculate using the average fee of the forged transactions during the last hour
PolicyType = "Static"
StaticValue = 0.99