File tree Expand file tree Collapse file tree
app/src/main/java/to/bitkit/repositories Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import com.synonym.bitkitcore.IBtEstimateFeeResponse2
77import com.synonym.bitkitcore.IBtInfo
88import com.synonym.bitkitcore.IBtOrder
99import com.synonym.bitkitcore.IcJitEntry
10- import com.synonym.bitkitcore.getOrders
1110import kotlinx.coroutines.CoroutineDispatcher
1211import kotlinx.coroutines.CoroutineScope
1312import kotlinx.coroutines.SupervisorJob
@@ -100,10 +99,8 @@ class BlocktankRepo @Inject constructor(
10099 suspend fun isCjitOrder (channelId : String ): Boolean = withContext(bgDispatcher) {
101100 return @withContext runCatching {
102101 val channel = lightningService.channels?.find { it.channelId == channelId }
103-
104102 _blocktankState .value.cjitEntries.any { order ->
105- order.channel?.shortChannelId?.toULongOrNull() == channel?.shortChannelId &&
106- channel?.shortChannelId != null
103+ order.lspNode.pubkey == channel?.counterpartyNodeId
107104 }
108105 }.getOrDefault(false )
109106 }
You can’t perform that action at this time.
0 commit comments