path aware

This commit is contained in:
PacoX
2026-05-17 20:14:16 +02:00
parent dc82414447
commit 119590434a
3 changed files with 17 additions and 4 deletions
+2
View File
@@ -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),