mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-29 22:21:21 +00:00
Error message in RebondTx so we know why it's failing.
This commit is contained in:
parent
115e57a1d5
commit
27c193dd86
@ -534,8 +534,14 @@ func (cs *ConsensusState) updateToState(state *sm.State, contiguous bool) {
|
|||||||
}
|
}
|
||||||
err := cs.privValidator.SignRebondTx(rebondTx)
|
err := cs.privValidator.SignRebondTx(rebondTx)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
log.Info("Signed and broadcast RebondTx", "height", cs.Height, "round", cs.Round, "tx", rebondTx)
|
err := cs.mempoolReactor.BroadcastTx(rebondTx)
|
||||||
cs.mempoolReactor.BroadcastTx(rebondTx)
|
if err != nil {
|
||||||
|
log.Error("Failed to broadcast RebondTx",
|
||||||
|
"height", cs.Height, "round", cs.Round, "tx", rebondTx, "error", err)
|
||||||
|
} else {
|
||||||
|
log.Info("Signed and broadcast RebondTx",
|
||||||
|
"height", cs.Height, "round", cs.Round, "tx", rebondTx)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
log.Warn("Error signing RebondTx", "height", cs.Height, "round", cs.Round, "tx", rebondTx, "error", err)
|
log.Warn("Error signing RebondTx", "height", cs.Height, "round", cs.Round, "tx", rebondTx, "error", err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user