Skip to content

Commit

Permalink
shold retire'
Browse files Browse the repository at this point in the history
  • Loading branch information
samsondav committed Sep 24, 2024
1 parent b306c93 commit 159d209
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 28 deletions.
2 changes: 1 addition & 1 deletion llo/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ type ShouldRetireCache interface { // reads asynchronously from onchain Configur
// Should the protocol instance retire according to the configuration
// contract?
// See: https://github.com/smartcontractkit/mercury-v1-sketch/blob/main/onchain/src/ConfigurationStore.sol#L18
ShouldRetire() (bool, error)
ShouldRetire(digest ocr2types.ConfigDigest) (bool, error)
}

// The predecessor protocol instance stores its attested retirement report in
Expand Down
2 changes: 1 addition & 1 deletion llo/plugin_observation.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (p *Plugin) observation(ctx context.Context, outctx ocr3types.OutcomeContex
}
}

shouldRetire, err := p.ShouldRetireCache.ShouldRetire()
shouldRetire, err := p.ShouldRetireCache.ShouldRetire(p.ConfigDigest)
if err != nil {
return nil, fmt.Errorf("error fetching shouldRetire from cache: %w", err)
}
Expand Down
19 changes: 0 additions & 19 deletions llo/should_retire_cache.go

This file was deleted.

7 changes: 0 additions & 7 deletions llo/should_retire_cache_test.go

This file was deleted.

0 comments on commit 159d209

Please sign in to comment.