Open philippem opened 2 weeks ago
You need to adjust REGTEST_INITIAL_ISSUANCE_PREVOUT
in src/util/transaction.rs
for this to work.
The txid of the initial issuance prevout differs based on some chain parameters. Back when I implemented this I couldn't find an easy way to determine it and just used the prevout used with the default chain settings (which might've changed since)
This should be fixed, or at least be made into a CLI argument that can be overridden without recompiling.
(Based on the error message you got, the REGTEST_INITIAL_ISSUANCE_PREVOUT
should be set to cb4953dfe64aba4687d0de08e5ce17d8f7640deeef63be4ac3bac3afdefdfd78
-- perhaps in reversed byte order)
Edit: actually, I believe rust-elements fixed the reversed bytes display issue, so you shouldn't have to reverse it
While attempting to index an elementsregtest chain that has
initialfreecoins=2100000000000000
in its elements.conf and where there are transactions that use free coins, electrs panics. The stack trace is below.This scenario can be reproduced using an elements daemon configured using https://elementsproject.org/elements-code-tutorial/overview, or in https://github.com/philippem/elements-docker-compose/tree/add-esplora