Initial Transfer message encoding. Embedded UDT implementation to follow.

Documentation of file transfer to follow in upcoming Whitepaper update.
This commit is contained in:
Kleissner
2021-10-20 10:20:56 +02:00
parent fb9944aaed
commit d2899a4378
2 changed files with 113 additions and 2 deletions

View File

@@ -115,12 +115,13 @@ func DecodeAnnouncement(msg *MessageRaw) (result *MessageAnnouncement, err error
// INFO_STORE
if result.Actions&(1<<ActionInfoStore) > 0 {
files, read, valid := decodeInfoStore(data)
files, _, valid := decodeInfoStore(data)
if !valid {
return nil, errors.New("announcement: INFO_STORE invalid data")
}
data = data[read:]
// commented out because never used
//data = data[read:]
result.InfoStoreFiles = files
}