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

[PAN-2982] Modifies PrivGetPrivateTransaction to take public tx hash #1778

Conversation

josh-richardson
Copy link
Contributor

PR description

eea_sendTransaction returns the public tx hash.

priv_getPrivateTx takes the input field from the object returned by eth_getTransactionByHash as a parameter. So before calling priv_getPrivateTx, the user must call eth_getTransactionByHash specifying the public tx hash as input.

Updating priv_getPrivateTransaction to take public tx hash as parameter means instead of the user performing 2 requests to get the private tx: eea_sendTransaction -> returns public tx hash -> eth_getTransactionByHash -> input value -> priv_getPrivateTx

It would be 1: eea_sendTransaction -> returns public tx hash -> priv_getPrivateTx

Acceptance criteria:

priv_getPrivateTx takes the public tx hash as a parameter and returns the private tx

@josh-richardson josh-richardson force-pushed the modify-priv-getPrivateTransaction branch from 7d8ee97 to 539d4fb Compare July 29, 2019 15:05
@josh-richardson
Copy link
Contributor Author

Seems to be stalling while pulling my branch?

Copy link
Contributor

@MadelineMurray MadelineMurray left a comment

Choose a reason for hiding this comment

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

Tested and this works :-)

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

@MadelineMurray MadelineMurray merged commit cb35a3f into PegaSysEng:master Jul 30, 2019
@josh-richardson josh-richardson deleted the modify-priv-getPrivateTransaction branch July 30, 2019 10:00
josh-richardson added a commit to josh-richardson/pantheon that referenced this pull request Jul 30, 2019
…egaSysEng#1778)

* Modifies PrivGetPrivateTransaction to take public tx hash

* Fix star imports
MadelineMurray pushed a commit that referenced this pull request Jul 30, 2019
* [PAN-2943] Renames various eea methods to priv methods, with associated docs (#1736)

* Renames various eea methods to priv methods, with associated docs

* Restructures packages

* Adds priv commandline switch

* Refactors eea_getTransactionCount and eea_getPrivateTransaction to priv

* Changes package structure and fixes TODO

* Remove whitespace

* Update docs with new method names

* [PAN-2972] Additional integration test for contract creation with privacyGroupId (#1762)

* Unit test for send raw transaction with privacy group

* Integration test works a bit better now, need to abstract to a separate subclass, fix verifyForParticipants logic bug

* Abstracts nodeCanDeployWithPrivacyGroupId to separate acceptance test

* Tidies up integration test

* Fix whitespace

* Fix inspection issues

* Restructure private transaction builder

* Fix default privateFrom behaviour

* Remove enclave public key from parameter (#1777)

* [PAN-2982] Modifies PrivGetPrivateTransaction to take public tx hash (#1778)

* Modifies PrivGetPrivateTransaction to take public tx hash

* Fix star imports
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.

3 participants