Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranay Tulugu committed Jul 5, 2023
1 parent 44c253a commit b8a63c8
Show file tree
Hide file tree
Showing 2 changed files with 202 additions and 148 deletions.
3 changes: 3 additions & 0 deletions rita_common/src/network_endpoints/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use actix_web_async::{HttpRequest, HttpResponse};
use althea_types::{LocalIdentity, PaymentTx};
use std::collections::HashSet;
use std::time::Instant;
use crate::KI;

/// The recieve side of the make payments call
pub async fn make_payments(item: Json<PaymentTx>) -> HttpResponse {
Expand All @@ -23,6 +24,7 @@ pub async fn make_payments(item: Json<PaymentTx>) -> HttpResponse {
checked: false,
};

error!("Calling validate later from makepaymetn of netspace {:?}", KI.check_integration_test_netns());
match validate_later(ts) {
Ok(()) | Err(RitaCommonError::DuplicatePayment) => {
HttpResponse::Ok().json("Payment Received!")
Expand All @@ -43,6 +45,7 @@ pub async fn make_payments_v2(item: Json<HashSet<PaymentTx>>) -> HttpResponse {
};

// Duplicates will be removed here
error!("Calling validate later from makepaymetn 2222 of netspace {:?}", KI.check_integration_test_netns());
match validate_later(ts) {
Ok(()) | Err(RitaCommonError::DuplicatePayment) => {}
Err(e) => {
Expand Down
Loading

0 comments on commit b8a63c8

Please sign in to comment.