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

Additional API method and critical ElectRS bug #31

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

cyclomancer
Copy link

@cyclomancer cyclomancer commented Jan 16, 2023

Linked PR to urbit/urbit

  • Extends API with a getblocktxs method to fetch complete list of raw transactions by blockhash

%volt, Urbit's Lightning implementation, needs to find and categorize a transaction spending one of its channels as cooperative, forced, or malicious, and in the last case match the raw transaction to a specific revocation signature. Compared to alternative solutions (modifying the existing getblockinfo structure, fetching the entire raw block and parsing it on the Hoon side, or fetching verbose transaction JSON) this has no impact on existing usage, a small code footprint, and provides functionality that will also be useful for future Bitcoin use-cases other than Lightning.

As of now, ships running %btc-provider with a mainnet full node will have stopped indexing new blocks at height 761248 unless they manually updated ElectRS and restarted the proxy server.

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.

1 participant