Skip to content

Commit c3d8979

Browse files
committed
feat: temporary onchain events implementation
1 parent 61c57d3 commit c3d8979

File tree

16 files changed

+2909
-155
lines changed

16 files changed

+2909
-155
lines changed

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
# Unreleased
2+
3+
## Feature and API updates
4+
- Added reactive event system for wallet monitoring without polling:
5+
- **Onchain Transaction Events** (fully implemented):
6+
- `OnchainTransactionReceived`: Emitted when a new unconfirmed transaction is
7+
first detected in the mempool (instant notification for incoming payments!)
8+
- `OnchainTransactionConfirmed`: Emitted when a transaction receives confirmations
9+
- `OnchainTransactionUnconfirmed`: Emitted when a previously confirmed transaction
10+
becomes unconfirmed (blockchain reorg)
11+
- **Sync Completion Event** (fully implemented):
12+
- `SyncCompleted`: Emitted when onchain wallet sync finishes successfully
13+
- **Balance Change Event** (fully implemented):
14+
- `BalanceChanged`: Emitted when onchain or Lightning balances change, allowing
15+
applications to update balance displays immediately without polling
16+
- Added `TransactionContext` enum to onchain transaction events, which provides
17+
information about whether a transaction is related to channel funding, channel
18+
closure, or regular wallet activity. Applications can cross-reference with
19+
`ChannelPending` and `ChannelClosed` events to identify channel-related
20+
transactions.
21+
- Added `SyncType` enum to distinguish between onchain wallet sync, Lightning
22+
wallet sync, and fee rate cache updates.
23+
- Balance tracking is now persisted in `NodeMetrics` to detect changes across restarts.
24+
125
# 0.6.2 - Aug. 14, 2025
226
This patch release fixes a panic that could have been hit when syncing to a
327
TLS-enabled Electrum server, as well as some minor issues when shutting down

0 commit comments

Comments
 (0)