We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e50970 commit 2b0ef7aCopy full SHA for 2b0ef7a
consensus/consensus-types/src/opt_proposal_msg.rs
@@ -108,11 +108,16 @@ impl OptProposalMsg {
108
sender
109
);
110
111
- self.block_data()
112
- .payload()
113
- .verify(validator, proof_cache, quorum_store_enabled)?;
114
-
115
- self.block_data().grandparent_qc().verify(validator)?;
+ let (payload_verify_result, qc_verify_result) = rayon::join(
+ || {
+ self.block_data()
+ .payload()
+ .verify(validator, proof_cache, quorum_store_enabled)
116
+ },
117
+ || self.block_data().grandparent_qc().verify(validator),
118
+ );
119
+ payload_verify_result?;
120
+ qc_verify_result?;
121
122
// Note that we postpone the verification of SyncInfo until it's being used.
123
self.block_data.verify_well_formed()
0 commit comments