Browse Source

Merge pull request #595 from hermeznetwork/fix/print-balance

fix forge address balance printing removing the int64 casting
tmp/txsel-fix
arnau 3 years ago
committed by GitHub
parent
commit
6e4bd56c1a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions
  1. +1
    -1
      cli/node/cfg.buidler.toml
  2. +3
    -3
      node/node.go

+ 1
- 1
cli/node/cfg.buidler.toml

@ -51,7 +51,7 @@ ForgerAddress = "0x05c23b938a85ab26A36E6314a0D02080E9ca6BeD" # Non-Boot Coordina
# ForgerAddressPrivateKey = "0x30f5fddb34cd4166adb2c6003fa6b18f380fd2341376be42cf1c7937004ac7a3" # ForgerAddressPrivateKey = "0x30f5fddb34cd4166adb2c6003fa6b18f380fd2341376be42cf1c7937004ac7a3"
# ForgerAddress = "0xb4124ceb3451635dacedd11767f004d8a28c6ee7" # Boot Coordinator # ForgerAddress = "0xb4124ceb3451635dacedd11767f004d8a28c6ee7" # Boot Coordinator
# ForgerAddressPrivateKey = "0xa8a54b2d8197bc0b19bb8a084031be71835580a01e70a45a13babd16c9bc1563" # ForgerAddressPrivateKey = "0xa8a54b2d8197bc0b19bb8a084031be71835580a01e70a45a13babd16c9bc1563"
MinimumForgeAddressBalance = 0
MinimumForgeAddressBalance = "0"
ConfirmBlocks = 10 ConfirmBlocks = 10
L1BatchTimeoutPerc = 0.6 L1BatchTimeoutPerc = 0.6
StartSlotBlocksDelay = 2 StartSlotBlocksDelay = 2

+ 3
- 3
node/node.go

@ -146,12 +146,12 @@ func NewNode(mode Mode, cfg *config.Node) (*Node, error) {
if minForgeBalance != nil && balance.Cmp(minForgeBalance) == -1 { if minForgeBalance != nil && balance.Cmp(minForgeBalance) == -1 {
return nil, tracerr.Wrap(fmt.Errorf( return nil, tracerr.Wrap(fmt.Errorf(
"forger account balance is less than cfg.Coordinator.MinimumForgeAddressBalance: %v < %v", "forger account balance is less than cfg.Coordinator.MinimumForgeAddressBalance: %v < %v",
balance.Int64(), minForgeBalance))
balance, minForgeBalance))
} }
log.Infow("forger ethereum account balance", log.Infow("forger ethereum account balance",
"addr", cfg.Coordinator.ForgerAddress, "addr", cfg.Coordinator.ForgerAddress,
"balance", balance.Int64(),
"minForgeBalance", minForgeBalance.Int64(),
"balance", balance,
"minForgeBalance", minForgeBalance,
) )
// Unlock Coordinator ForgerAddr in the keystore to make calls // Unlock Coordinator ForgerAddr in the keystore to make calls

Loading…
Cancel
Save