Commit bbbadf09 authored by Heimdall's avatar Heimdall
Browse files

Only set the tx voter to revert when the status is set to revert

parent e3b2b73a
Pipeline #265079590 passed with stages
in 29 minutes and 16 seconds
......@@ -327,14 +327,13 @@ func (m *ObservedTxVoter) getConsensusTx(accounts NodeAccounts, final bool) Obse
// SetReverted set all the tx status to `Reverted` , only when a relevant errata tx had been processed
func (m *ObservedTxVoter) SetReverted() {
m.setStatus(Status_reverted)
m.Reverted = true
}
func (m *ObservedTxVoter) setStatus(toStatus Status) {
for _, item := range m.Txs {
item.Status = toStatus
}
m.Reverted = true
if !m.Tx.IsEmpty() {
m.Tx.Status = toStatus
}
......
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