Remove bitcoincorerpcchain, as it belongs in a separate crate
authorMatt Corallo <git@bluematt.me>
Thu, 14 Jun 2018 20:48:06 +0000 (16:48 -0400)
committerMatt Corallo <git@bluematt.me>
Thu, 14 Jun 2018 22:05:13 +0000 (18:05 -0400)
src/chain/bitcoincorerpcchain.rs [deleted file]
src/chain/mod.rs

diff --git a/src/chain/bitcoincorerpcchain.rs b/src/chain/bitcoincorerpcchain.rs
deleted file mode 100644 (file)
index 5c14b5d..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-use bitcoin::blockdata::transaction::Transaction;
-use bitcoin::blockdata::script::Script;
-use bitcoin::util::hash::Sha256dHash;
-
-use chain::chaininterface::{ChainWatchInterface,ChainWatchInterfaceUtil,ChainListener, BroadcasterInterface};
-
-use std::sync::Weak;
-
-pub struct BitcoinCoreRPCClientChain {
-       util: ChainWatchInterfaceUtil
-}
-
-impl ChainWatchInterface for BitcoinCoreRPCClientChain {
-       fn install_watch_script(&self, spk: Script) {
-               self.util.install_watch_script(spk)
-       }
-
-       fn install_watch_outpoint(&self, outpoint: (Sha256dHash, u32)) {
-               self.util.install_watch_outpoint(outpoint)
-       }
-
-       fn watch_all_txn(&self) {
-               self.util.watch_all_txn()
-       }
-
-       fn register_listener(&self, listener: Weak<ChainListener>) {
-               self.util.register_listener(listener)
-       }
-}
-
-impl BroadcasterInterface for BitcoinCoreRPCClientChain {
-       fn broadcast_transaction(&self, _tx: &Transaction) {
-               unimplemented!()
-       }
-}
-
-impl BitcoinCoreRPCClientChain {
-       pub fn new() -> BitcoinCoreRPCClientChain {
-               BitcoinCoreRPCClientChain {
-                       util: ChainWatchInterfaceUtil::new(),
-               }
-       }
-}
index c8a528820a0eab0d6f51d8db6033962ac26bd6d7..4f0ac61389b2368b6d837ab2a05afe3e3a0973f2 100644 (file)
@@ -1,2 +1 @@
 pub mod chaininterface;
-pub mod bitcoincorerpcchain;