From 5e510366cfd1b3535d0d1d00d1ec347d445ca3bb Mon Sep 17 00:00:00 2001 From: Tamas Blummer Date: Sat, 3 Mar 2018 18:15:05 +0100 Subject: [PATCH] is_on_main_chain is a very useful function upstream, make it public --- src/blockdata/blockchain.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blockdata/blockchain.rs b/src/blockdata/blockchain.rs index 385da017..978bfb3c 100644 --- a/src/blockdata/blockchain.rs +++ b/src/blockdata/blockchain.rs @@ -58,7 +58,7 @@ pub struct BlockchainNode { impl BlockchainNode { /// Is the node on the main chain? - fn is_on_main_chain(&self, chain: &Blockchain) -> bool { + pub fn is_on_main_chain(&self, chain: &Blockchain) -> bool { if self.block.header == unsafe { (*chain.best_tip).block.header } { true } else {