Skip to content

Make the server work with custom initial issuance prevout (liquid feature)#176

Open
enaples wants to merge 1 commit intoBlockstream:new-indexfrom
enaples:new-index
Open

Make the server work with custom initial issuance prevout (liquid feature)#176
enaples wants to merge 1 commit intoBlockstream:new-indexfrom
enaples:new-index

Conversation

@enaples
Copy link
Copy Markdown

@enaples enaples commented Jan 8, 2026

In order to do not rely on liquid testnet faucets and do not wait for pegin/out time of liquid test network to test mobile/desktop application, it would be awesome to index custom elements sidechains. In order to do that, the hard-coded regtest/testnet issuance prevout must be overcame and be able to set via CLI option.

Possible related issue: #125

…neric test chain with same parameters of testnet)
@philippem
Copy link
Copy Markdown
Collaborator

please rebase

@shesek
Copy link
Copy Markdown
Collaborator

shesek commented Apr 15, 2026

I don't like the global RwLock, it adds overhead in a hot path and won't work well with multiple electrs instances running in the same process (like we have in the tests). But explicitly forwarding the config option into has_prevout() would be kind of messy too.

I wonder, perhaps it would be cleaner to handle the initial issuance output using a dummy zero-value txo db entry instead?

Also, the CLI parameter is called --initial-issuance-prevout but it actually takes a txid rather than an outpoint. I would rename it to --initial-issuance-txid. (this does follow the INITIAL_ISSUANCE_PREVOUT naming which I originally chose, but we should probably change that too and at least not let it leak into user-visible options.)

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.

3 participants