diff --git a/.golangci.yml b/.golangci.yml index 4d978c1..d9317fb 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -106,6 +106,10 @@ output: # All available settings of specific linters. linters-settings: + gosec: + excludes: + - G115 # This generates a lot of false positives, recheck once https://github.com/securego/gosec/issues/1212 is closed + lll: line-length: 132 diff --git a/CHANGELOG.md b/CHANGELOG.md index c3c4efd..0ede73d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,40 +1,31 @@ -dev: - -1.9.0-beta.3: -- fix FromAsCasing warning in Docker image building -- change controller.fast-track.grace default value from 200ms to 500ms - -1.9.0-beta.2: - - change default timestamp in logs to millisecond-precision - - allow custom timestamp formatting in logs - -1.9.0-beta.1: - - reduce time spent verifying account names - - ensure that attestations complete on Vouch's first ever epoch +1.9.0: - allow Vouch to start with some consensus nodes unavailable - allow Vouch to act as an MEV-boost client for non-Vouch validators + - reduce memory usage when obtaining Dirk accounts + - reduce memory usage when generating beacon committee subscriptions + - reduce time spent verifying account names in the common case + - add 'deadline' builder bid strategy - increase proposal performance with new validator REST APIs + - add builder configurations to allow more control over selection of bids + - add "controller.fast-track" flag to control when attestation and sync committee processes start + - fix FromAsCasing warning in Docker image building + - change default timestamp in logs to millisecond-precision + - allow custom timestamp formatting in logs + - ensure that attestations complete on Vouch's first ever epoch - add proposal value and blinded status to trace - add beaconblockproposer.builder-boost-factor - add reduced memory mode for memory-constrained systems - - reduce memory usage when obtaining Dirk accounts - - reduce memory usage when generating beacon committee subscriptions - - add "controller.fast-track" flag - update internal active validators count when Dirk not available at start - warn when graffiti is not as expected, rather than refuse to use the proposal - provide fallback location for dynamic graffiti - relax proposal checks to enable DVT proposals - - add individual "controller.fast-track" flags for attestations and sync committees - add 'failed' dimension for root to slot lookup metrics - - add 'deadline' builder bid strategy - - add builder configurations to allow more control over selection of bids - add sync committee verification metrics to highlight when we were and were not included in a SyncAggregate - add config setting to enable the above metrics - alter logic for determining sync committee eligible accounts - enable first strategies to be defined for beaconblockheader and signedbeaconblock - tidy up log entries for sync committee summaries - reduce unnecessary log entries from some strategies - - change builder bid factor to be a percentage rather than a multiplier - refactor metrics to be consistent 1.8.2: diff --git a/main.go b/main.go index 1d61223..82e76e7 100644 --- a/main.go +++ b/main.go @@ -110,7 +110,7 @@ import ( ) // ReleaseVersion is the release version for the code. -var ReleaseVersion = "1.9.0-beta.3" +var ReleaseVersion = "1.9.0" func main() { exitCode := main2() diff --git a/services/accountmanager/dirk/service.go b/services/accountmanager/dirk/service.go index 3217dd4..b96ab21 100644 --- a/services/accountmanager/dirk/service.go +++ b/services/accountmanager/dirk/service.go @@ -103,7 +103,6 @@ func New(ctx context.Context, params ...Parameter) (*Service, error) { log.Warn().Str("endpoint", endpoint).Msg("Invalid port") continue } - //nolint:gosec endpoints = append(endpoints, dirk.NewEndpoint(endpointParts[0], uint32(port))) } if len(endpoints) == 0 { diff --git a/services/chaintime/standard/service.go b/services/chaintime/standard/service.go index 397ced1..dc36d5d 100644 --- a/services/chaintime/standard/service.go +++ b/services/chaintime/standard/service.go @@ -95,13 +95,11 @@ func (s *Service) GenesisTime() time.Time { // StartOfSlot provides the time at which a given slot starts. func (s *Service) StartOfSlot(slot phase0.Slot) time.Time { - //nolint:gosec return s.genesisTime.Add(time.Duration(slot) * s.slotDuration) } // StartOfEpoch provides the time at which a given epoch starts. func (s *Service) StartOfEpoch(epoch phase0.Epoch) time.Time { - //nolint:gosec return s.genesisTime.Add(time.Duration(uint64(epoch)*s.slotsPerEpoch) * s.slotDuration) } diff --git a/util/epoch.go b/util/epoch.go index c5027bd..817b60a 100644 --- a/util/epoch.go +++ b/util/epoch.go @@ -21,6 +21,5 @@ func EpochToInt64(epoch phase0.Epoch) int64 { panic("epoch too large to convert to int64") } - //nolint:gosec return int64(epoch) } diff --git a/util/slot.go b/util/slot.go index fe8cba6..c4dc52f 100644 --- a/util/slot.go +++ b/util/slot.go @@ -21,6 +21,5 @@ func SlotToInt64(slot phase0.Slot) int64 { panic("slot too large to convert to int64") } - //nolint:gosec return int64(slot) }