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
Remove old vote transaction and exception handling - Closes #5074 #5082
Conversation
d892389
to
89c88c6
Compare
89c88c6
to
65c6db2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make the transaction numbers sequential?
this PR leaves:
8: TransferTransaction,
10: DelegateTransaction,
12: MultisignatureTransaction,
13: VoteTransaction,
14: UnlockTransaction,
better to leave it as:
9: TransferTransaction,
10: DelegateTransaction,
11: VoteTransaction,
12: MultisignatureTransaction,
13: UnlockTransaction,
(It seems when we deleted the 2nd signature we were already jumping one number but I think it would be much nicer if numbers are sequential)
The rest looks good. Thoughts?
if we proceed with https://research.lisk.io/t/introduce-numbering-scheme-for-transaction-types/220, it would be completely different numbering, too |
OK. Then maybe create the issue for the renumbering so it's in the backlog? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
export const validateTransactions = () => ( | ||
transactions: ReadonlyArray<BaseTransaction>, | ||
): ReadonlyArray<TransactionResponse> => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since we no longer have exceptions.. why don't we change function to??
export const validateTransactions = (transactions: ReadonlyArray<BaseTransaction>): ReadonlyArray<TransactionResponse> =>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this was originally to make all the transaction interface the same.
Also, composeTransactions relies on this.
We should refactor it but prefer to do it in the separate issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and the composeTransactions
was designed to address this exceptions if i understand correctly? I don't have the context though. but if it doesn't make sense now, its better to clean it up now. otherwise you can ignore this comment 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
composeTransactions
was just a way to handle multiple cases for transaction validation and keeping the context
while injecting to the transaction pool.
Ill create an issue to address this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created: #5088
What was the problem?
This PR resolves #5074
How was it solved?
How was it tested?