File tree 1 file changed +0
-12
lines changed
1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -351,10 +351,6 @@ func (p *proposer) handleTransactionsFromPool() error {
351
351
return nil
352
352
}
353
353
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
-
358
354
func (p * proposer ) handleTransactionsFromNeighbors (tx db.RoTx ) error {
359
355
state , err := db .ReadCollatorState (tx , p .params .ShardId )
360
356
if err != nil && ! errors .Is (err , db .ErrKeyNotFound ) {
@@ -452,14 +448,6 @@ func (p *proposer) handleTransactionsFromNeighbors(tx db.RoTx) error {
452
448
nextTx ++
453
449
454
450
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
- }
463
451
464
452
if err := p .executionState .ValidateInternalTransaction (txn ); err != nil {
465
453
p .logger .Warn ().Err (err ).
You can’t perform that action at this time.
0 commit comments