path aware
This commit is contained in:
1 parent
dc82414447
commit
119590434a
3 files changed
+17
-4
No files matched your search
@@ -110,6 +110,7 @@ class ChannelMessageStore {
|
||||
'channelIndex': msg.channelIndex,
|
||||
'repeatCount': msg.repeatCount,
|
||||
'pathLength': msg.pathLength,
|
||||
'pathHashWidth': msg.pathHashWidth,
|
||||
'pathBytes': base64Encode(msg.pathBytes),
|
||||
'pathVariants': msg.pathVariants.map(base64Encode).toList(),
|
||||
'repeats': msg.repeats.map(_repeatToJson).toList(),
|
||||
@@ -144,6 +145,7 @@ class ChannelMessageStore {
|
||||
status: ChannelMessageStatus.values[json['status'] as int],
|
||||
repeatCount: (json['repeatCount'] as int?) ?? 0,
|
||||
pathLength: json['pathLength'] as int?,
|
||||
pathHashWidth: json['pathHashWidth'] as int?,
|
||||
pathBytes: json['pathBytes'] != null
|
||||
? Uint8List.fromList(base64Decode(json['pathBytes'] as String))
|
||||
: Uint8List(0),
|
||||
|
||||
Reference in new issue
Block a user