Commit 16675e84 authored by vicotor's avatar vicotor

profile code

parent 9b7cd81c
......@@ -40,7 +40,7 @@ func (d *Dao) GetLatestBockHash(chain *config.ChainConfig) (hash string, err err
if !ok {
return "", errors.New("chain client not support")
}
block, err := chainInfo.cli.BlockByNumber(ctx, nil)
block, err := chainInfo.cli.HeaderByNumber(ctx, nil)
if err != nil {
return
}
......
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