From 3b142b92778b486c55590f7acf5fcc617afe248c Mon Sep 17 00:00:00 2001 From: Androlo Date: Fri, 15 May 2015 16:27:22 +0200 Subject: [PATCH] getter for blockstore in Node --- node/node.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/node/node.go b/node/node.go index 9a81992d..3dee65d8 100644 --- a/node/node.go +++ b/node/node.go @@ -200,6 +200,10 @@ func (n *Node) Switch() *p2p.Switch { return n.sw } +func (n *Node) BlockStore() *bc.BlockStore { + return n.blockStore +} + func (n *Node) ConsensusState() *consensus.ConsensusState { return n.consensusState }