Handle error returned from BlockChain.Initialize

indexv1
Martin Boehm 2018-03-27 23:18:25 +02:00
parent 83bce22e28
commit 3127e5b5c2
1 changed files with 4 additions and 1 deletions

View File

@ -46,7 +46,10 @@ func NewBlockChain(coin string, configfile string, pushHandler func(*bchain.MQMe
if err != nil {
return nil, err
}
bc.Initialize()
err = bc.Initialize()
if err != nil {
return nil, err
}
return &blockChainWithMetrics{b: bc, m: metrics}, nil
}