Skip to content

Commit 619ceaf

Browse files
author
tac0turtle
committed
lint
1 parent 9f97ac0 commit 619ceaf

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

docs/learn/specs/block-manager.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -267,23 +267,23 @@ flowchart TD
267267
B -->|Mempool/Not Included| E[Mempool Backoff Strategy]
268268
B -->|Context Canceled| F[Stop Submission]
269269
B -->|Other Error| G[Exponential Backoff]
270-
270+
271271
D -->|Yes| H[Recursive Batch Splitting]
272272
D -->|No| I[Skip Single Item - Cannot Split]
273-
273+
274274
E --> J[Set Backoff = MempoolTTL * BlockTime]
275275
E --> K[Multiply Gas Price by GasMultiplier]
276-
276+
277277
G --> L[Double Backoff Time]
278278
G --> M[Cap at MaxBackoff - BlockTime]
279-
279+
280280
H --> N[Split into Two Halves]
281281
N --> O[Submit First Half]
282282
O --> P[Submit Second Half]
283283
P --> Q{Both Halves Processed?}
284284
Q -->|Yes| R[Combine Results]
285285
Q -->|No| S[Handle Partial Success]
286-
286+
287287
C --> T[Update Pending Queues]
288288
T --> U[Post-Submit Actions]
289289
```
@@ -295,7 +295,7 @@ flowchart TD
295295
* Exponential backoff for general failures (doubles each attempt, capped at `BlockTime`)
296296
* Mempool-specific backoff (waits `MempoolTTL * BlockTime` for stuck transactions)
297297
* Success-based backoff reset with gas price reduction
298-
* **Gas Price Management**:
298+
* **Gas Price Management**:
299299
* Increases gas price by `GasMultiplier` on mempool failures
300300
* Decreases gas price after successful submissions (bounded by initial price)
301301
* Supports automatic gas price detection (`-1` value)

pkg/p2p/client_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -343,18 +343,18 @@ func TestClientInfoMethods(t *testing.T) {
343343
t.Run("GetPeers", func(t *testing.T) {
344344
// Wait for peer discovery to find the peers
345345
expectedPeerIDs := []peer.ID{client1.host.ID(), client2.host.ID()}
346-
346+
347347
err := waitForCondition(2*time.Second, func() bool {
348348
peers, err := client0.GetPeers()
349349
if err != nil {
350350
return false
351351
}
352-
352+
353353
actualPeerIDs := make(map[peer.ID]bool)
354354
for _, p := range peers {
355355
actualPeerIDs[p.ID] = true
356356
}
357-
357+
358358
// Check if all expected peers are found
359359
for _, expectedID := range expectedPeerIDs {
360360
if !actualPeerIDs[expectedID] {
@@ -363,9 +363,9 @@ func TestClientInfoMethods(t *testing.T) {
363363
}
364364
return true
365365
})
366-
366+
367367
require.NoError(err, "Timed out waiting for GetPeers to discover all peers")
368-
368+
369369
// Now verify the peers are as expected
370370
peers, err := client0.GetPeers()
371371
assert.NoError(err)

0 commit comments

Comments
 (0)