Commit a0239ee3 authored by suyanlong's avatar suyanlong

Fix para height bug

parent 099963d5
......@@ -162,7 +162,7 @@ func (p *Paracross) Initialize(configPath string, ID string, extra []byte) error
p.title = chain33Config.Chain33.Title
p.MinTxFeeRate = chain33Config.Chain33.Fee
p.isTest = chain33Config.Chain33.IsTest
p.paraHeight = atomic.NewInt64(-1)
p.paraHeight = atomic.NewInt64(-2) // TODO
// 判断执行器地址类型
if strings.ToUpper(chain33Config.Chain33.Symbol) == "YCC" {
// 执行器地址类型,YCC是以太坊地址类型。
......@@ -412,7 +412,7 @@ func (p *Paracross) processBlock(height, end int64) {
continue END
}
if p.paraHeight.Load() == status.Height && status.Height != -1 {
if p.paraHeight.Load() == status.Height {
p.logger.Warn("is syncing block", "status", util.FormatJSON(status), "current main height", height, "para height", status.Height)
time.Sleep(time.Second)
continue END
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment