Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidy-ups. #168

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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