-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change for cuda verify integration #109
Conversation
src/event.rs
Outdated
@@ -47,7 +47,7 @@ impl Event { | |||
/// spending plan is valid. | |||
pub fn verify(&self) -> bool { | |||
match *self { | |||
Event::Transaction(ref tr) => tr.verify(), | |||
Event::Transaction(ref tr) => tr.verify_plan(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change shouldn't be necessary. Can you revert that and report back any consequences?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed to verify_sig(), but did you mean it should be verify_sig() && verify_plan()? Anatoly removed the one that does both, but I can add it back.
src/transaction.rs
Outdated
@@ -8,12 +8,17 @@ use rayon::prelude::*; | |||
use signature::{KeyPair, KeyPairUtil, PublicKey, Signature, SignatureUtil}; | |||
|
|||
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Clone)] | |||
pub struct Transaction { | |||
pub struct Signed { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to rename this to TransactionData
src/transaction.rs
Outdated
@@ -8,12 +8,17 @@ use rayon::prelude::*; | |||
use signature::{KeyPair, KeyPairUtil, PublicKey, Signature, SignatureUtil}; | |||
|
|||
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Clone)] | |||
pub struct Transaction { | |||
pub struct Signed { | |||
pub from: PublicKey, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to leave from
in the top-level struct
Codecov Report
@@ Coverage Diff @@
## master #109 +/- ##
==========================================
- Coverage 96.09% 95.29% -0.81%
==========================================
Files 16 17 +1
Lines 1358 1467 +109
==========================================
+ Hits 1305 1398 +93
- Misses 53 69 +16
Continue to review full report at Codecov.
|
I didn't include the GPU lib, do we want to just check it in for now? |
The functionality tucked under feature flags don't need to be buildable by CI. This PR is good to go. Merging. |
Bumps [eslint](https://github.com/eslint/eslint) from 6.8.0 to 7.4.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](eslint/eslint@v6.8.0...v7.4.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
No description provided.