mirror of
https://github.com/eosswedenorg/thalos
synced 2026-08-22 19:38:13 +02:00
app/state.go: Adding StateLoader and StateSaver function types.
This commit is contained in:
parent
310f96219f
commit
1ae3da425c
1 changed files with 8 additions and 0 deletions
|
|
@ -5,3 +5,11 @@ type State struct {
|
||||||
// Last processed block
|
// Last processed block
|
||||||
CurrentBlock uint32
|
CurrentBlock uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type (
|
||||||
|
// StateLoader is a function that loads a state.
|
||||||
|
StateLoader func(*State)
|
||||||
|
|
||||||
|
// StateSaver is a function that saves a state.
|
||||||
|
StateSaver func(State) error
|
||||||
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue