Commit 25101730 authored by mdj33's avatar mdj33 Committed by vipwzw

fix null block bug

parent c17e523e
......@@ -484,6 +484,9 @@ func (client *client) procLocalAddBlocks(mainBlocks *types.ParaTxDetails) error
lastBlock = b
blocks = append(blocks, b)
}
if len(blocks) <= 0 {
return nil
}
err = client.saveBatchLocalBlocks(blocks)
if err != nil {
plog.Error("procLocalAddBlocks saveBatchLocalBlocks", "err", err)
......
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