From df851937db53b5af2a9b212c8f27175150a9b9dc Mon Sep 17 00:00:00 2001 From: galaio Date: Tue, 24 Sep 2024 14:53:44 +0800 Subject: [PATCH] txdag: support find all prev tx from rw list; --- core/types/mvstates.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/types/mvstates.go b/core/types/mvstates.go index bdff2fcd83..b93bb415a6 100644 --- a/core/types/mvstates.go +++ b/core/types/mvstates.go @@ -446,6 +446,7 @@ func (s *MVStates) handleRWEvents(items []RWEventItem) { switch item.Event { // recorde current read/write event case ReadAccRWEvent, ReadSlotRWEvent: + // TODO: maintain read list here if readFrom < 0 { readFrom = i } @@ -796,6 +797,7 @@ func (s *MVStates) resolveDepsMapCacheByWrites(index int, reads []RWEventItem) { } } } + // TODO: check read before write dependency here for _, addr := range s.gasFeeReceivers { if _, ok := addrMap[addr]; ok { rwSet.cannotGasFeeDelay = true