Skip to content

Commit 98c3c28

Browse files
committed
go/runtime/txpool: Remove workaround for future txs bug
1 parent 923c916 commit 98c3c28

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

.changelog/6394.trivial.md

Whitespace-only changes.

go/runtime/txpool/txpool.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -588,21 +588,9 @@ func (t *txPool) checkTxBatch(ctx context.Context) error {
588588
)
589589

590590
// Queue checked transactions for scheduling.
591-
stateSeqNums := make(map[string]uint64)
592591
for i, pct := range goodPcts {
593592
idx := batchIndices[i]
594593
res := results[idx]
595-
596-
// XXXX: Temporary workaround for an Oasis SDK bug that incorrectly
597-
// increments the sender's state sequence number during transaction
598-
// check.
599-
sender := string(res.Meta.Sender)
600-
if seq, ok := stateSeqNums[sender]; ok {
601-
res.Meta.SenderStateSeq = seq
602-
} else {
603-
stateSeqNums[sender] = res.Meta.SenderStateSeq
604-
}
605-
606594
if err = t.mainQueue.Add(pct.TxQueueMeta, res.Meta); err != nil {
607595
t.logger.Error("unable to queue transaction for scheduling",
608596
"err", err,

0 commit comments

Comments
 (0)