spesmilo / spesmilo/electrum-protocol

Add rebroadcast behaviour to `blockchain.transaction.broadcast`

Open
#15 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
18
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Currently, when transactions already known to the server are rebroadcast, the server returns success but otherwise performs no additional work. The following behavioural change is proposed:

When a transaction already known to the server is rebroadcasted through blockchain.transaction.broadcast, any subscribed script hashes contained in the transaction are notified with their current script hash status.

This is primarily useful for transport level obfuscation - detection of broadcast calls may be used to identify blocks the transactions are likely to be contained in through timing analysis.

Secondarily, wallets typically need to receive these notifications to report to the user that a transaction has been successfully included in the mempool, and if they are missed due to network errors this provides a simple approach to regenerate them.

This change should be harmless to existing clients.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the server implementation of the blockchain.transaction.broadcast JSON-RPC entry point and trace how subscribed script hashes receive status notifications. Ensure rebroadcasting an already-known transaction triggers notifications for its subscribed script hashes while preserving existing behavior for new transactions; verify both cases with the repository's available tests or protocol checks.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.