Skip to content

Commit 369037e

Browse files
committed
fix: add channel size filter
1 parent 37b035a commit 369037e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/java/to/bitkit/repositories/BlocktankRepo.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ class BlocktankRepo @Inject constructor(
100100
return@withContext runCatching {
101101
val channel = lightningService.channels?.find { it.channelId == channelId }
102102
_blocktankState.value.cjitEntries.any { order ->
103-
order.lspNode.pubkey == channel?.counterpartyNodeId
103+
order.channelSizeSat == channel?.channelValueSats &&
104+
order.lspNode.pubkey == channel.counterpartyNodeId
104105
}
105106
}.getOrDefault(false)
106107
}

0 commit comments

Comments
 (0)