]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Silence warning on essentially-unimplemented chain interface.
authorMatt Corallo <git@bluematt.me>
Wed, 21 Feb 2018 16:26:23 +0000 (11:26 -0500)
committerMatt Corallo <git@bluematt.me>
Wed, 21 Feb 2018 16:35:43 +0000 (11:35 -0500)
src/chain/rustbitcoinchain.rs

index 13161e9af4bc5acf9bd22224b705feda36f06711..9f2573996a0dd8a750424630b72c1526190271ba 100644 (file)
@@ -61,6 +61,6 @@ impl ChainWatchImpl {
                        //TODO: Height
                        self.util.do_call_block_connected(&block.header, 0, &txn_matched[..], &indexes_of_txn_matched[..]);
                }
-               self.chain.lock().unwrap().add_block(block);
+               self.chain.lock().unwrap().add_block(block).unwrap();
        }
 }