Return consensusBranchId

This commit is contained in:
Aditya Kulkarni
2019-09-25 17:46:05 -07:00
parent 6f56b8b8e9
commit fbb75e8f20
5 changed files with 62 additions and 48 deletions

View File

@@ -161,14 +161,14 @@ func main() {
}
// Get the sapling activation height from the RPC
saplingHeight, chainName, err := common.GetSaplingInfo(rpcClient)
saplingHeight, chainName, branchID, err := common.GetSaplingInfo(rpcClient)
if err != nil {
log.WithFields(logrus.Fields{
"error": err,
}).Warn("Unable to get sapling activation height")
}
log.WithField("saplingHeight", saplingHeight).Info("Got sapling height ", saplingHeight, " chain ", chainName)
log.Info("Got sapling height ", saplingHeight, " chain ", chainName, " branchID ", branchID)
// Compact transaction service initialization
service, err := frontend.NewSQLiteStreamer(rpcClient, log)