bug: remove leftover dbg

buddies-main-deployment
James Prestwich 3 years ago
parent 06d950e653
commit 56139b1715
No known key found for this signature in database
GPG Key ID: 7CC174C250AD83AD
  1. 4
      rust/kathy/src/main.rs
  2. 1
      rust/optics-base/bin/example.rs
  3. 2
      rust/optics-core/src/lib.rs
  4. 1
      rust/processor/src/prover/mod.rs

@ -14,8 +14,8 @@ use optics_base::{agent::OpticsAgent, settings::log::Style};
use crate::{kathy::Kathy, settings::KathySettings as Settings}; use crate::{kathy::Kathy, settings::KathySettings as Settings};
async fn _main(settings: Settings) -> Result<()> { async fn _main(settings: Settings) -> Result<()> {
let relayer = Kathy::from_settings(settings).await?; let kathy = Kathy::from_settings(settings).await?;
relayer.run_all().await?; kathy.run_all().await?;
Ok(()) Ok(())
} }

@ -40,7 +40,6 @@ fn setup() -> Result<Settings> {
#[allow(dead_code)] #[allow(dead_code)]
fn main() -> Result<()> { fn main() -> Result<()> {
let _settings = setup()?; let _settings = setup()?;
dbg!(_settings);
// tokio::runtime::Builder::new_current_thread() // tokio::runtime::Builder::new_current_thread()
// .enable_all() // .enable_all()
// .build() // .build()

@ -395,7 +395,6 @@ impl Decode for SignedUpdate {
impl SignedUpdate { impl SignedUpdate {
/// Recover the Ethereum address of the signer /// Recover the Ethereum address of the signer
pub fn recover(&self) -> Result<Address, OpticsError> { pub fn recover(&self) -> Result<Address, OpticsError> {
dbg!(self.update.prepended_hash());
Ok(self.signature.recover(self.update.prepended_hash())?) Ok(self.signature.recover(self.update.prepended_hash())?)
} }
@ -457,7 +456,6 @@ pub struct SignedFailureNotification {
impl SignedFailureNotification { impl SignedFailureNotification {
/// Recover the Ethereum address of the signer /// Recover the Ethereum address of the signer
pub fn recover(&self) -> Result<Address, OpticsError> { pub fn recover(&self) -> Result<Address, OpticsError> {
dbg!(self.notification.prepended_hash());
Ok(self.signature.recover(self.notification.prepended_hash())?) Ok(self.signature.recover(self.notification.prepended_hash())?)
} }

@ -192,7 +192,6 @@ mod test {
// assert the tree generates the proper proof for this leaf // assert the tree generates the proper proof for this leaf
let proof = tree.prove(n).unwrap(); let proof = tree.prove(n).unwrap();
assert_eq!(proof, test_case.proofs[n]); assert_eq!(proof, test_case.proofs[n]);
dbg!(&proof);
// check that the tree can verify the proof for this leaf // check that the tree can verify the proof for this leaf
tree.verify(&proof).unwrap(); tree.verify(&proof).unwrap();

Loading…
Cancel
Save