Skip to content

Commit dac8252

Browse files
committed
Remove Oleg's workaround.
1 parent 0a613ff commit dac8252

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

nil/internal/collate/proposer.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -351,10 +351,6 @@ func (p *proposer) handleTransactionsFromPool() error {
351351
return nil
352352
}
353353

354-
func (p *proposer) isTxProcessed(dbTx db.RoTx, txHash common.Hash) (bool, error) {
355-
return dbTx.ExistsInShard(p.params.ShardId, db.BlockHashAndInTransactionIndexByTransactionHash, txHash.Bytes())
356-
}
357-
358354
func (p *proposer) handleTransactionsFromNeighbors(tx db.RoTx) error {
359355
state, err := db.ReadCollatorState(tx, p.params.ShardId)
360356
if err != nil && !errors.Is(err, db.ErrKeyNotFound) {
@@ -452,14 +448,6 @@ func (p *proposer) handleTransactionsFromNeighbors(tx db.RoTx) error {
452448
nextTx++
453449

454450
txnHash := txn.Hash()
455-
// TODO: Temporary workaround to prevent transaction duplication
456-
isProcessed, err := p.isTxProcessed(tx, txnHash)
457-
if err != nil {
458-
return err
459-
}
460-
if isProcessed {
461-
continue
462-
}
463451

464452
if err := p.executionState.ValidateInternalTransaction(txn); err != nil {
465453
p.logger.Warn().Err(err).

0 commit comments

Comments
 (0)