Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-romano committed Jan 15, 2025
1 parent 7a1ff0b commit af18a0a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions internal/statetransition/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,7 @@ func CalculateNewCoreAuthorizations(header block.Header, guarantees block.Guaran
}

// removeAuthorizer removes an authorizer from a list while maintaining order
//lint:ignore U1000
func removeAuthorizer(auths []crypto.Hash, toRemove crypto.Hash) []crypto.Hash {
for i := 0; i < len(auths); i++ {
if auths[i] == toRemove {
Expand Down Expand Up @@ -1798,7 +1799,7 @@ func CalculateWorkReportsAndAccumulate(header *block.Header, currentState *state
slices.Concat(
slices.Concat(currentState.AccumulationQueue[timeslotPerEpoch:]...), // ⋃(ϑm...)
slices.Concat(currentState.AccumulationQueue[:timeslotPerEpoch]...), // ⋃(ϑ...m)
queuedWorkReports, // WQ
queuedWorkReports, // WQ
),
getWorkPackageHashes(immediatelyAccWorkReports), // P(W!)
)
Expand Down Expand Up @@ -2429,10 +2430,10 @@ func (a *Accumulator) ParallelDelta(
workReports []block.WorkReport,
privilegedGas map[block.ServiceId]uint64, // D⟨NS → NG⟩
) (
uint64, // total gas used
state.AccumulationState, // updated context
uint64, // total gas used
state.AccumulationState, // updated context
[]service.DeferredTransfer, // all transfers
ServiceHashPairs, // accumulation outputs
ServiceHashPairs, // accumulation outputs
) {
// Get all unique service indices involved (s)
// s = {rs S w ∈ w, r ∈ wr} ∪ K(f)
Expand Down Expand Up @@ -2548,7 +2549,7 @@ func (a *Accumulator) Delta1(
accumulationState state.AccumulationState,
workReports []block.WorkReport,
privilegedGas map[block.ServiceId]uint64, // D⟨NS → NG⟩
serviceIndex block.ServiceId, // NS
serviceIndex block.ServiceId, // NS
) (state.AccumulationState, []service.DeferredTransfer, *crypto.Hash, uint64) {
// Calculate gas limit (g)
gasLimit := uint64(0)
Expand Down

0 comments on commit af18a0a

Please sign in to comment.