Skip to content

Commit

Permalink
is_on_main_chain is a very useful function upstream, make it public
Browse files Browse the repository at this point in the history
  • Loading branch information
tamasblummer committed Mar 3, 2018
1 parent 279e6de commit 5e51036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blockdata/blockchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5e51036

Please sign in to comment.