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

v4: Fetching all transactions from transaction_pool #547

Open
parazyd opened this issue May 10, 2021 · 6 comments
Open

v4: Fetching all transactions from transaction_pool #547

parazyd opened this issue May 10, 2021 · 6 comments

Comments

@parazyd
Copy link

parazyd commented May 10, 2021

Hi, is there a way to get an index of all transactions that are currently in the transaction pool?

This functionality is necessary for one method in Electrum (and the Electrum protocol).

Related: parazyd/obelisk#5 (comment)

@evoskuil
Copy link
Member

evoskuil commented May 10, 2021

No, the tx pool is currently unindexed. The index has been written but not integrated yet.

@parazyd
Copy link
Author

parazyd commented May 10, 2021

So it's something you're considering implementing? At least to fetch all txids in the pool?

I suppose that might even be enough, and then fetch_transaction2 could be used while iterating over the ids.

@evoskuil
Copy link
Member

It doesn’t search history, it collects metadata on incoming txs as they enter the pool. I’ll integrate it once the node is ready.

@parazyd
Copy link
Author

parazyd commented May 10, 2021

This is something that would be followed with the transaction subscription interface?

@evoskuil
Copy link
Member

evoskuil commented May 10, 2021

Unrelated, tx subscription doesn’t require an index.

@parazyd
Copy link
Author

parazyd commented May 10, 2021

Ah alright. I misunderstood then.

Thanks a lot! Looking forward to the integration :)

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

No branches or pull requests

2 participants