X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fln%2Fchannelmonitor.rs;h=5ac9a6b0ab01cd93eb276b7a68ff29e2b7763298;hb=9606f94caf451d9eb3a690b559e2955486a3e76a;hp=ac08bf5a37bbfa402a1b40179986c5d1cdc6b4f9;hpb=ad9dda2eb9062d4570854270c9be2ac39fa8cc61;p=rust-lightning diff --git a/src/ln/channelmonitor.rs b/src/ln/channelmonitor.rs index ac08bf5a..5ac9a6b0 100644 --- a/src/ln/channelmonitor.rs +++ b/src/ln/channelmonitor.rs @@ -4,7 +4,6 @@ use bitcoin::blockdata::script::Script; use bitcoin::util::hash::Sha256dHash; use bitcoin::util::bip143; -use crypto::sha2::Sha256; use crypto::digest::Digest; use secp256k1::{Secp256k1,Message,Signature}; @@ -14,6 +13,7 @@ use ln::msgs::HandleError; use ln::chan_utils; use ln::chan_utils::HTLCOutputInCommitment; use chain::chaininterface::{ChainListener, ChainWatchInterface, BroadcasterInterface}; +use util::sha2::Sha256; use std::collections::HashMap; use std::sync::{Arc,Mutex}; @@ -456,7 +456,7 @@ impl ChannelMonitor { for txin in tx.input.iter() { if self.funding_txo.is_none() || (txin.prev_hash == self.funding_txo.unwrap().0 && txin.prev_index == self.funding_txo.unwrap().1 as u32) { for tx in self.check_spend_transaction(tx, height).iter() { - broadcaster.broadcast_transaction(tx); // TODO: use result + broadcaster.broadcast_transaction(tx); } } }