Commit 8fb4b27
authored
refactor(l1): avoid recovering sender two times when txs are received (#5419)
**Motivation**
We were doing sender recovery two times for each transaction received.
This is inefficient.
**Description**
This PR deduplicates the action, by sharing the computed sender with
`Mempool::add_transaction`1 parent 46096d1 commit 8fb4b27
2 files changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1400 | 1400 | | |
1401 | 1401 | | |
1402 | 1402 | | |
1403 | | - | |
| 1403 | + | |
1404 | 1404 | | |
1405 | 1405 | | |
1406 | 1406 | | |
| |||
1426 | 1426 | | |
1427 | 1427 | | |
1428 | 1428 | | |
1429 | | - | |
| 1429 | + | |
1430 | 1430 | | |
1431 | 1431 | | |
1432 | 1432 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
123 | | - | |
| 124 | + | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| |||
822 | 823 | | |
823 | 824 | | |
824 | 825 | | |
825 | | - | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
826 | 830 | | |
827 | | - | |
828 | 831 | | |
829 | 832 | | |
830 | 833 | | |
| |||
0 commit comments