Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ version = "1.0.1"
default-features = false

[workspace.dependencies.snarkvm] # If this is updated, the rev in `node/rest/Cargo.toml` must be updated as well.
#path = "../snarkVM"
#git = "https://github.com/ProvableHQ/snarkVM.git"
#rev = "e319a75"
version = "=1.6.0"
# path = "../snarkVM"
git = "https://github.com/joske/snarkVM.git"
branch = "avoid-double-signature-check"
#version = "=1.6.0"
features = [ "circuit", "console", "rocks" ]

[[bin]]
Expand Down
4 changes: 3 additions & 1 deletion node/bft/src/helpers/proposal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,10 @@ impl<N: Network> Proposal<N> {
) -> Result<(BatchCertificate<N>, IndexMap<TransmissionID<N>, Transmission<N>>)> {
// Ensure the quorum threshold has been reached.
ensure!(self.is_quorum_threshold_reached(committee), "The quorum threshold has not been reached");
// Basic check for the signatures - we call this and then later BatchCertificate::from_unchecked to avoid verifying the signatures again.
BatchCertificate::<N>::check_signature_basic(&self.batch_header, &self.signatures)?;
// Create the batch certificate.
let certificate = BatchCertificate::from(self.batch_header.clone(), self.signatures.clone())?;
let certificate = BatchCertificate::from_unchecked(self.batch_header.clone(), self.signatures.clone())?;
// Return the certificate and transmissions.
Ok((certificate, self.transmissions.clone()))
}
Expand Down
6 changes: 3 additions & 3 deletions node/rest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ version = "=3.6.0"

[dependencies.snarkvm-synthesizer]
#path = "../../../snarkVM/synthesizer"
#git = "https://github.com/ProvableHQ/snarkVM.git"
#rev = "e319a75"
version = "=1.6.0"
git = "https://github.com/joske/snarkVM.git"
branch = "avoid-double-signature-check"
#version = "=1.6.0"
default-features = false
optional = true

Expand Down