is_on_main_chain is a very useful function upstream, make it public

This commit is contained in:
Tamas Blummer 2018-03-03 18:15:05 +01:00
parent 279e6dec28
commit 5e510366cf
1 changed files with 1 additions and 1 deletions

View File

@ -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 {