<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.simulace.info/index.php?action=history&amp;feed=atom&amp;title=User%3AFilip_Simul%C3%A1tor</id>
	<title>User:Filip Simulátor - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.simulace.info/index.php?action=history&amp;feed=atom&amp;title=User%3AFilip_Simul%C3%A1tor"/>
	<link rel="alternate" type="text/html" href="http://www.simulace.info/index.php?title=User:Filip_Simul%C3%A1tor&amp;action=history"/>
	<updated>2026-07-27T11:47:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>http://www.simulace.info/index.php?title=User:Filip_Simul%C3%A1tor&amp;diff=26209&amp;oldid=prev</id>
		<title>Filip Simulátor: Created page with &quot;=Lightning Network Channel Dynamics Simulation=  The Lightning Network represents a promising solution to Bitcoin's scalability challenges, enabling fast and low-cost transact...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.simulace.info/index.php?title=User:Filip_Simul%C3%A1tor&amp;diff=26209&amp;oldid=prev"/>
		<updated>2025-01-03T20:36:13Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=Lightning Network Channel Dynamics Simulation=  The Lightning Network represents a promising solution to Bitcoin&amp;#039;s scalability challenges, enabling fast and low-cost transact...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Lightning Network Channel Dynamics Simulation=&lt;br /&gt;
&lt;br /&gt;
The Lightning Network represents a promising solution to Bitcoin's scalability challenges, enabling fast and low-cost transactions. In the Czech Republic, it's gaining practical adoption with merchants like Alza.cz, Rohlik.cz and payment processors like Qerko and GoPay.&lt;br /&gt;
&lt;br /&gt;
The network consists of payment channels, direct connections between two participants. Each channel has a fixed capacity, representing the total funds locked in for transactions. This capacity is shared between the two participants, with each holding a portion of the total on his side of the channel. Payments update the balance distribution within the channel. If two participants don't have a direct channel, the network routes payments through connected channels, relying on intermediary nodes with enough capacity to complete the transfer.&lt;br /&gt;
&lt;br /&gt;
==What will be simulated:==&lt;br /&gt;
A NetLogo agent-based simulation of Lightning Network payment channels that models:&lt;br /&gt;
&lt;br /&gt;
* Nodes (merchants, customers, routing nodes) as agents with defined balances and behaviors&lt;br /&gt;
* Payment channels as links between nodes with specific capacities&lt;br /&gt;
* Transaction routing through the network&lt;br /&gt;
* Channel balance changes and payment success/failure dynamics&lt;br /&gt;
&lt;br /&gt;
==Goal of the simulation:==&lt;br /&gt;
To analyze how different network configurations affect payment success rates and channel efficiency, specifically:&lt;br /&gt;
&lt;br /&gt;
* Identify optimal channel capacity distribution for maximizing successful payments&lt;br /&gt;
* Determine relationship between node connectivity and network reliability&lt;br /&gt;
* Find bottlenecks in payment routing that cause transaction failures&lt;br /&gt;
&lt;br /&gt;
==Who would use the simulation and how it helps them:==&lt;br /&gt;
===Primary users:===&lt;br /&gt;
&lt;br /&gt;
====New merchants considering Lightning Network adoption:====&lt;br /&gt;
* Understand required number of payment channels&lt;br /&gt;
* Plan initial channel capacity requirements&lt;br /&gt;
* Estimate liquidity needs&lt;br /&gt;
&lt;br /&gt;
====Lightning Network node operators:====&lt;br /&gt;
* Optimize channel configurations&lt;br /&gt;
* Understand routing effectiveness&lt;br /&gt;
* Plan capital allocation&lt;br /&gt;
&lt;br /&gt;
==Method and simulation environment:==&lt;br /&gt;
* Method: Agent-based modeling&lt;br /&gt;
* Environment: NetLogo&lt;br /&gt;
&lt;br /&gt;
==Variables incorporated:==&lt;br /&gt;
&lt;br /&gt;
===Deterministic Variables:===&lt;br /&gt;
====Number of nodes (N):====&lt;br /&gt;
* Initial setup: 100-200 nodes&lt;br /&gt;
* Based on small subset of real network for feasibility&lt;br /&gt;
* Can be adjusted via interface slider&lt;br /&gt;
&lt;br /&gt;
====Initial channel capacity (C):====&lt;br /&gt;
* Range: 0.001 - 0.1 BTC per channel&lt;br /&gt;
* Based on average values from 1ML.com statistics&lt;br /&gt;
* Set at channel creation time&lt;br /&gt;
&lt;br /&gt;
====Node types:====&lt;br /&gt;
* Merchant: 20% of nodes&lt;br /&gt;
* Customer: 70% of nodes&lt;br /&gt;
* Routing-node: 10% of nodes&lt;br /&gt;
* Proportions based on network analysis papers&lt;br /&gt;
&lt;br /&gt;
====Base fee per transaction:====&lt;br /&gt;
* Default: 1 satoshi base + 0.001% of amount&lt;br /&gt;
* Based on common Lightning node configurations&lt;br /&gt;
&lt;br /&gt;
====Network topology structure:====&lt;br /&gt;
* Average connections per node: 3-8&lt;br /&gt;
* Based on observed network patterns&lt;br /&gt;
* Follows power-law distribution&lt;br /&gt;
&lt;br /&gt;
===Random Variables:===&lt;br /&gt;
====Transaction amounts:====&lt;br /&gt;
* Distribution: Log-normal&lt;br /&gt;
* Mean: 50,000 satoshis&lt;br /&gt;
* Standard deviation: 25,000 satoshis&lt;br /&gt;
* Based on public Lightning Network statistics&lt;br /&gt;
&lt;br /&gt;
====Transaction timing:====&lt;br /&gt;
* Poisson distribution&lt;br /&gt;
* Mean arrival rate (λ): 0.1 transactions per node per minute&lt;br /&gt;
* Can be adjusted via interface slider&lt;br /&gt;
&lt;br /&gt;
====Channel balance fluctuations:====&lt;br /&gt;
* Random walk within channel capacity&lt;br /&gt;
* Step size: Normal distribution (μ=0, σ=0.01 × capacity)&lt;br /&gt;
* Updates every simulation tick&lt;br /&gt;
&lt;br /&gt;
====Node connection preferences:====&lt;br /&gt;
* Probability of connection decreases with distance&lt;br /&gt;
* Weighted by node type and existing connections&lt;br /&gt;
* Uses preferential attachment model&lt;br /&gt;
&lt;br /&gt;
====Payment success probability:====&lt;br /&gt;
* Base probability: 0.95&lt;br /&gt;
* Modified by:&lt;br /&gt;
** Channel capacity utilization&lt;br /&gt;
** Path length&lt;br /&gt;
** Node type&lt;br /&gt;
&lt;br /&gt;
==Data sources for variable values:==&lt;br /&gt;
===Network structure and capacities:===&lt;br /&gt;
====Public Lightning Network explorer (1ML.com):====&lt;br /&gt;
* Current number of nodes (~17,000)&lt;br /&gt;
* Average channel capacity (~0.03 BTC)&lt;br /&gt;
* Node distribution and connectivity patterns&lt;br /&gt;
&lt;br /&gt;
====Mempool.space statistics:====&lt;br /&gt;
* Total network capacity&lt;br /&gt;
* Channel count&lt;br /&gt;
* Node count&lt;br /&gt;
&lt;br /&gt;
===Transaction patterns:===&lt;br /&gt;
* Public Lightning Network statistics from Bitcoin Visuals (bitcoinvisuals.com)&lt;br /&gt;
* Academic research papers on Lightning Network analysis:&lt;br /&gt;
** &amp;quot;Lightning Network: a second path towards centralisation of the Bitcoin economy&amp;quot; (Lin et al., 2020)&lt;br /&gt;
** &amp;quot;A Quantitative Analysis of Security, Anonymity and Scalability for the Lightning Network&amp;quot; (Tikhomirov et al., 2020)&lt;br /&gt;
&lt;br /&gt;
===Simulation behavior formulas based on:===&lt;br /&gt;
====Payment routing:====&lt;br /&gt;
* Lightning Network specifications (BOLTs) from lightning-rfc repository&lt;br /&gt;
* LND implementation documentation&lt;br /&gt;
* Published research on routing behavior&lt;br /&gt;
&lt;br /&gt;
====Channel balancing:====&lt;br /&gt;
* Lightning Network whitepaper formulas&lt;br /&gt;
* Public node operation best practices&lt;br /&gt;
* Academic analysis of channel dynamic&lt;/div&gt;</summary>
		<author><name>Filip Simulátor</name></author>
		
	</entry>
</feed>