channeldb: update route.Hop serialization to include new EOB related fields

We also include a migration for the existing routes stored on disk.
This commit is contained in:
Olaoluwa Osuntokun committed 2019-08-22 18:53:04 -07:00
1 parent 763cb6c09d
commit c78e3aaa9d
6 files changed
+677 -6

No files matched your search

+7
View File
@@ -103,6 +103,13 @@ var (
number: 9,
migration: migrateOutgoingPayments,
},
{
// The DB version where we started to store legacy
// payload information for all routes, as well as the
// optional TLV records.
number: 10,
migration: migrateRouteSerialization,
},
}
// Big endian is the preferred byte order, due to cursor scans over