ChainSafe / ChainSafe/gossamer

Refactor SlotState to use local interface for DB access

Open
#3,972 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
454
Forks
144
PR merge metrics
No merged PRs in 30d

Description

## Issue summary
The type SlotState has a field db of type database.Table

```go
type SlotState struct {
db database.Table
}
```

The interface Table has several methods but the type 'SlotState' use only 'Get' and 'NewBatch' it is better to define a local interface. I explained why in this issue: #3971

## Related issues:
#3975

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.