Commit 255c98f2 authored by mdj33's avatar mdj33 Committed by vipwzw

add log

parent d9e5c8a3
......@@ -441,10 +441,17 @@ func (a *action) Commit(commit *pt.ParacrossCommitAction) (*types.Receipt, error
}
haveCrossTxs := len(commit.Status.CrossTxHashs) > 0
if commit.Status.Height > 0 && types.IsDappFork(commit.Status.MainBlockHeight, pt.ParaX, pt.ForkCommitTx) && commit.Status.CrossTxHashs[0] == nil {
haveCrossTxs = false
if commit.Status.Height > 0 && types.IsDappFork(commit.Status.MainBlockHeight, pt.ParaX, pt.ForkCommitTx) {
clog.Info("paracross.Commit execCrossTx", "haveCrossTxs", haveCrossTxs, "crosstx", hex.EncodeToString(commit.Status.CrossTxHashs[0]))
if commit.Status.CrossTxHashs[0] == nil {
haveCrossTxs = false
}
}
clog.Info("paracross.Commit execCrossTx", "height", commit.Status.Height, "haveCrossTxs", haveCrossTxs,
"fork", types.IsDappFork(commit.Status.MainBlockHeight, pt.ParaX, pt.ForkCommitTx), "forkheight", types.GetDappFork(pt.ParaX, pt.ForkCommitTx))
if enableParacrossTransfer && commit.Status.Height > 0 && haveCrossTxs {
clog.Debug("paracross.Commit commitDone", "do cross", "")
crossTxReceipt, err := a.execCrossTxs(commit)
......
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