File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/peersafe/app/consensus Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -581,7 +581,7 @@ PConsensus<Adaptor>::onViewChange()
581581 timeOutCount_ = 0 ;
582582
583583 // clear avoid
584- adaptor_.app_ .getTxPool ().clearAvoid (previousLedger_.seq ());
584+ adaptor_.app_ .getTxPool ().clearAvoid (previousLedger_.seq () + 1 );
585585
586586 viewChangeManager_.onViewChanged (view_);
587587 if (bWaitingInit_)
@@ -796,7 +796,7 @@ PConsensus<Adaptor>::gotTxSet(
796796 {
797797 // update avoid if we got the right tx-set
798798 if (adaptor_.validating ())
799- adaptor_.app_ .getTxPool ().updateAvoid (txSet, previousLedger_.seq ());
799+ adaptor_.app_ .getTxPool ().updateAvoid (txSet, previousLedger_.seq () + 1 );
800800
801801 auto set = txSet.map_ ->snapShot (false );
802802 // this place has a txSet copy,what's the time it costs?
You can’t perform that action at this time.
0 commit comments