mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-20 11:57:51 +01:00
Initial Transfer message encoding. Embedded UDT implementation to follow.
Documentation of file transfer to follow in upcoming Whitepaper update.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user