watchtower/multi: use proper TowerID type

This allows serialization methods to be added with TowerID method
receivers.
This commit is contained in:
Conner Fromknecht committed 2019-05-23 20:47:22 -07:00
1 parent ec7c16fdc1
commit 3509c0c991
4 files changed
+33 -14

No files matched your search

+2 -2
View File
@@ -21,7 +21,7 @@ type DB interface {
CreateTower(*lnwire.NetAddress) (*wtdb.Tower, error)
// LoadTower retrieves a tower by its tower ID.
LoadTower(uint64) (*wtdb.Tower, error)
LoadTower(wtdb.TowerID) (*wtdb.Tower, error)
// NextSessionKeyIndex reserves a new session key derivation index for a
// particular tower id. The index is reserved for that tower until
@@ -29,7 +29,7 @@ type DB interface {
// point a new index for that tower can be reserved. Multiple calls to
// this method before CreateClientSession is invoked should return the
// same index.
NextSessionKeyIndex(uint64) (uint32, error)
NextSessionKeyIndex(wtdb.TowerID) (uint32, error)
// CreateClientSession saves a newly negotiated client session to the
// client's database. This enables the session to be used across