Commit 616d114a authored by mdj33's avatar mdj33 Committed by 33cn

get consensus status by block hash in main chain

parent 92cd5374
...@@ -28,7 +28,7 @@ func (p *Paracross) Query_GetTitleByHash(in *pt.ReqParacrossTitleHash) (types.Me ...@@ -28,7 +28,7 @@ func (p *Paracross) Query_GetTitleByHash(in *pt.ReqParacrossTitleHash) (types.Me
} }
if !types.IsDappFork(p.GetMainHeight(), pt.ParaX, pt.ForkCommitTx) { if !types.IsDappFork(p.GetMainHeight(), pt.ParaX, pt.ForkCommitTx) {
block, err := p.GetAPI().GetBlockByHashes(&types.ReqHashes{Hashes: [][]byte{in.BlockHash}}) block, err := p.GetAPI().GetBlockOverview(&types.ReqHash{Hash:in.BlockHash})
if err != nil || block == nil { if err != nil || block == nil {
return nil, types.ErrHashNotExist return nil, types.ErrHashNotExist
} }
......
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