fix issue where getrawtransaction RPC call does not work#139
Merged
brossi merged 1 commit intoPeerunity:masterfrom Dec 6, 2014
erasmospunk:getrawtransactionfix
Merged
fix issue where getrawtransaction RPC call does not work#139brossi merged 1 commit intoPeerunity:masterfrom erasmospunk:getrawtransactionfix
brossi merged 1 commit intoPeerunity:masterfrom
erasmospunk:getrawtransactionfix
Conversation
…ions in an orphaned block
|
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The RPC call
getrawtransactiondoes 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 45fb29047b0d93691029b5931bb78cba076c4ac9aa8310acd1620709f5582b60but the first transaction
getrawtransaction dcb0597105107b8e9af2f851fc120a7ebc2ee544ac06c1689ea0f9aebfddc11efails
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.