Skip to content

Commit

Permalink
txdag: support find all prev tx from rw list;
Browse files Browse the repository at this point in the history
  • Loading branch information
galaio committed Sep 24, 2024
1 parent 7fb8001 commit df85193
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/types/mvstates.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit df85193

Please sign in to comment.