Skip to content

Conversation

@gupadhyaya
Copy link
Member

@gupadhyaya gupadhyaya commented Apr 25, 2023

As part of go-fraud library implementation, this PR adds:

  • ProofService to full and light nodes
  • Extends abci.FraudProof interface with go-fraud Proof interface

Fixes #892 #893 #894

@codecov
Copy link

codecov bot commented Apr 25, 2023

Codecov Report

Patch coverage: 57.89% and project coverage change: +54.67 🎉

Comparison is base (d6d030a) 0.00% compared to head (9eb4ad9) 54.67%.

Additional details and impacted files
@@            Coverage Diff            @@
##           main     #891       +/-   ##
=========================================
+ Coverage      0   54.67%   +54.67%     
=========================================
  Files         0       68       +68     
  Lines         0    11011    +11011     
=========================================
+ Hits          0     6020     +6020     
- Misses        0     4119     +4119     
- Partials      0      872      +872     
Impacted Files Coverage Δ
node/light.go 0.00% <0.00%> (ø)
types/state_fraud_proof.go 26.66% <26.66%> (ø)
node/full.go 61.86% <78.57%> (ø)
node/header_exchange.go 54.81% <100.00%> (ø)
node/proof_service_factory.go 100.00% <100.00%> (ø)

... and 63 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@nashqueue nashqueue added the C:state-fraud-proofs Component: State Fraud Proofs (generation and validation) label Apr 27, 2023
Copy link
Member

@tzdybal tzdybal left a comment

Choose a reason for hiding this comment

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

This new code needs tests.

Copy link
Member

@Manav-Aggarwal Manav-Aggarwal left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Left some comments.

@gupadhyaya
Copy link
Member Author

gupadhyaya commented May 5, 2023

This new code needs tests.

this PR only adds fraud-exchange service to full and light nodes and for that the graceful start and stop is already tested in other unit tests. the fraud-exchange functionality will be added in the next PR along with new tests to cover the exchange part. will that suffice?

tzdybal
tzdybal previously approved these changes May 8, 2023
Ganesha Upadhyaya added 2 commits May 9, 2023 07:35
… with go-fraud Proof interface methods

rename to state fraud proof

remove new method and force interface binding
@gupadhyaya gupadhyaya requested a review from Manav-Aggarwal May 9, 2023 12:36
Copy link
Member

@Manav-Aggarwal Manav-Aggarwal left a comment

Choose a reason for hiding this comment

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

LGTM

This was linked to issues May 9, 2023
@gupadhyaya gupadhyaya merged commit 5bf92b8 into evstack:main May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C:state-fraud-proofs Component: State Fraud Proofs (generation and validation)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use ProofService in full node Use ProofServcie in light node Add StateFraudProof proof type

4 participants