mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
API change names and add poolLoad, add maxFeeUSD
This commit is contained in:
@@ -144,6 +144,10 @@ type Coordinator struct {
|
||||
// order to be accepted into the pool. Txs with lower than
|
||||
// minimum fee will be rejected at the API level.
|
||||
MinFeeUSD float64
|
||||
// MaxFeeUSD is the maximum fee in USD that a tx must pay in
|
||||
// order to be accepted into the pool. Txs with greater than
|
||||
// maximum fee will be rejected at the API level.
|
||||
MaxFeeUSD float64 `validate:"required"`
|
||||
// TTL is the Time To Live for L2Txs in the pool. Once MaxTxs
|
||||
// L2Txs is reached, L2Txs older than TTL will be deleted.
|
||||
TTL Duration `validate:"required"`
|
||||
@@ -376,6 +380,10 @@ type APIServer struct {
|
||||
// order to be accepted into the pool. Txs with lower than
|
||||
// minimum fee will be rejected at the API level.
|
||||
MinFeeUSD float64
|
||||
// MaxFeeUSD is the maximum fee in USD that a tx must pay in
|
||||
// order to be accepted into the pool. Txs with greater than
|
||||
// maximum fee will be rejected at the API level.
|
||||
MaxFeeUSD float64 `validate:"required"`
|
||||
} `validate:"required"`
|
||||
}
|
||||
Debug NodeDebug `validate:"required"`
|
||||
|
||||
Reference in New Issue
Block a user