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
- Branch
- chronik_transaction_subscribe
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Event Timeline
| chronik/chronik-http/src/electrum.rs | ||
|---|---|---|
| 1275–1277 | weird layout | |
| 1286–1292 | 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 | 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 | ok() returns the option wrapped value or None, so height can be None | |