check the forge address balance before starting the node

This commit is contained in:
Danilo Pantani
2021-02-26 12:51:31 -03:00
parent 0adcf1a2bc
commit cd1df6ea8c
3 changed files with 22 additions and 0 deletions

View File

@@ -48,6 +48,10 @@ type ForgeBatchGasCost struct {
type Coordinator struct {
// ForgerAddress is the address under which this coordinator is forging
ForgerAddress ethCommon.Address `validate:"required"`
// MinimumForgeAddressBalance is the minimum balance the forger address
// needs to start the coordinator in wei. Of set to 0, the coordinator
// will not check the balance before starting.
MinimumForgeAddressBalance *big.Int
// FeeAccount is the Hermez account that the coordinator uses to receive fees
FeeAccount struct {
// Address is the ethereum address of the account to receive fees