Skip to content

Commit

Permalink
Merge pull request #192 from attestantio/lock-subscriptions-info
Browse files Browse the repository at this point in the history
Avoid crash with subscriptionsInfo.
  • Loading branch information
mcdee authored Mar 18, 2024
2 parents 03ccf88 + c44450f commit 1fb1852
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dev:
1.9.0-alpha.1:
- reduce time spent verifying account names
- ensure that attestations complete on Vouch's first ever epoch
- allow Vouch to start with some consensus nodes unavailable
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ import (
)

// ReleaseVersion is the release version for the code.
var ReleaseVersion = "1.9.0-dev"
var ReleaseVersion = "1.9.0-alpha.1"

func main() {
exitCode := main2()
Expand Down
2 changes: 2 additions & 0 deletions services/controller/standard/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ func (s *Service) HandleHeadEvent(event *api.Event) {
}

// Remove old subscriptions if present.
s.subscriptionInfosMutex.Lock()
delete(s.subscriptionInfos, s.chainTimeService.SlotToEpoch(data.Slot)-2)
s.subscriptionInfosMutex.Unlock()
}

// handlePreviousDependentRootChanged handles the situation where the previous
Expand Down

0 comments on commit 1fb1852

Please sign in to comment.