Skip to content

Additional API method and critical ElectRS bug#31

Open
cyclomancer wants to merge 3 commits intourbit:masterfrom
cyclomancer:block-txs
Open

Additional API method and critical ElectRS bug#31
cyclomancer wants to merge 3 commits intourbit:masterfrom
cyclomancer:block-txs

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