Skip to content

fix issue where getrawtransaction RPC call does not work#139

Merged
brossi merged 1 commit intoPeerunity:masterfrom
erasmospunk:getrawtransactionfix
Dec 6, 2014
Merged

fix issue where getrawtransaction RPC call does not work#139
brossi merged 1 commit intoPeerunity:masterfrom
erasmospunk:getrawtransactionfix

Conversation

@erasmospunk
Copy link
Copy Markdown

The RPC call getrawtransaction does not work with some transactions (coinbase and coinstake txs) in an orphaned block.

For example the following orphaned block can be fetched via the RPC
getblock 45fb29047b0d93691029b5931bb78cba076c4ac9aa8310acd1620709f5582b60
but the first transaction
getrawtransaction dcb0597105107b8e9af2f851fc120a7ebc2ee544ac06c1689ea0f9aebfddc11e
fails
error: {"code":-5,"message":"No information available about transaction"}

This patch solves the issue.
Credits go also to @sigmike for coming up with a solution for the NuBits client.

@brossi brossi merged this pull request into Peerunity:master Dec 6, 2014
@brossi
Copy link
Copy Markdown

brossi commented Dec 6, 2014

We'll get this into the next release binary, but for now, it's available if you compile Peerunity from source. Thank you for submitting this, @erasmospunk

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.

2 participants