mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-16 04:24:56 +02:00
15 lines
288 B
Go
15 lines
288 B
Go
package app
|
|
|
|
// State represents thalos runtime state
|
|
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
|
|
)
|