Conceptio › Archive › arXiv CS
arXiv CS open access

Employing the Structural Power to Achieve Supply-Demand Balanced Payment Channel Networks

2026 · arxiv_cs
arXiv CS · Papers · 2026
Open Source ↗Direct PDF ↓
distributed-systemsinternetnetworkingprotocols
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

Employing the Structural Power to Achieve Supply-Demand Balanced Payment Channel Networks Shuyao Xiao1 , Shengling Wang1,* , Hongwei Shi1 , Weicheng Wang2 , Anlin Chen1 1

arXiv:2609.03600v1 [cs.NI] 3 Sep 2026

College of Artificial Intelligence, Beijing Normal University, Beijing, China 2 Beijing Institute of Technology, Zhuhai, China xiaoshuyao@mail.bnu.edu.cn, wangshengling@bnu.edu.cn, hongweishi@mail.bnu.edu.cn Abstract—Blockchain technology faces scalability challenges because transactions must be validated and recorded across the network. Payment channel networks (PCNs) improve efficiency by moving transactions off-chain and recording only critical interactions on the mainnet. However, PCNs require pre-deposited channel balances (supply) to match transaction demands (demand), and insufficient balances cause supply shortages. Existing approaches, including transaction path optimization and channel balance allocation, address this problem but incur high costs due to dynamic adaptation to fluctuating demands. We reveal a correlation between balance deficits in PCNs and network topology by uncovering the structural organization of liquidity allocation. This enables supply–demand conflicts to be mitigated from a static topological perspective through channel reconfiguration, without additional balance replenishment. We further introduce payment topological entropy (PTE), an informationtheoretic metric that quantifies each node’s deviation from the global average connection pattern and captures structural properties of balance supply. Based on PTE, we design MaxPTE, a topology optimization algorithm that reorganizes balance allocation across channels through structural reconfiguration, aligning static balance distribution with dynamic transaction demand. Extensive experiments show that MaxPTE reduces balance deficits by 27.25%, increases average maximum flow by 12.23%, and decreases transaction failure probability by 25.96%, outperforming existing benchmarks. The method also remains robust across diverse balance-demand distributions, improving supply–demand balance without prior demand prediction. Index Terms—Blockchain, Payment channel network, Balance deficit, Topology structure

I. I NTRODUCTION Blockchain technology ensures decentralization and transaction security. However, it faces significant scalability challenges, because every transaction must be validated by all nodes and recorded on the blockchain ledger, leading to low throughput and high confirmation latency as the number of transactions increases. To address this, payment channel networks (PCNs) have emerged as a solution by enabling off-chain transactions that reduce reliance on the blockchain mainnet, thereby improving transaction efficiency. Specifically, PCNs allow any two blockchain nodes to pre-establish a dedicated off-chain payment channel using smart contracts [1]. In contrast to executing each transfer directly on the blockchain * Corresponding author.

mainnet, this channel accommodates high-frequency transactions and submits only critical information to the mainnet upon channel creation, final settlement, or disputes. Consequently, this mechanism significantly reduces on-chain submissions and alleviates the load on the blockchain mainnet. Although payment channels support bidirectional transactions, the available balance for each direction is determined by the current channel state. Since our objective is to characterize how pre-deposited liquidity is allocated among outgoing payment directions at a given state, we model the PCN as a directed weighted graph, where each directed edge represents the transferable balance from one node to another at that state. To operate effectively, PCNs require each off-chain channel to maintain a specific pre-deposited balance. This balance ensures collateralization and settlement for off-chain transfers. It offers sufficient balance for direct payments between nodes, prevents overspending, and ensures the necessary balance for relay transactions using the channel. The balance in each channel is independently locked, cannot flow across channels, and cannot be dynamically reallocated by nodes to replenish other channels; it can only be configured ex ante according to the smart contract [1]. This principle of independent locking ensures a one-to-one correspondence between balance and channel state, securing the safety, verifiability, and tamperresistance of off-chain payments at the mechanism level. Once the payment channel is established, the balance remains fixed and cannot be adjusted or redistributed. From a supply–demand perspective, this smart contractbased static locking mechanism defines the pre-deposited balance in channels as supply, while direct and relay payment requests of this channel constitute demand. Since balance cannot move across channels or be expanded ex post [2], the total supply in a channel is determined solely by the pre-deposited amount set at channel establishment. When transaction demand exceeds the locked balance in a channel, transactions may fail even if other channels have enough balance, as cross-channel reallocation is infeasible. The structural supply–demand mismatch caused by static balance locking is a fundamental cause of insufficient pre-deposited balance problems in PCNs. Existing solutions to the issue of insufficient supply in PCNs can be generally classified into two categories: the

A

C A B

PCN 2

Balance deficit

%DODQFHGHILFLW

PCN 1

3&1 3&1



B

   













C

Fig. 1. Two PCNs with 3 nodes and their balance deficits. Assume that each node possesses the equal balance capital µ. These two networks show different topologies formed by the allocation of their pre-deposited balance at this moment, as shown on the left. Let the amount of transaction balance demand be proportional to the balance with parameter α ∈ [0.7, 1], and it follows Poisson distribution [16] with mean λ = α × µ. The figure on the right reflects the comparison of balance deficits between PCN 1 and PCN 2.

transaction path optimization [3]–[8] and the channel balance planning [2], [9]–[14]. The former strategically selects the optimal transaction path from the available channels to reduce balance shortage, while the latter reasonably allocates the pre-deposited balance on the channel to achieve the supplydemand equilibrium. However, these methods mainly address the supply-demand imbalance through demand adaptation or balance redistribution, which may incur additional adjustment overhead under dynamic environments. Although intuitive, they are costly and temporary since supply optimization must dynamically respond to demand variations. It is vulnerable to the high-cost issue of on-demand adaptation in complex environments. De facto, the real solution often lies beyond superficial manifestations. This indicates that only by recapitulating the fundamental factors of the phenomenon can we embrace the dominant force that functions at a fundamental level. Aware of this, our first question is: What is the dominant force behind the supply-demand dilemma that is not demand-awareness but can still systematically alleviate the balance deficit? To answer the first question, we explore solutions from the topological structure of PCNs, which can be adjusted through channel reconfiguration mechanisms. We conducted empirical experiments in the Lightning Network Daemon [15] to explore the relationship between the topologies of PCNs and balance deficits. By balance deficits, we mean the difference between the demand and the deposited balance within a channel. We tested the expected balance deficits generated in each channel within two different PCN topological structures, as shown in the left panel of fig. 1. The experiment 1 was conducted 100 times, and the results were averaged. The right figure in fig. 1 shows that, with the same demand, the total balance deficit of PCN 1 significantly exceeds that of PCN 2. 1 The blockchain protocol of PCNs (e.g., Bitcoin’s script) requires both parties to jointly authorize channel state updates. Since the transferable balance in each direction is determined by the current channel state, we represent the instantaneous liquidity state as directional balance flows and use directed graphs to capture the allocation of transferable balances in PCNs.

Fig. 2. Balance deficits among different topologies.

To further verify the impact of network topology on balance deficits in PCNs, we extended the experimental setup to test additional connection patterns in three-node PCNs. We strictly ensured that each node possessed at least one outgoing channel and one incoming channel so that all nodes could effectively participate in the circulation of balances within the network. As shown in fig. 2, PCNs with different topological structures exhibit significant differences in balance deficits. These preliminary findings suggest that PCN topology is an important factor affecting balance shortages in the network [17]. Building upon this key observation, we raise the second core research question: What topological characteristics of a PCN can effectively reduce balance deficits? To address the above-mentioned question, we adopt an information-theoretic perspective and introduce the concept of payment topological entropy (P T E), which quantifies the deviation of each node from the global average connection pattern. It characterizes the implicit regularities of the PCN’s balance supply system, which transforms the topological features of a PCN into a quantifiable information entropy parameter. This not only explains the underlying causes of the differences in balance deficits observed between various topologies, such as PCN 1 and PCN 2, but also verifies through further experiments that PCNs with lower balance deficits indeed exhibit higher P T E. Building on this foundation, the third question we aim to answer is: Through what mechanism can we construct a PCN topology that minimizes the risk of balance deficits based on this metric? To tackle the third question, we leverage the characteristic that a PCN topology can be adjusted at low cost via modifying smart contracts. We propose a PTE-guided topology optimization algorithm that iteratively searches for channel consolidations improving the structural organization of liquidity. The algorithm iteratively merges redundant channels between nodes, efficiently aggregating balances that were previously dispersed across multiple channels. While optimizing node connection patterns to increase P T E, it also maintains strong network connectivity through predefined constraints. Our algorithm effectively reduces the risk of channel balance deficits due to supply-demand imbalances while maintaining transaction efficiency, achieving coordinated optimization of

the PCN topological order and transaction performance. Our work moves beyond traditional supply-demand management by uncovering the structural factors that influence balance deficits in PCNs. We propose a demand-robust solution that mitigates the complexity of performance optimization caused by the unpredictability of transient demands and the uncertainty of unknown demands. Our contributions are both pragmatic and theoretical, and can be summarized as follows: 1) We reveal the relationship between balance deficits and PCN topologies from the perspective of structural liquidity organization. Therefore, this insight provides a new perspective for addressing dynamic supply-demand imbalance. Such an insight enables a cost-efficient approach, whereby balance deficits can be mitigated without increasing the total balance through topology-level channel reconfiguration. 2) We introduce P T E, a metric that characterizes the structural properties of balance supply in PCNs. Building upon this metric, we further design a PCN topology optimization algorithm. Under the balance-locking rule, this mechanism efficiently aligns the static balance distribution with the dynamic transaction demand, effectively reducing balance deficits from a perspective of PCNs’ topological structure. 3) Extensive simulations and performance evaluations validate the effectiveness of the proposed approach. Extensive experiments show that our MaxPTE algorithm significantly reduces balance deficits by 27.25%, increases average maximum flow by 12.23%, and decreases transaction failure probability by 25.96%, which surpasses other benchmarks. Moreover, our method demonstrates considerable robustness across various balance-demand distributions, demonstrating its effectiveness in improving the supply–demand balance. II. PAYMENT T OPOLOGICAL E NTROPY A. Definition To quantify the information characteristics of PCN topology, inspired by complex network analysis [18], we introduce payment topological entropy (PTE) as a topology-level indicator of structural liquidity organization, which measures the deviation of each node’s connection pattern from the global average and thereby captures the structural regularities of the balance supply system in PCNs. Definition 1 (Payment topological entropy, P T E). The P T E of a PCN topology is defined as the average structural deviation of all nodes in the network: n

PTE =

1X T V D(Wiout , W in ), n i=1

(1)

where n denotes the total number of nodes in the PCN, and T V D(Wiout , W in ) represents the deviation of node i’s outgoing balance allocation pattern from the network-level incoming balance distribution, measured by the Total Variation Distance (TVD) [19].

Specifically, Wiout = (wi1 , wi2 , . . . , win )

(2)

denotes the normalized outgoing balance distribution of node i, where wij = P

cij

k∈iout cik

,

(3)

where cij denotes the balance allocated P from node i to the channel established with node j, and k∈iout cik represents the total balance reserved by node i. Therefore, wij indicates the proportion of node i’s total reserved balance allocated to node j. In contrast, W in describes the network-level average incoming balance distribution, which is calculated by aggregating the normalized outgoing balance distributions of all nodes: W in = (w1in , w2in , . . . , wnin ),

(4)

where each component is defined as n

wjin =

1X wij . n i=1

(5)

Here, wjin represents the average proportion of normalized outgoing balance received by node j from all nodes in the network. Accordingly, the Total Variation Distance between Wiout and W in is calculated as n

T V D(Wiout , W in ) =

1X wij − wjin . 2 j=1

(6)

The value of T V D(Wiout , W in ) reflects the structural difference between node i’s local liquidity allocation and the global balance circulation pattern. A larger value indicates that node i has a more distinctive balance allocation pattern compared to the network average, while a smaller value suggests that node i follows a distribution closer to the overall network pattern. B. Structural Interpretation of P T E. In a PCN, available liquidity is determined not only by the total amount of pre-deposited balance, but also by how that balance is structurally distributed across payment channels. Due to the channel-level balance-locking mechanism, balances assigned to different outgoing channels form independent liquidity pools and cannot be freely reallocated after channel establishment. Consequently, two PCNs with the same total balance may exhibit different balance deficits because their liquidity is organized through different topological structures. For node i, Wiout describes its local liquidity allocation pattern, representing the proportions of its reserved balance assigned to different outgoing channels. In contrast, W in describes the network-level balance reception pattern obtained by aggregating the normalized outgoing allocations of all nodes. Comparing these two distributions characterizes how

50

A

60

(a) 60

80 B

40

(b) 0.5 B

50

40 C

0.5

A

D

0.5 1

0.5 0.5

A

B

C

D

A

0

0.5

0

0.5

B

0

0

0

1

C

0.5 0.5

0

0

D

0.5

0

0.5

0

1

1

0.5 1.5

D

0.5

0.25 0.25

0.125

TABLE I P T E AND BALANCE DEFICIT OF DIFFERENT PCN S . PCN 1

PCN 2

PCN 3

PCN 4

PCN 5

0.33 0.438

0.39 0.366

0.44 0.295

0.50 0.295

0.67 0.223

(c) Topology PTE Balance deficit

(d)

0.375

C

Fig. 3. Example computation of P T E on a toy PCN and its normalized matrices.

the liquidity role of an individual node differs from the overall balance circulation pattern of the network. When Wiout is close to W in , node i follows a liquidity allocation pattern similar to the network-wide structure. If most nodes exhibit similar allocation behaviors, the network tends to have homogeneous liquidity roles, with multiple nodes providing overlapping liquidity functions. Under the balance-locking mechanism, these repeated allocation patterns fragment available liquidity into multiple independently constrained pools, reducing the efficiency of balance circulation. In contrast, a larger T V D(Wiout , W in ) indicates that node i exhibits a more differentiated liquidity role. Its balance allocation pattern provides a distinct contribution to the overall circulation structure rather than replicating existing allocation patterns. At the network level, differentiated liquidity roles reduce redundant balance allocation and form more effective balance-flow corridors, enabling the existing liquidity supply to support larger transferable flows. Therefore, P T E measures the structural differentiation of liquidity roles among nodes. A low P T E indicates similar balance allocation patterns and the network contains redundant liquidity structures, while a high P T E suggests complementary liquidity roles and a more organized balance supply structure. The effectiveness of P T E stems from the balancelocking mechanism of PCNs. When multiple nodes adopt similar liquidity allocation patterns, the available balance is repeatedly partitioned into independent pools, causing structural redundancy and limiting balance circulation. Therefore, a higher P T E indicates not merely greater topological diversity, but a more complementary organization of liquidity roles that reduces redundant balance allocation. fig. 3 illustrates an example of calculating the P T E of a network. fig. 3(a) shows balances reserved in all channels in the network. fig. 3(b) represents the result of normalizing the pre-deposited funds of each node. For instance, node A allocates 60 coins to the channel from A to B and another 60 coins to the channel from A to D. After normalization, the weight of each outgoing edge from node A becomes 60/(60+ 60) = 0.5. fig. 3(c) represents the normalized transition matrix

of the PCN. Each row describes the proportion distribution of the outgoing balances of the corresponding node to each connected node, i.e., Wiout . fig. 3(d) shows the column-wise summation of all entries in fig. 3(c), corresponding to the ratio of total incoming balances received by each node. The first Pn row lists i=1 wij , and the second row shows the normalized results, i.e., W in . Substituting these values into (1) and (6), we obtain X  1 TVD Wiout , W in PTE = n i={A,B,C,D}   X X 1 1  = wij − W in  4 2 i={A,B,C,D} j={A,B,C,D} 1 1h (0, 0.5, 0, 0.5) − (0.25, 0.25, 0.125, 0.375) = × 4 2 + (0, 0, 0, 1) − (0.25, 0.25, 0.125, 0.375) + (0.5, 0.5, 0, 0) − (0.25, 0.25, 0.125, 0.375) + (0.5, 0, 0.5, 0) − (0.25, 0.25, 0.125, 0.375) = 0.53125. C. Connection between P T E and Topology Reconfiguration The preceding analysis explains how P T E characterizes structural liquidity organization, while topology reconfiguration determines how this property can be improved. Consider a node whose reserved balance is distributed across multiple outgoing channels. When several channels provide similar liquidity functions, maintaining them separately disperses the available balance into multiple independent pools without proportionally improving balance circulation capability. Consolidating such channels preserves the total balance while reorganizing the liquidity allocation toward more distinctive payment directions. Formally, suppose that the balances of two outgoing channels (i, p) and (i, q) are consolidated into channel (i, p). The operation is defined as c′ip = cip + ciq ,

c′iq = 0,

(7)

while the total reserved balance of node i remains unchanged: n X j=1

c′ij =

n X

cij .

(8)

j=1

This operation changes the normalized outgoing distribution Wiout while preserving the total liquidity supply. Among

i

feasible channel pairs, consolidations that increase P T E correspond to reorganizing redundant liquidity allocation into more differentiated structural roles. Therefore, P T E provides a topology-level criterion for identifying which channel configurations should be consolidated without requiring prior knowledge of transaction demands. However, topology optimization should balance structural differentiation and network accessibility. Excessive channel consolidation may reduce available payment paths and affect transaction efficiency. Therefore, MaxPTE optimizes P T E under strong-connectivity constraints and bounded channel modifications, improving liquidity organization while preserving the fundamental reachability of the payment network. III. PCN T OPOLOGY O PTIMIZATION A LGORITHM Existing studies mainly mitigate balance deficits by adjusting routing decisions or reallocating pre-deposited balances according to observed or predicted transaction demands [2], [9]– [14]. In contrast, the role of channel establishment in shaping liquidity partitioning across the network has received considerably less attention. Under the channel-level balance-locking mechanism, different outgoing channels form independently constrained liquidity pools. Consequently, even when the total balance is sufficient, redundant or highly fragmented channel configurations may prevent the available liquidity from being efficiently utilized, thereby aggravating local balance shortages and disrupting network-wide balance circulation. Motivated by this observation, we optimize the topology of the PCN rather than dynamically adapting channel balances to individual demand realizations. Specifically, we consolidate structurally redundant outgoing channels and reallocate their pre-deposited balances to the retained channels. This operation preserves the total balance owned by each node while changing how its liquidity is organized across the topology. The proposed P T E metric is used to evaluate the resulting structural differentiation of node-level liquidity allocations and to select the channel consolidation that most improves the organization of the existing balance supply. As illustrated by the toy PCNs in Table I, topologies with larger P T E values tend to exhibit smaller balance deficits under identical balance and demand settings. This observation indicates that topology configurations with differentiated liquidity roles can provide more efficient balance circulation. Therefore, P T E serves as a structural criterion for guiding topology reconfiguration toward more effective liquidity organizations. However, a larger P T E does not imply that arbitrary channel removal is beneficial. Although consolidating channels can reduce liquidity fragmentation and concentrate balances on more distinctive payment directions, removing too many channels may decrease path diversity, increase routing distance, or even damage network reachability. To balance these competing effects, we constrain the topology optimization in two ways. First, every candidate topology must remain strongly connected, ensuring that each node can still transfer balance to every other node through at least one directed path. Second, we introduce an iteration parameter k

that limits the number of outgoing channels removed from each node during optimization. Therefore, k controls the trade-off between increasing structural liquidity differentiation and preserving transaction-path availability. Based on these principles, we formulate the topology optimization objective as maximizing P T E subject to bounded channel reduction and strong-connectivity constraints. Formally, we propose a PCN topology optimization algorithm named MaxPTE, which maximizes P T E while preserving liquidity accessibility. Given an initial PCN topology G = (V, E), the optimization objective is formulated as max

G′ =(V,E ′ )

s.t.

P T E(G′ ), 0 ≤ dout − d′out ≤ k, i i ′

∀i ∈ V,

G is strongly connected, X X c′ij = cij , ∀i ∈ V. j

(9)

j

where dout and d′out denote the outgoing degrees before i i and after optimization, respectively. The second constraint preserves network accessibility, while the third constraint guarantees that topology reconfiguration only reorganizes existing liquidity without introducing additional balance. Algorithm 1 MaxPTE Input: Initial PCN G(V, E), total iteration round k Output: Modified PCN G′ (V, E ′ ) 1: G′ (V, E ′ ) = G(V, E) 2: for iter = 1 to k do 3: for each v ∈ V do 4: maxPTE = PTE(G′ ), tmpN = ∅, tmpM = ∅ 5: if v.number of channels > 2 then 6: for i, j ∈ v.neighbors(i ̸= j) do 7: tmpG(V, tmpE) = G′ (V, E ′ ) 8: tmpE.balance(v, i) += tmpE.balance(v, j) 9: tmpE.remove(v, j) 10: if PTE(tmpG) > maxPTE and tmpG is strongly connected then 11: maxPTE = PTE(tmpG) 12: tmpN = i, tmpM = j 13: end if 14: end for 15: if tmpN ̸= ∅ then 16: E ′ .balance(v,tmpN) += E ′ .balance(v,tmpM) 17: E ′ .remove(v, tmpM) 18: end if 19: end if 20: end for 21: end for The pseudocode is shown in algorithm 1. Denote the optimized graph by G′ . The algorithm begins by initializing G′ as the original graph G (Line 1). It proceeds k rounds iteratively (Line 2). In each round, each node v in V are sequentially processed by attempting to reduce one channel

A

A

1 0.5

1

B 0.5

C

MaxPTE

nodes, and |E| represents the number of channels in the PCN. 1 B

1 1

( =1) C

0.50 Fig. 4. An example of the MaxPTE algorithm with one iteration (i.e., k = 1). Before implementing the MaxPTE algorithm, P T E(G) = 0.50. By the MaxPTE algorithm, node B consolidates the channel towards node A into the channel towards node C, aggregating the corresponding balance while preserving the total liquidity supply. As a result, the graph G′ with the maximum P T E is obtained, achieving P T E(G′ ) = 0.67.

from itself (Line 3). Specifically, the P T E of the current graph G′ is recorded in the variable maxPTE, which tracks the highest P T E achieved during the process. To facilitate the optimization, two temporary variables, tmpN and tmpM, are introduced to store the current best merging scheme (Line 4). If the number of channels associated with node v exceeds 2 (Line 5), the algorithm initiates the merging process for the corresponding channels. Merging the channels (v, tmpN ) and (v, tmpM ) represents the current best scheme, which is determined through the following steps: Step 1: Identifying the optimal channel merging scheme, which maximizes the P T E value, for node v (Line 6-14): The two neighbors i and j, of node v are first identified (Line 6), and a temporary graph tmpG(V, E) is created to simulate the merging process. In tmpG, the balances of channel (v, i) are added to the channel (v, j) (Line 7-8), and the channel (v, j) is subsequently removed (Line 9). If the P T E of tmpG exceeds the current maxPTE and tmpG remains strongly connected (i.e., each node can transfer balance to any other node in the network) (Line 10), the value of maxPTE is updated to reflect the new P T E of tmpG (Line 11). Furthermore, the temporary variables tmpN and tmpM are updated to store the corresponding merging scheme (Line 12). Step 2: Updating the network based on the optimal merging scheme (Lines 15–18): If tmpN is non-null, it indicates the discovery of a merging scheme yielding a higher P T E than the initial one for graph G′ at node v (Line 15). The PCN is updated by adding the balances of channel (v, tmpM) to channel (v, tmpN) (Line 16) and subsequently removing channel (v, tmpM) (Line 17). This ensures that network G′ is incrementally refined and optimized. We use fig. 4 to provide an example of the MaxPTE algorithm. It effectively ensures that each node undergoes at most k channel merges, improving network structure with limited topology modifications. For changes in channel balance, when altering the topology, i.e., merging two channels, the balance is explicitly deployed into the merged channel. Theorem 1. The time complexity of MaxPTE is O(kn∆2 |E|), where k is the maximum number of channel reductions for a single node, ∆ denotes the maximum outgoing degree of

Proof. The algorithm performs at most k iterations, and each iteration processes all n nodes. For each node, MaxPTE enumerates pairs of outgoing neighbors to identify the optimal channel consolidation scheme. Since the number of neighbors is bounded by the maximum outgoing degree ∆, the number of candidate consolidations for each node is O(∆2 ). For each candidate consolidation, the algorithm evaluates the resulting P T E. Computing P T E requires constructing the balance allocation distributions and calculating the deviations between node-level and network-level liquidity patterns, which takes O(|E|) time using the adjacency representation of the PCN. Therefore, considering all nodes and iterations, the overall time complexity is O(kn∆2 |E|). Although MaxPTE has polynomial complexity, it is designed as a topology maintenance mechanism rather than an online routing algorithm, and is therefore executed periodically during channel establishment or topology adjustment instead of for individual transactions. Moreover, real-world PCNs usually exhibit sparse connectivity. The average node degree is approximately 7.43 [20]; the LTC mainnet contains only 95 nodes, and the global Lightning Network contains 14,872 nodes [21]. Therefore, MaxPTE is mainly affected by local neighborhood structures rather than the global network scale, making it applicable to practical PCN environments. IV. E XPERIMENTAL E VALUATION In this section, we adopt three representative metrics, consisting of balance deficit, average maximum flow, and transaction failure probability, which have been widely used to assess liquidity efficiency and network performance in prior PCN studies [2], [3], [8], [22]. These studies focus on balance management or routing rather than topology modification, and are cited only for their metric formulations. We conduct comprehensive evaluations of performance in PCN on a 64bit Ubuntu 16.04 operating system utilizing the Lightning Network Daemon [15] and Python’s NetworkX [23]. A. Necessity Analysis We first demonstrate the necessity of consolidating fragmented channels to improve liquidity utilization. Consider a PCN containing multiple independent channels, where each channel reserves a portion of the total available balance. Since channel balances are independently locked, these separated liquidity pools cannot be directly shared when transaction demands arrive. Therefore, even when the aggregate balance is sufficient, fragmented channel configurations may lead to local balance shortages. As illustrated in fig. 5(a), the original PCN contains n independent channels, and the balance deployed in each channel is denoted by µ. When these fragmented channels are consolidated, their balances are aggregated into a combined channel with total capacity n × µ, as shown in fig. 5(b). The total liquidity supply remains unchanged, while the available

μ

μ

… n

(1) Independent channels

n×μ

(2) Combined channel

α

Independent Channels

μ

Balance deficit

μ

Combined Channel

balance becomes less fragmented and can serve a wider range of transaction demands.

μ

Fig. 5. Schematic diagram of fragmented channels before consolidation and the aggregated channel after consolidation.

Fig. 6. Balance deficit comparison.

To evaluate the occurrence of supply-demand imbalance risk within channels under varying degrees of supply-demand urgency, we introduce the load factor α ∈ [0.5, 1]. Under the conditions µ ∈ [0, 100] ( The definition of α and µ are illustrated in fig. 1) and n = 10, we calculate the balance deficit generated by both the combined channel and the independent channels. To mitigate the impact of extreme probabilities, we conducted 1,000 independent experiments and used the average values as the balance deficit for each channel type. As shown in fig. 6, the blue plane represents the balance deficit of the independent channels, while the red plane represents that of the combined channel. As α increases, the balance deficit in the channels grows. Additionally, regardless of changes in α and µ, the balance deficit from the combined channel is consistently lower than that of the independent channels. Consolidating fragmented channels improves the efficiency of existing balance supply and increases the likelihood of meeting transaction demands.

The clustering coefficient of a node is defined as the ratio of the number of existing edges among its neighbors to the maximum possible number of such edges, and the network clustering coefficient is the average across all nodes. For fairness, all networks preserve the same total number of channels as the MaxPTE-optimized topology, and we fix k = 1 for MaxPTE in this evaluation. The metrics we used are as follows. According to the definition of maximum flow in a network [26], for any two nodes i and j (i ̸= j), the maximum transferable P balance  f through all paths is defined as Fij = max p∈Pij p , where Pij denotes the set of all valid paths between nodes i and j, and fp is the transferable balance along path p.PThe total maximum flow of a PCN can be written as M F = i̸=j Fij . The balance deficit between the node pair is defined as ′ ′ Deficitij = max{ 0, Dij − Fij }, where Dij represents the balance demand from node i to node j. The overall balance deficit is obtained by averaging Deficitij across all node pairs. To assess the robustness of our approach under different transaction patterns, we evaluate balance deficits under four representative demand distributions [16]. The variable Demand serves as a global scaling factor to uniformly amplify the generated demand matrix and simulate different traffic intensities. (a) Poisson: Transaction demands between node pairs are independently generated according to a Poisson distribution Mij ∼ Poisson(λ) with λ = 20, reflecting spontaneous and uncorrelated payment requests in steady-state PCNs. (b) Uniform: Transaction demands are uniformly distributed across node pairs as Mij ∼ U (0, 2λ) with λ = 20, simulating balanced liquidity utilization across the topology. (c) Power-law: To model hub-dominated transaction patterns, node weights are generated according to their connectivity ranks as wi ∝ 1/rank(i)s with s = 0.5. The final weights combine power-law and uniform components as w = αwpower−law + (1 − α)wuniform with α = 0.5, and the demand matrix is constructed as M = 2λww⊤ . (d) Gaussian: To capture locality-aware transaction patterns, demands are concentrated around three highly connected nodes (|C| = 3), P and the pairwise demand is generated according to Mij = c∈C exp(−(d(i, c)2 + d(j, c)2 )/(2σ 2 )), where σ = 2.0. This captures transactions concentrated around

B. Balance deficit This subsection evaluates how different channel allocation strategies respond to heterogeneous transaction demands through four representative distributions. Using 1ML’s channels-per-node percentiles [20] (e.g., 25% of nodes have ≥ 4 channels, 5% ≥ 25, 1% ≥ 96), we generate 10 Lightning Network topologies (200 nodes and about 750 edges each). Each node allocates a total balance of 100 satoshis to its payment channels. We then apply our proposed MaxPTEbased optimization and compare the results with networks constructed by several baseline channel-consolidation algorithms. Specifically, we consider the following methods: (1) Random: Each node randomly merges two channels. (2) MaxOut: Each node merges channels with its two neighboring nodes having the highest degree. (3) MinOut: Each node merges channels with its two neighboring nodes having the lowest degree. (4) MaxBetweenness: Each node selects its two channels with the highest betweenness [24] for merging. The betweenness of an edge is the ratio of the number of shortest paths that pass through it to the total number of shortest paths in the network. (5) MaxClustering: Each node selects two of its channels for merging to maximize the network’s clustering coefficient [25].

   







D 3RLVVRQ



 





E 8QLIRUP





%DODQFHGHILFLW



0D[&OXVWHULQJ 0D[%HWZHHQQHVV 0LQ2XW 0D[2XW 5DQGRP 0D[37( 2ULJLQDO 

 

   $YHUDJH0D[LPXP)ORZ





Fig. 8. Average maximum flows of different PCNs.

 







F 3RZHUODZ



 

'HPDQG





G *DXVVLDQ







'HPDQG

Fig. 7. Average balance deficits under different demand distributions.

structurally central nodes such as merchants or liquidity hubs. As we can see, fig. 7 shows the average balance deficits under different demand distributions. As transaction demand increases, balance deficits grow accordingly. Notably, our MaxPTE-optimized PCN consistently yields lower balance deficits than both the original and other baseline networks. Across all demand models, our MaxPTE algorithm reduces the average balance deficits by 27.25% compared to the original network and is considerably lower than that of other algorithms, indicating that it effectively reduces balance deficits and mitigates supply-demand imbalances in PCNs, outperforming other strategies. The improvement is especially significant under heterogeneous demand patterns (power-law and Gaussian distributions), where balance allocation and channel connectivity are highly uneven. This confirms that the MaxPTE algorithm enhances balance robustness by mitigating supply–demand mismatches and demonstrates robustness across different demand distributions.

 Pfail  

%DODQFHGHILFLW

2ULJLQDO 0D[37( 5DQGRP 0D[2XW 0LQ2XW 0D[%HWZHHQQHVV 0D[&OXVWHULQJ



2ULJLQDO 0D[37( 5DQGRP 0D[2XW 0LQ2XW 0D[%HWZHHQQHVV 0D[&OXVWHULQJ

 

           Fig. 9. Proportion of failure transactions.

flow by 12.23% compared to the original network. Moreover, MaxPTE algorithm significantly outperforms other channel merging strategies. Furthermore, with the analysis of balance deficit above, fig. 8 also explains the reasons behind the superior performance of the MaxPTE algorithm — the increase in maximum flow enhances the mobility and circulation of balance within the network, significantly contributing to mitigating supply-demand imbalances.

C. Average maximum flow

D. Proportion of failure transactions

Based on the above definition of the maximum flow (M F ) between nodes, we define the average maximum flow (AM F ) of the network as the average of the maximum flows between all node pairs in PCN, which can be expressed as:   X X 1 AM F = max  fp  , n(n − 1)

We define Pfail (Ω) as the fraction of transaction requests that cannot be successful. We refer to Ω as the transaction balance demand, indicating the required amount for network routing feasibility. Intuitively, higher Ω values correspond to larger balance requirements from the network. Formally, let T be the set of all node pairs, and let Fmax (s, d) denote the maximum available flow between source s and destination d under current channel balances. A transaction with balance demand Ω from s to d is deemed to fail if Fmax (s, d) < Ω. The failure probability metric follows prior approaches that quantify reliability and flow failures in PCNs [22]. Then we have 1 X Pfail (Ω) = 1[ Fmax (s, d) < Ω ] , |T |

i̸=j

p∈Pij

where n is the total number of nodes in the network, and n(n − 1) represents the number of node pairs with direction. fig. 8 uses box plots to present the PCN average maximum flow values under different channel merging algorithms. The red vertical line in the center of each box plot represents the median of multiple experimental results. It can be observed that the MaxPTE algorithm improves the average maximum

(s,d)∈T

which measures the share of transactions that cannot be fulfilled at the balance demand level Ω. A higher Pfail (Ω) indicates that fewer node pairs can forward transactions requiring at least Ω satoshis in total, implying a stronger supply–demand imbalance in the network. As shown in fig. 9, the shaded bands represent the variation across 10 different network topologies. It is evident that MaxPTE algorithm achieves the lowest average failure probability, outperforming all baseline methods. MaxPTE algorithm reduces the mean transaction failure rate by 25.96% compared to the original topology. These quantitative results confirm that MaxPTE achieves the best performance among evaluated PCNs, significantly reducing transaction failures even under high balance demands, while alternative heuristics experience substantially higher Pf ail (Ω) values on average. E. Discussion The evaluation results demonstrate that MaxPTE effectively improves liquidity utilization and reduces transaction failures by reorganizing the structural allocation of existing balances. Different from demand-driven balance adaptation methods, MaxPTE provides a topology-level optimization perspective, enabling PCNs to enhance supply-demand alignment through structural reconfiguration. This property makes MaxPTE complementary to existing balance management and routing optimization approaches. V. R ELATED W ORK To enhance the transaction success rate in PCN while maintaining supply-demand balance, related solutions can be generally categorized into transaction path optimization and channel balance management. The methods of transaction routing optimization are illustrated by typical works: Spider [3], which employs a multi-path partitioned transmission technique that divides transactions into smaller packets transmitted along separate paths. This method reduces strain on paths and enables better resource use and dynamic traffic management. FSTR [4] introduces a path selection mechanism based on balance skewness, prioritizing routes with sufficient, evenly distributed balances to minimize path exhaustion risk and ensure a strategic selection process. Boomerang [5] enhances transaction success by incorporating redundant payment routes. During execution, payment packets are dispatched simultaneously across multiple paths. Once the recipient confirms receipt of the full amount, any unnecessary routes are immediately terminated to avoid excessive payments. Spear [6] employs a similar method, ensuring at least one route successfully delivers the necessary balance. Upon payment confirmation, redundant paths are quickly interrupted, enhancing efficiency. Robust Pay+ [7] tackles the challenge of reliable routing by proposing a distributed algorithm that identifies the minimum-cost path in adverse conditions, maintaining stability and managing expenses effectively. BRBW [8] combines an enhanced maximum flow algorithm with the Analytic Hierarchy Process (AHP) to locate routes with sufficient capacity while

constructing a weight model that considers multiple factors, creating a sophisticated framework for optimizing transaction paths regarding both performance and reliability. Additionally, balance planning schemes for payment channels primarily include the following approaches: Revive [2] enables users in PCN to securely rebalance channel balances according to channel owners’ preferences without closing or topping up channels, ensuring flexible balance management. It also achieves global rebalancing through localized adjustments, reducing the risk of balance shortages across the network. HIDE & SEEK [9] proposes a participatory rebalancing protocol that utilizes multi-party computation to solve linear programming problems, preserving privacy while achieving optimal balance rebalancing and preventing disclosure of sensitive balance distributions among participants. Cycle [10] maintains balance equilibrium within PCN through asynchronous rebalancing and circular payments, maximizing balance utilization across interconnected channels and enhancing rebalancing efficiency. Shaduf [11], a novel offchain rebalancing protocol, optimizes balance management in payment channel networks by transferring balances directly instead of relying on periodic configurations, thereby reducing dependence on liquidity cycles. PnP [12] utilizes approximation algorithms and encrypted sorting to determine the deployment strategy for initial balance allocation in payment channels, ensuring that balance distribution meets transaction demands while optimizing balance utilization during the channel’s initialization phase. UAR [13] optimizes payment channel liquidity by shifting tokens from high-balance to low-balance and high-utility channels, maximizing transaction success rates. The Fence [14], utilizing an online competitive algorithm, dynamically allocates balance through real-time adjustments, adapting to network changes while minimizing inefficiencies and delays in the planning process. However, the effectiveness of the aforementioned methods largely depends on demand prediction accuracy. Due to dynamic changes in transaction demands and channel conditions, these methods often require frequent updates to adapt to evolving balance allocation and network states. Our work differs from existing studies by optimizing the structural organization of liquidity through topology reconfiguration rather than adjusting routing decisions or balance allocations. VI. C ONCLUSION Although PCNs provide an effective solution to blockchain scalability, balance shortages remain a critical challenge. This paper reveals the impact of topology structure on balance efficiency and proposes P T E to characterize structural liquidity patterns. Based on P T E, we develop MaxPTE to optimize channel organization while preserving network accessibility. Extensive experiments under various balance-demand distributions show that MaxPTE reduces balance deficits by 27.25%, improves average maximum flow by 12.23%, and decreases transaction failure probability by 25.96% compared with baseline methods, demonstrating its effectiveness without relying on prior demand prediction.

R EFERENCES [1] J. Poon and T. Dryja, “The bitcoin lightning network: scalable off-chain instant payments (2016),” 2016. [2] R. Khalil and A. Gervais, “Revive: Rebalancing off-blockchain payment networks,” in Proceedings of the 2017 acm sigsac conference on computer and communications security, 2017, pp. 439–453. [3] V. Sivaraman, S. B. Venkatakrishnan, K. Ruan, P. Negi, L. Yang, R. Mittal, G. Fanti, and M. Alizadeh, “High throughput cryptocurrency routing in payment channel networks,” in 17th USENIX Symposium on Networked Systems Design and Implementation (NSDI 20), 2020, pp. 777–796. [4] S. Lin, J. Zhang, and W. Wu, “Fstr: Funds skewness aware transaction routing for payment channel networks,” in 2020 50th Annual IEEE/IFIP International Conference on Dependable Systems and Networks (DSN). IEEE, 2020, pp. 464–475. [5] V. Bagaria, J. Neu, and D. Tse, “Boomerang: Redundancy improves latency and throughput in payment-channel networks,” in International Conference on Financial Cryptography and Data Security. Springer, 2020, pp. 304–324. [6] S. Rahimpour and M. Khabbazian, “Spear: fast multi-path payment with redundancy,” in Proceedings of the 3rd ACM Conference on Advances in Financial Technologies, 2021, pp. 183–191. [7] Y. Zhang and D. Yang, “Robustpay+: Robust payment routing with approximation guarantee in blockchain-based payment channel networks,” IEEE/ACM Transactions on Networking, vol. 29, no. 4, pp. 1676–1686, 2021. [8] Y. Liu, Y. Wu, F. Zhao, and Y. Ren, “Balanced off-chain payment channel network routing strategy based on weight calculation,” The Computer Journal, vol. 67, no. 3, pp. 907–922, 2024. [9] Z. Avarikioti, K. Pietrzak, I. Salem, S. Schmid, S. Tiwari, and M. Yeo, “Hide & seek: Privacy-preserving rebalancing on payment channel networks,” in International Conference on Financial Cryptography and Data Security. Springer, 2022, pp. 358–373. [10] Z. Hong, S. Guo, R. Zhang, P. Li, Y. Zhan, and W. Chen, “Cycle: Sustainable off-chain payment channel network with asynchronous rebalancing,” in 2022 52nd Annual IEEE/IFIP International Conference on Dependable Systems and Networks (DSN). IEEE, 2022, pp. 41–53. [11] Z. Ge, Y. Zhang, Y. Long, and D. Gu, “Shaduf: Non-cycle payment channel rebalancing.” in NDSS, 2022. [12] P. Li, T. Miyazaki, and W. Zhou, “Secure balance planning of offblockchain payment channel networks,” in IEEE INFOCOM 2020-IEEE conference on computer communications. IEEE, 2020, pp. 1728–1737. [13] W. Ni, P. Chen, L. Chen, P. Cheng, C. J. Zhang, and X. Lin, “Utilityaware payment channel network rebalance,” Proceedings of the VLDB Endowment, vol. 17, no. 2, pp. 184–196, 2023. [14] X. Wang, R. Yu, D. Yang, G. Xue, H. Gu, Z. Li, and F. Zhou, “Fence: Fee-based online balance-aware routing in payment channel networks,” IEEE/ACM Transactions on Networking, 2023. [15] L. N. Daemon, Available online: https://github.com/lightningnetwork/lnd, 2024. [16] S. M. Ross, Introduction to probability models. Academic press, 2014. [17] I. A. Seres, L. Gulyás, D. A. Nagy, and P. Burcsi, “Topological analysis of bitcoin’s lightning network,” in Mathematical Research for Blockchain Economy: 1st International Conference MARBLE 2019, Santorini, Greece. Springer, 2020, pp. 1–12. [18] M. E. Newman, “The structure and function of complex networks,” SIAM review, vol. 45, no. 2, pp. 167–256, 2003. [19] T. Cover and J. Thomas, Elements of Information Theory. Wiley, 2012. [Online]. Available: https://books.google.com/books?id=VWq5GG6ycxMC [20] Lightning Network Statistics, “The lightning network browser,” Available online: https://1ml.com/, 2023, accessed: 2023. [21] Mempool, “Lightning explorer,” Available online: https://mempool.space/zh/lightning, 2025, accessed: 2025-04-17. [22] E. Rohrer, J. Malliaris, and F. Tschorsch, “Discharged payment channels: Quantifying the lightning network’s resilience to topology-based attacks,” in 2019 ieee european symposium on security and privacy workshops (euros&PW). IEEE, 2019, pp. 347–356. [23] A. A. Hagberg, D. A. Schult, and P. J. Swart, “Exploring network structure, dynamics, and function using networkx,” in Proceedings of the 7th Python in Science Conference (SciPy2008), 2008, pp. 11–15. [24] L. Freeman, “A set of measures of centrality based on betweenness,” Sociometry, 1977.

[25] D. J. Watts and S. H. Strogatz, “Collective dynamics of ‘smallworld’networks,” Nature, vol. 393, no. 6684, pp. 440–442, 1998. [26] L. R. Ford and D. R. Fulkerson, “Maximal flow through a network,” Canadian Journal of Mathematics, vol. 8, p. 399–404, 1956.

Related documents

Record · ID 639628 · SHA-256 138bbd1e72ce12b7
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive