Skip to content

Comments

Cake electrs fork updates#2

Open
josibake wants to merge 3 commits intocake-tech:cake-update-v1from
josibake:cake-electrs-updates
Open

Cake electrs fork updates#2
josibake wants to merge 3 commits intocake-tech:cake-update-v1from
josibake:cake-electrs-updates

Conversation

@josibake
Copy link

@josibake josibake commented Aug 2, 2024

Been doing some testing and review, here are some bug fixes/improvements. Longterm, my goal is to get the electrs fork ready for a PR to the upstream electrs rep, but no reason not to update little things as I go along.

The main change here is now clients doing long rescans will download less data since a txid and tweak will only be included in the response if it has at least one unspent output.

Also let some thoughts in the comments (mostly for myself). cc @rafael-xmr

Only send a txid:tweak object if the output_pubkeys array has at least
one unspent output. Otherwise, we end up having the client download
a lot of data they will never use.
The smallest outpoint is chosen from all of the transaction inputs, not
just the silent payment eligible inputs (see BIP352). In practice, most
wallets will be spending the same input types together so its likely
that the set of silent payments eligible inputs will be the same as the
set of transaction inputs. Wallets can, however, add non-eligible
inputs, such as OP_CHECKMULTISIG inputs.

Fix by collecting all outpoints before filtering for the silent payments
eligible inputs.
70,000 is way too early, update to 800,000 which is after taproot
activation and a little before the first BIP352 transactions appear on
chain.

Ideally, this start height should be network specific considering
taproot has always been activated on signet.

Leave a comment to fix this in a followup.
@tsjk
Copy link

tsjk commented Feb 19, 2025

With this patch I actually got it to start looking for sp tweaks. Will see if the fully indexed daemon can be used for cake wallet when its done. I've have not managed to get the wallet to catch up with sp indexing using the provided server.

@tsjk
Copy link

tsjk commented May 31, 2025

Indexing took a while. Seems to work. I just scanned for SPs in desktop cake wallet using my own instance. Scanning from the client takes a while, and eats lots of resources. Haven't managed to complete scanning on my old Android phone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants