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

[PRIV] Maintain the state of MessageFrame in private Tx #1193

Merged
merged 2 commits into from
Apr 1, 2019

Conversation

Puneetha17
Copy link
Contributor

PR description

The message frame gets updated with the gas used and output of the execution of privacy pre-compile contract. This leads to public and private nodes having different receipt roots causing them to fail with Invalid block: receipts root mismatch.

We undo the frame updating such that the frame is set to the same state as that of public node and so it produces the same receipt.

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

@lucassaldanha lucassaldanha self-assigned this Apr 1, 2019
@lucassaldanha lucassaldanha merged commit 8932d36 into PegaSysEng:master Apr 1, 2019
@Puneetha17 Puneetha17 deleted the maintain-state-private branch April 1, 2019 09:01
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.

2 participants