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

implement dcrlibwallet get tx, improve same function for wallet rpc #127

Merged
merged 10 commits into from
Jan 5, 2019

Conversation

itswisdomagain
Copy link
Contributor

@itswisdomagain itswisdomagain commented Jan 5, 2019

The output of cli show-transaction via the updated rpc function or the newly implemented dcrlibwallet function. Major changes are addition of account name when displaying outputs and displaying block height instead of block hash. The block height is gotten using the block hash and since the blockhash is invalid (see #96), the block height is not currently found. A default value of -1 is displayed whenever the block hash cannot be used to get a matching block height.

screenshot 2019-01-05 at 8 17 19 am

UPDATE:
dcrwallet rpc block hash issue is resolved, and block heights for transactions now display

@raedah raedah added this to In Progress in godcr board Jan 5, 2019
Copy link
Contributor

@ademuanthony ademuanthony left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the transaction hash is not found, the error in the output is too verbose, can we catch the error code from the response just print transaction not found?
not-found
I suspect the error to be of dcrdwallet/errors.Error

Copy link
Contributor

@barisere barisere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#96 has been fixed, see planetdecred/godcr#96 (comment)

app/walletmediums/dcrwalletrpc/walletfunctions.go Outdated Show resolved Hide resolved
@itswisdomagain
Copy link
Contributor Author

Block height now display with the latest versions of dcrd and dcrwallet.
screenshot 2019-01-05 at 9 42 28 pm

Transaction not found errors now show simpler error message:
transaction not found

@itswisdomagain itswisdomagain moved this from In Progress to For Review in godcr board Jan 5, 2019
@barisere barisere merged commit bb1d833 into raedahgroup:master Jan 5, 2019
@itswisdomagain itswisdomagain moved this from For Review to Done in godcr board Jan 5, 2019
itswisdomagain pushed a commit that referenced this pull request Jan 9, 2019
implement dcrlibwallet get tx, improve same function for wallet rpc 

Former-commit-id: bb1d833
@itswisdomagain itswisdomagain deleted the dcrlibwallet-gettx branch January 10, 2019 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants