And the associated unsubscribe endpoint:
https://electrum-cash-protocol.readthedocs.io/en/latest/protocol-methods.html#blockchain-transaction-subscribe
Details
Details
- Reviewers
PiRK - Group Reviewers
Restricted Project - Commits
- rABCa52a5004932b: [chronik] Electrum: Implement blockchain.transaction.subscribe endpoint
./test/functional/test_runner.py chronik_electrum_blockchain
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
| chronik/chronik-http/src/electrum.rs | ||
|---|---|---|
| 1275–1277 ↗ | (On Diff #54427) | weird layout |
| 1286–1292 ↗ | (On Diff #54427) | The spec mentions that the value could be null if the tx is unknown (0 is for mempool txs) https://electrum-cash-protocol.readthedocs.io/en/latest/protocol-methods.html#blockchain.transaction.get_height |
| chronik/chronik-http/src/electrum.rs | ||
|---|---|---|
| 1286–1292 ↗ | (On Diff #54427) | nvm, the test shows that the behavior is as expected (height can be None which translates to null) |
| chronik/chronik-http/src/electrum.rs | ||
|---|---|---|
| 1286–1292 ↗ | (On Diff #54427) | ok() returns the option wrapped value or None, so height can be None |