File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -238,8 +238,14 @@ func (worker *queueWorker) Reset(ctx context.Context) {
238
238
worker .emptyAccounts .Set (from , struct {}{})
239
239
return
240
240
}
241
+ var pendingNonce uint64
242
+ if protocol .MustGetFeatureCtx (ctx ).UseZeroNonceForFreshAccount {
243
+ pendingNonce = confirmedState .PendingNonceConsideringFreshAccount ()
244
+ } else {
245
+ pendingNonce = confirmedState .PendingNonce ()
246
+ }
241
247
// Remove all actions that are committed to new block
242
- acts := queue .UpdateAccountState (confirmedState . PendingNonce () , confirmedState .Balance )
248
+ acts := queue .UpdateAccountState (pendingNonce , confirmedState .Balance )
243
249
acts2 := queue .UpdateQueue ()
244
250
worker .ap .removeInvalidActs (append (acts , acts2 ... ))
245
251
// Delete the queue entry if it becomes empty
You can’t perform that action at this time.
0 commit comments