Browse Source

Error message in RebondTx so we know why it's failing.

pull/67/head
Jae Kwon 10 years ago
parent
commit
27c193dd86
1 changed files with 8 additions and 2 deletions
  1. +8
    -2
      consensus/state.go

+ 8
- 2
consensus/state.go View File

@ -534,8 +534,14 @@ func (cs *ConsensusState) updateToState(state *sm.State, contiguous bool) {
}
err := cs.privValidator.SignRebondTx(rebondTx)
if err == nil {
log.Info("Signed and broadcast RebondTx", "height", cs.Height, "round", cs.Round, "tx", rebondTx)
cs.mempoolReactor.BroadcastTx(rebondTx)
err := 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 {
log.Warn("Error signing RebondTx", "height", cs.Height, "round", cs.Round, "tx", rebondTx, "error", err)
}


Loading…
Cancel
Save