protocol 1.7 (WIP)#2
Open
SomberNight wants to merge 7 commits into
Open
Conversation
SomberNight
commented
Feb 12, 2025
d32a69e to
c10f63f
Compare
This was referenced Feb 18, 2025
e74e0f1 to
9e02865
Compare
ff53c91 to
1c30e19
Compare
1c30e19 to
337b006
Compare
f17061d to
7911396
Compare
SomberNight
added a commit
to SomberNight/electrum-protocol
that referenced
this pull request
Oct 22, 2025
This is a minimal changeset for a new protocol version. The ideas for the less trivial changes are deferred a bit, just so we get something out. ref spesmilo#2 ref spesmilo/electrumx#90
SomberNight
commented
Feb 26, 2026
|
|
||
| **Signature** | ||
|
|
||
| .. function:: blockchain.outpoint.subscribe(tx_hash, txout_idx, spk_hint=None) |
Member
Author
There was a problem hiding this comment.
note: bitcoin core added a txospenderindex, to be used with the gettxspendingprevout RPC.
ref bitcoin/bitcoin#24539
- see what their API looks like and maybe adapt what we add to that
- in particular we could put
spender_blockhashin the response - they also have an option to put the full tx in the response
- in particular we could put
7efc355 to
7eb1d59
Compare
ecdsa
reviewed
May 14, 2026
| If a server supports all functionality defined for the negotiated protocol version, | ||
| it can just set this to the empty dict (but the `method_flavours` key itself | ||
| must always be present). | ||
|
|
Member
There was a problem hiding this comment.
I think method_flavours should be postponed for now, because its role is not clear.
it seems that what it wants to achieve collides with the features negotiation proposal in #7
a704d55 to
e4a702a
Compare
e4a702a to
e3fd26e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This defines a new protocol version: 1.7.
changes compared to 1.6:
blockchain.scripthash.*methods are all replaced withblockchain.scriptpubkey.*methodsblockchain.scriptpubkey.*endpoints #3blockchain.outpoint.subscribeRPC (and related RPCs) to subscribe to a transactionoutpoint, and get a notification when it gets spent.
server.pingcan now also be sent as an unrequested notification, by both the clientand the server. The request/response signature also changed.
blockchain.scriptpubkey.*methodsblockchain.transaction.testmempoolaccepttestmempoolaccept#11mempool.recentto list a few of the latest txs just added to the mempool.mempool.recentprotocol method #13This proposal is less ambitious than previous versions of 1.7:
method_flavoursfield for theserver.featuresresponse is also postponed,as I realised we are not clear re how to signal/negotiate optional features
server.versionfor feature negotiation #7 ideaWe have a client implementation in spesmilo/electrum#10627,
and a server implementation in spesmilo/electrumx#303.