Skip to content

Commit

Permalink
Merge pull request #114 from gobitfly/dashboardstats2
Browse files Browse the repository at this point in the history
Dashboardstats Exporter Part 2
  • Loading branch information
manuelsc authored Apr 23, 2024
2 parents 5cdfc34 + 73713f7 commit 9ac19b4
Show file tree
Hide file tree
Showing 36 changed files with 3,490 additions and 1,205 deletions.
6 changes: 3 additions & 3 deletions backend/cmd/misc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ func main() {
for _, validator := range validators.Data {
validatorsArr = append(validatorsArr, &types.Validator{
Index: validator.Index,
PublicKey: utils.MustParseHex(validator.Validator.Pubkey),
WithdrawalCredentials: utils.MustParseHex(validator.Validator.WithdrawalCredentials),
PublicKey: validator.Validator.Pubkey,
WithdrawalCredentials: validator.Validator.WithdrawalCredentials,
Balance: validator.Balance,
EffectiveBalance: validator.Validator.EffectiveBalance,
Slashed: validator.Validator.Slashed,
Expand Down Expand Up @@ -375,7 +375,7 @@ func main() {
}
_, err = tx.Exec(`INSERT INTO blocks_deposits (block_slot, block_root, block_index, publickey, withdrawalcredentials, amount, signature)
VALUES (0, '\x01', $1, $2, $3, $4, $5) ON CONFLICT DO NOTHING`,
validator.Index, utils.MustParseHex(validator.Validator.Pubkey), utils.MustParseHex(validator.Validator.WithdrawalCredentials), validator.Balance, []byte{0x0},
validator.Index, validator.Validator.Pubkey, validator.Validator.WithdrawalCredentials, validator.Balance, []byte{0x0},
)
if err != nil {
log.Error(err, "error exporting genesis-deposits", 0)
Expand Down
Loading

0 comments on commit 9ac19b4

Please sign in to comment.