Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Add command to get unsigned and unprocessed transactions - Closes#600 #647

Merged
merged 19 commits into from
Nov 14, 2018

Conversation

ishantiw
Copy link
Contributor

Description

We want to add a command to get transactions in unsigned and unprocessed state.
Example,
lisk transaction:get 1260076503909567890 --state=unsigned

Review checklist

src/utils/query.js Outdated Show resolved Hide resolved
src/commands/transaction/get.js Show resolved Hide resolved
src/commands/transaction/get.js Outdated Show resolved Hide resolved
@ishantiw
Copy link
Contributor Author

@shuse2 Addressed

shuse2
shuse2 previously approved these changes Nov 13, 2018
Copy link
Contributor

@mitsuaki-u mitsuaki-u left a comment

Choose a reason for hiding this comment

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

Should we also allow get unsigned tx by sender ID (as per issue #600 suggestion), or allow for getting unsigned / unprocessed tx from node without specific tx IDs?

const client = getAPIClient(this.userConfig.api);

if (txnState && txnState === 'unsigned') {
Copy link
Contributor

Choose a reason for hiding this comment

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

just if (txnState === 'unsigned') ?

const results = await queryNode(client.node, txnState, req);
return this.print(results);
}
if (txnState && txnState === 'unprocessed') {
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

@shuse2 shuse2 merged commit 060db6c into development Nov 14, 2018
@shuse2 shuse2 deleted the 600-add-command-to-get-unsigned-transactions branch November 14, 2018 15:52
@shuse2 shuse2 removed this from the Version 2.1.0 milestone Nov 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants