Where a lane transaction entering `store` anchors its lane. Sidecar lanes sit at the validated channel nonce. Validity lanes additionally place their executable cursor behind the standard store's pending run, cut short at a same-slot transaction this insertion replaces.
(
&self,
store: PoolStore,
transaction: &T,
state_nonce: u64,
cross: Option<&CrossStoreReplacement<T>>,
)
| 1114 | /// place their executable cursor behind the standard store's pending run, |
| 1115 | /// cut short at a same-slot transaction this insertion replaces. |
| 1116 | fn insert_cursor( |
| 1117 | &self, |
| 1118 | store: PoolStore, |
| 1119 | transaction: &T, |
| 1120 | state_nonce: u64, |
| 1121 | cross: Option<&CrossStoreReplacement<T>>, |
| 1122 | ) -> LaneCursor { |
| 1123 | if store != PoolStore::Validity { |
| 1124 | return LaneCursor::at(state_nonce); |
| 1125 | } |
| 1126 | let Some(lane_id) = Self::lane_id_of(transaction) else { |
| 1127 | return LaneCursor::at(state_nonce); |
| 1128 | }; |
| 1129 | let mut next_nonce = self.standard_pending_end(lane_id, state_nonce); |
| 1130 | if let Some(cross) = cross { |
| 1131 | next_nonce = next_nonce.min(cross.transaction.nonce()); |
| 1132 | } |
| 1133 | LaneCursor { state_nonce, next_nonce: next_nonce.max(state_nonce) } |
| 1134 | } |
| 1135 | |
| 1136 | /// Undoes a lane insertion that a post-insert check rejected: removes the |
| 1137 | /// newcomer, re-announces the lane, and restores the transaction it replaced |
no test coverage detected