[ctr/lua] bug fix for problem sync of system.prevBlockhash
@@ -217,7 +217,7 @@ func (bf *BlockFactory) generateBlock(bpi *bpInfo, lpbNo types.BlockNo) (block *
txOp := chain.NewCompTxOp(
bf.txOp,
- newTxExec(bpi.bestBlock.GetHeader().GetBlockNo()+1, ts, bpi.bestBlock.GetHeader().GetPrevBlockHash(), bpi.bestBlock.GetHeader().ChainID),
+ newTxExec(bpi.bestBlock.GetHeader().GetBlockNo()+1, ts, bpi.bestBlock.BlockHash(), bpi.bestBlock.GetHeader().ChainID),
)
block, err = chain.GenerateBlock(bf, bpi.bestBlock, bs, txOp, ts, false)
