channeldb: add persistance of the onion blob

In this commit htlc channeldb representation have been augmented
with onion blob field, and (de)serialisaion functions have been changed
to make the onion blob persistant.
This commit is contained in:
Andrey Samokhvalov authored and Olaoluwa Osuntokun committed 2017-11-09 16:38:58 -08:00
1 parent a10ed36e8f
commit 7aa7cb1caf
2 files changed
+31 -3

No files matched your search

+1
View File
@@ -207,6 +207,7 @@ func TestOpenChannelPutGetDelete(t *testing.T) {
Amt: 10,
RHash: key,
RefundTimeout: 1,
OnionBlob: []byte("onionblob"),
},
}
if err := state.FullSync(); err != nil {