mirror of
https://github.com/tendermint/tendermint.git
synced 2026-07-22 16:03:29 +00:00
public save API
This commit is contained in:
committed by
Ethan Buchman
parent
332f7056f7
commit
e7656873c1
@@ -368,6 +368,12 @@ func (a *AddrBook) loadFromFile(filePath string) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// Save saves the book.
|
||||
func (a *AddrBook) Save() {
|
||||
log.Info("Saving AddrBook to file", "size", a.Size())
|
||||
a.saveToFile(a.filePath)
|
||||
}
|
||||
|
||||
/* Private methods */
|
||||
|
||||
func (a *AddrBook) saveRoutine() {
|
||||
|
||||
Reference in New Issue
Block a user