mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-26 08:25:20 +00:00
log
This commit is contained in:
@@ -1001,6 +1001,7 @@ class BluetoothMeshService(private val context: Context) {
|
|||||||
// Exclude first (sender) and last (recipient); only intermediates
|
// Exclude first (sender) and last (recipient); only intermediates
|
||||||
val intermediates = path.subList(1, path.size - 1)
|
val intermediates = path.subList(1, path.size - 1)
|
||||||
val hopsBytes = intermediates.map { hexStringToByteArray(it) }
|
val hopsBytes = intermediates.map { hexStringToByteArray(it) }
|
||||||
|
Log.d(TAG, "✅ Signed packet type ${packet.type} (route ${hopsBytes.size} hops: $intermediates)")
|
||||||
packet.copy(route = hopsBytes)
|
packet.copy(route = hopsBytes)
|
||||||
} else packet.copy(route = null)
|
} else packet.copy(route = null)
|
||||||
} else packet
|
} else packet
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ data class BitchatPacket(
|
|||||||
val payload: ByteArray,
|
val payload: ByteArray,
|
||||||
var signature: ByteArray? = null, // Changed from val to var for packet signing
|
var signature: ByteArray? = null, // Changed from val to var for packet signing
|
||||||
var ttl: UByte,
|
var ttl: UByte,
|
||||||
var route: List<ByteArray>? = null // Optional source route: ordered list of peerIDs (8 bytes each), including sender and final recipient
|
var route: List<ByteArray>? = null // Optional source route: ordered list of peerIDs (8 bytes each), not including sender and final recipient
|
||||||
) : Parcelable {
|
) : Parcelable {
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
|
|||||||
Reference in New Issue
Block a user