channeldb: add historical channel bucket lookup

This commit is contained in:
carla
2020-02-21 13:23:30 +02:00
parent 94717a2088
commit 8d632b8022
3 changed files with 106 additions and 0 deletions

View File

@@ -10,6 +10,11 @@ var (
// created.
ErrNoChanDBExists = fmt.Errorf("channel db has not yet been created")
// ErrNoHistoricalBucket is returned when the historical channel bucket
// not been created yet.
ErrNoHistoricalBucket = fmt.Errorf("historical channel bucket has " +
"not yet been created")
// ErrDBReversion is returned when detecting an attempt to revert to a
// prior database version.
ErrDBReversion = fmt.Errorf("channel db cannot revert to prior version")