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

[PRIV] Add Private transaction abstraction #592

Merged
merged 7 commits into from
Jan 23, 2019

Conversation

iikirilov
Copy link
Contributor

@iikirilov iikirilov commented Jan 17, 2019

PR description

This PR creates the private transaction abstraction

Fixed Internal Issue(s)

PRIV-12

Reasoning

It was decided to duplicate the Transaction class because PrivateTransaction and Transaction should never be used in the same code path -> therefore making common interface felt unnatural

Future refactor can reduce code duplication. My initial proposition is that the static methods can be moved to a Transactions utility class. Then PrivateTransaction and Transaction can be simple data classes. This would remove the majority of code duplication.

@iikirilov iikirilov closed this Jan 21, 2019
@iikirilov iikirilov force-pushed the private-transaction branch from c36141f to 73d712a Compare January 21, 2019 11:45
@iikirilov iikirilov reopened this Jan 21, 2019
@iikirilov iikirilov force-pushed the private-transaction branch 2 times, most recently from 6b0c58a to e7cb82f Compare January 22, 2019 09:07
antonydenyer added a commit to antonydenyer/pantheon that referenced this pull request Jan 22, 2019
commit e7cb82f
Author: Ivaylo Kirilov <[email protected]>
Date:   Mon Jan 21 13:26:50 2019 +0000

    Fix PrivateTransaction signature calculation

commit d453c66
Author: Ivaylo Kirilov <[email protected]>
Date:   Mon Jan 21 11:55:37 2019 +0000

    Fix PrivateTransaction comment

    - add params for private transaction specific fields

commit 71f9c66
Author: Ivaylo Kirilov <[email protected]>
Date:   Mon Jan 21 11:54:52 2019 +0000

    Add PrivateTransaction Test

commit 8464303
Author: Ivaylo Kirilov <[email protected]>
Date:   Mon Jan 21 11:54:22 2019 +0000

    Implement PrivateTransaction
@iikirilov iikirilov force-pushed the private-transaction branch from e7cb82f to 1d43646 Compare January 22, 2019 11:52
Copy link
Contributor

@lucassaldanha lucassaldanha left a comment

Choose a reason for hiding this comment

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

LGTM

@rojotek rojotek merged commit dcf4457 into PegaSysEng:master Jan 23, 2019
@iikirilov iikirilov deleted the private-transaction branch March 20, 2019 10:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants