Add dataset card
Browse files
README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pretty_name: Lightning Network Gossip Channel Closure Dataset
|
| 6 |
+
size_categories:
|
| 7 |
+
- 100K<n<1M
|
| 8 |
+
tags:
|
| 9 |
+
- lightning-network
|
| 10 |
+
- bitcoin
|
| 11 |
+
- temporal-graph
|
| 12 |
+
- link-classification
|
| 13 |
+
configs:
|
| 14 |
+
- config_name: default
|
| 15 |
+
data_files:
|
| 16 |
+
- split: full
|
| 17 |
+
path: tgbl-ln_edgelist.csv
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# Lightning Network Gossip — Channel Closure Dataset
|
| 21 |
+
|
| 22 |
+
Daily snapshots of the Lightning Network (LN) collected from gossip messages
|
| 23 |
+
between **2022-06-09** and **2024-10-14**. Used in the paper *Predicting
|
| 24 |
+
Channel Closures in the Lightning Network with Machine Learning* (Antonelli
|
| 25 |
+
et al., BCCA 2026) and consumed by the
|
| 26 |
+
[ln-gossip-benchmark](https://github.com/siantonelli/ln-gossip-benchmark)
|
| 27 |
+
codebase.
|
| 28 |
+
|
| 29 |
+
## Schema (one row per gossip event)
|
| 30 |
+
|
| 31 |
+
| Column | Description |
|
| 32 |
+
|---|---|
|
| 33 |
+
| `chan_id` | Lightning channel identifier (`block:tx_idx:vout`). |
|
| 34 |
+
| `transaction_id`, `transaction_vout` | Funding transaction reference. |
|
| 35 |
+
| `last_update` | Last gossip update timestamp (ms). |
|
| 36 |
+
| `capacity` | Channel capacity (sat). |
|
| 37 |
+
| `src`, `dst` | Endpoint public keys (hex). |
|
| 38 |
+
| `src_*`, `dst_*` | Per-direction routing policy: time-lock delta, htlc bounds, fee base/rate, disabled flag, max-htlc, last-update timestamp. |
|
| 39 |
+
| `channel_status` | `OPEN` / `CLOSED`. |
|
| 40 |
+
| `closing_info` | `OPEN` / `MUTUAL` / `FORCED` / `LOCAL_CLOSED` / `PENALTY_CLOSED`. |
|
| 41 |
+
| `src_alias`, `dst_alias`, `src_implementation`, `dst_implementation` | Endpoint metadata. |
|
| 42 |
+
| `gossip_ts` | Event observation timestamp (ms). |
|
| 43 |
+
| `ts`, `height`, `block_avg_fee_rate` | On-chain funding metadata. |
|
| 44 |
+
|
| 45 |
+
## Statistics
|
| 46 |
+
|
| 47 |
+
- **Events:** 693 277 (≈554k after filtering parallel channels).
|
| 48 |
+
- **Unique nodes:** 36 170.
|
| 49 |
+
- **Class distribution at prediction time** (over open edges):
|
| 50 |
+
open ≈83 %, mutual ≈9 %, forced ≈8 %.
|
| 51 |
+
|
| 52 |
+
## Notes on the initial snapshot
|
| 53 |
+
|
| 54 |
+
The first day (2022-06-09) carries the entire pre-existing LN state as a
|
| 55 |
+
single batch of artificial "openings" — about 38 % of the rows. The
|
| 56 |
+
benchmark's `warm_start` mode initialises from these events without using
|
| 57 |
+
them for training/eval.
|
| 58 |
+
|
| 59 |
+
## License
|
| 60 |
+
|
| 61 |
+
Dataset is released under **CC-BY-4.0**. The underlying gossip messages are
|
| 62 |
+
public by design; the data was collected with the
|
| 63 |
+
[`lncrawler`](https://github.com/Amboss-Tech/lncrawler) tool.
|
| 64 |
+
|
| 65 |
+
## Citation
|
| 66 |
+
|
| 67 |
+
```bibtex
|
| 68 |
+
@inproceedings{antonelli2026ln,
|
| 69 |
+
title = {Predicting Channel Closures in the Lightning Network with Machine Learning},
|
| 70 |
+
author = {Antonelli, Simone and Davis, Vincent and Rush, Harrison and Potdevin, Anthony and Shrader, Jesse and Singh, Vikash and Rossi, Emanuele},
|
| 71 |
+
booktitle = {International Conference on Blockchain Computing and Applications (BCCA)},
|
| 72 |
+
year = {2026}
|
| 73 |
+
}
|
| 74 |
+
```
|