Skip to content

Commit

Permalink
Tidy-ups.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed Jan 8, 2024
1 parent cebe3a8 commit 51ef637
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ func fetchMultiClient(ctx context.Context, monitor metrics.Service, addresses []

var err error
client, err = multiclient.New(ctx,
multiclient.WithMonitor(monitor),
multiclient.WithLogLevel(util.LogLevel("eth2client.multi")),
multiclient.WithClients(clients),
)
if err != nil {
Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2020 - 2023 Attestant Limited.
// Copyright © 2020 - 2024 Attestant Limited.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
Expand Down Expand Up @@ -107,7 +107,7 @@ import (
)

// ReleaseVersion is the release version for the code.
var ReleaseVersion = "1.8.0-dev"
var ReleaseVersion = "1.8.0-beta.1"

func main() {
exitCode := main2()
Expand Down Expand Up @@ -237,7 +237,7 @@ func fetchConfig() error {
viper.SetDefault("blockrelay.listen-address", "0.0.0.0:18550")
viper.SetDefault("blockrelay.fallback-gas-limit", uint64(30000000))
viper.SetDefault("accountmanager.dirk.timeout", 30*time.Second)
viper.SetDefault("strategies.beaconblockproposal.best.execution-payload-factor", float64(0.000005))
viper.SetDefault("strategies.beaconblockproposal.best.execution-payload-factor", float64(0.0005))

if err := viper.ReadInConfig(); err != nil {
switch {
Expand Down
4 changes: 2 additions & 2 deletions services/signer/standard/signrandaoreveal.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2020 Attestant Limited.
// Copyright © 2020, 2024 Attestant Limited.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
Expand Down Expand Up @@ -52,7 +52,7 @@ func (s *Service) SignRANDAOReveal(ctx context.Context,

sig, err := s.sign(ctx, account, epochBytes, domain)
if err != nil {
return phase0.BLSSignature{}, errors.Wrap(err, "failed to sign RANDO reveal")
return phase0.BLSSignature{}, errors.Wrap(err, "failed to sign RANDAO reveal")
}

return sig, nil
Expand Down
6 changes: 3 additions & 3 deletions services/signer/standard/signslotselection.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2020 Attestant Limited.
// Copyright © 2020 - 2024 Attestant Limited.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
Expand Down Expand Up @@ -43,15 +43,15 @@ func (s *Service) SignSlotSelection(ctx context.Context,
s.selectionProofDomainType,
phase0.Epoch(slot/s.slotsPerEpoch))
if err != nil {
return phase0.BLSSignature{}, errors.Wrap(err, "failed to obtain signature domain for selection proof")
return phase0.BLSSignature{}, errors.Wrap(err, "failed to obtain signature domain for slot selection proof")
}

var slotBytes phase0.Root
binary.LittleEndian.PutUint64(slotBytes[:], uint64(slot))

sig, err := s.sign(ctx, account, slotBytes, domain)
if err != nil {
return phase0.BLSSignature{}, errors.Wrap(err, "failed to sign RANDO reveal")
return phase0.BLSSignature{}, errors.Wrap(err, "failed to sign slot selection proof")
}

return sig, nil
Expand Down

0 comments on commit 51ef637

Please sign in to comment.