Skip to content

Commit

Permalink
Ignore value_msat value and use invoice total
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpp committed Nov 3, 2024
1 parent 9ec6b06 commit d15f0a1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/lightning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,6 @@ pub async fn parse_podcast_tlv(boost: &mut dbif::BoostRecord, val: &[u8], remote
let json_result = serde_json::from_str::<RawBoost>(tlv);
match json_result {
Ok(rawboost) => {
//If there was a sat value in the tlv, override the invoice
if rawboost.value_msat.is_some() {
boost.value_msat = rawboost.value_msat.unwrap() as i64;
}

//Determine an action type for later filtering ability
if rawboost.action.is_some() {
boost.action = match rawboost.action.unwrap().as_str() {
Expand Down

0 comments on commit d15f0a1

Please sign in to comment.