File size: 2,285 Bytes
b7289ad
 
7b0ffce
 
b7289ad
7b0ffce
 
 
 
b7289ad
7b0ffce
 
 
 
b7289ad
7b0ffce
 
 
 
b7289ad
 
 
 
 
7b0ffce
 
b70bf9f
db5e2c4
b7289ad
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c7d710f
b7289ad
 
 
 
 
 
 
 
 
 
 
 
 
 
1c58248
b7289ad
 
 
7b0ffce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
language:
- en
license: cc-by-4.0
size_categories:
- 100K<n<1M
pretty_name: Lightning Network Gossip Channel Closure Dataset
task_categories:
- graph-ml
tags:
- lightning-network
- bitcoin
- temporal-graph
- link-classification
configs:
- config_name: default
  data_files:
  - split: full
    path: tgbl-ln_edgelist.csv
---

# Lightning Network Gossip — Channel Closure Dataset

Daily snapshots of the Lightning Network (LN) collected from gossip messages
between **2022-06-09** and **2024-10-14**. Used in the paper [Predicting
Channel Closures in the Lightning Network with Machine Learning](https://huggingface.co/papers/2605.12759) (Antonelli
et al., 2026, under review) and consumed by the
[ln-channel-closure-prediction](https://github.com/AmbossTech/ln-channel-closure-prediction)
codebase.

## Schema (one row per gossip event)

| Column | Description |
|---|---|
| `chan_id` | Lightning channel identifier (`block:tx_idx:vout`). |
| `transaction_id`, `transaction_vout` | Funding transaction reference. |
| `last_update` | Last gossip update timestamp (ms). |
| `capacity` | Channel capacity (sat). |
| `src`, `dst` | Endpoint public keys (hex). |
| `src_*`, `dst_*` | Per-direction routing policy: time-lock delta, htlc bounds, fee base/rate, disabled flag, max-htlc, last-update timestamp. |
| `channel_status` | `OPEN` / `CLOSED`. |
| `closing_info` | `OPEN` / `MUTUAL` / `FORCED` / `LOCAL_CLOSED` / `PENALTY_CLOSED`. |
| `src_alias`, `dst_alias`, `src_implementation`, `dst_implementation` | Endpoint metadata. |
| `gossip_ts` | Event observation timestamp (ms). |
| `ts`, `height`, `block_avg_fee_rate` | On-chain funding metadata. |

## Statistics

- **Events:** 693 277.
- **Unique nodes:** 36 170.
- **Class distribution at prediction time** (over open edges):
  open ≈83 %, mutual ≈9 %, forced ≈8 %.

## Notes on the initial snapshot

The first day (2022-06-09) carries the entire pre-existing LN state as a
single batch of artificial "openings" — about 38 % of the rows. The
benchmark's `warm_start` mode initialises from these events without using
them for training/eval.

## License

Dataset is released under **CC-BY-4.0**. The underlying gossip messages are
public by design.

## Citation

A BibTeX entry will be added once the paper is published.