1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-16 04:24:56 +02:00

app/state.go: Adding StateLoader and StateSaver function types.

This commit is contained in:
Henrik Hautakoski 2023-11-04 13:21:30 +01:00
parent 310f96219f
commit 1ae3da425c

View file

@ -5,3 +5,11 @@ type State struct {
// Last processed block
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
)