Skip to content
This repository has been archived by the owner on Jun 21, 2020. It is now read-only.

DEV: failed task output hash; user can verify that eng network output… #141

Merged
merged 13 commits into from Oct 11, 2019

Conversation

apalepu23
Copy link
Contributor

  1. failed task output hash
  2. user can verify eng network output matches output hash stored on ethereum

Copy link
Contributor

@lenak25 lenak25 left a comment

Choose a reason for hiding this comment

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

Thanks @apalepu23.
I've added some comments.
In addition, please add the output hash to the deploySecretContractFailureImpl as well.

enigma-js/src/Enigma.js Show resolved Hide resolved
Copy link
Contributor

@lacabra lacabra left a comment

Choose a reason for hiding this comment

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

Everything looks good so far, other than the fact that CI breaks now because the P2P is out of sync with the number of parameters that are being passed to CommitTaskFailure, which is to be expected, and that @lenak25 will patch in due time:

p2p_1       | [Thu Sep 12 2019 02:48:36 GMT+0000 (Coordinated Universal Time)] INFO [COMMIT_RECEIPT] success for commitTaskFailure of task eebc2fa94431bd83d354ad3cab16435dc8e25fec9b3440a74564d259e347f28c receipt = [object Promise]
p2p_1       | (node:301) UnhandledPromiseRejectionWarning: Error: Invalid number of parameters for "commitTaskFailure". Got 4 expected 5!

enigma-js/src/Enigma.js Outdated Show resolved Hide resolved
Copy link
Contributor

@lenak25 lenak25 left a comment

Choose a reason for hiding this comment

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

LGTM

lenak25 added a commit to scrtlabs/enigma-p2p that referenced this pull request Oct 2, 2019
@codecov
Copy link

codecov bot commented Oct 10, 2019

Codecov Report

Merging #141 into develop will decrease coverage by 0.76%.
The diff coverage is 86.66%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #141      +/-   ##
===========================================
- Coverage    95.89%   95.12%   -0.77%     
===========================================
  Files            6        6              
  Lines          560      595      +35     
  Branches        52       54       +2     
===========================================
+ Hits           537      566      +29     
- Misses          23       29       +6
Impacted Files Coverage Δ
enigma-js/src/emitterConstants.js 100% <100%> (ø) ⬆️
enigma-js/src/Enigma.js 94.55% <80.64%> (-1.67%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 54d66a5...92717dc. Read the comment docs.

@lacabra lacabra merged commit 55554bb into develop Oct 11, 2019
lacabra added a commit to scrtlabs/enigma-p2p that referenced this pull request Oct 11, 2019
@lacabra lacabra deleted the output-failure-verification branch October 11, 2019 03:41
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.

None yet

3 participants