mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-24 02:01:43 +00:00
Implement Init/Sync Validators
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
package types
|
||||
|
||||
// Applications
|
||||
type Application interface {
|
||||
|
||||
// Return application info
|
||||
@ -20,3 +21,13 @@ type Application interface {
|
||||
// Query for state
|
||||
Query(query []byte) (code CodeType, result []byte, log string)
|
||||
}
|
||||
|
||||
// Some applications can choose to implement ValidatorAware
|
||||
type ValidatorAware interface {
|
||||
|
||||
// Give app initial list of validators upon genesis
|
||||
InitValidators([]*Validator)
|
||||
|
||||
// Receive updates to validators from app, prior to commit
|
||||
SyncValidators() []*Validator
|
||||
}
|
||||
|
Reference in New Issue
Block a user