Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index inscriptions by address #3372

Closed

Conversation

markovichecha
Copy link
Contributor

@markovichecha markovichecha commented Mar 25, 2024

Added an address to inscriptions index and address endpoint with inscriptions. Resolves: #2619

image

Address index relies on transactions index, how should we handle this? Fail to startup if there are no --index-transactions flag?

@markovichecha markovichecha force-pushed the address-to-inscriptions branch 2 times, most recently from e9aa9c7 to 9d6bfee Compare March 27, 2024 09:26
@markovichecha markovichecha marked this pull request as ready for review March 27, 2024 10:01
@markovichecha
Copy link
Contributor Author

@raphjaph actively harassing to check on this PR as were suggested on stream, thanks

@ynohtna92
Copy link
Contributor

Address index relies on transactions index, how should we handle this? Fail to startup if there are no --index-transactions flag?

I don't think it should fail, I implemented the address index onto my own branch a while ago without the transaction index. Users shouldn't need to double up on storing tx information as it is already done with -txindex.

Perhaps use it if it is available otherwise use the rpc getTransaction.

https://github.com/ynohtna92/ord-litecoin/blob/30825f67ccca4921c8f96e6a7d212cd3660f1f70/src/index/updater/inscription_updater.rs#L413-L419

@Klyaus
Copy link

Klyaus commented Apr 18, 2024

Hello @markovichecha ! I’m experimenting with your version when indexing testnet (I launched Ord in Docker with the command “ord --data-dir /index-data --index-transactions --index-addresses server”). And I encountered this behavior:

[2024-04-18T11:37:24Z INFO  ord::index::updater] Block 2441766 at 2023-07-14 03:35:26 UTC with 21 transactions…
[2024-04-18T11:37:24Z INFO  ord::index::updater] Block receiver disconnected: sending on a closed channel
[2024-04-18T11:37:24Z INFO  ord::index] script is not a p2pkh, p2sh or witness program
[2024-04-18T11:37:24Z WARN  ord::subcommand::server] Updating index: script is not a p2pkh, p2sh or witness program

after that, the indexer starts scanning a few days before the specified date, and again hits the same block, and so on in a circle. Have you seen this kind of behavior?

@markovichecha
Copy link
Contributor Author

markovichecha commented Apr 19, 2024

Hey @Klyaus. I haven't met this error, but may be it was due to not indexing testnet. I'll return to this PR soon and will change transaction index behavior and try to fix this issue.

@Klyaus
Copy link

Klyaus commented Apr 19, 2024

Hey @Klyaus. I haven't met this error, but may be it was due to not indexing testnet. I'll return to this PR soon and will change transaction index behavior and try to fix this issue.

Great! Thanks for the answer. I also think this is due to the fact that this is a testnet.

@raphjaph
Copy link
Collaborator

We recently merged #3757, which adds a more comprehensive address to output tracker. If you look at it you'll see the html page is just a list of outputs. If you want you could add more descriptive and aggregated information like inscriptions, btc, sats and runes. Also your PR links addresses we show in places to the address html page. If you feel like you could probably use some of the work you did here and just build on top of what I coded up. Best to chunk these up into different PRs. Let me know if you're up for that :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Index inscriptions by address
5 participants