Skip to content

txutil: drop unused retry helpers and nonce accessories#19

Merged
parkan merged 1 commit into
masterfrom
chore/txutil-prune
May 3, 2026
Merged

txutil: drop unused retry helpers and nonce accessories#19
parkan merged 1 commit into
masterfrom
chore/txutil-prune

Conversation

@parkan
Copy link
Copy Markdown
Collaborator

@parkan parkan commented May 2, 2026

Removes ~440 LOC of unused code in pkg/txutil and tightens WaitForReceipt callsites in pdp/manager.go. No behavior change for any active caller.

Cut: retry.go (entire file -- SendTransactionWithRetry, WaitForTransactionWithRetry, RetryConfig, DefaultRetryConfig, IsNonceError, IsGasError, WrapError, CalculateBackoff, secureRandomInt64n, Err{TxFailed,TxTimeout,NonRetryable}); WaitForConfirmation (only consumer was retry.go); (*NonceManager).Reset / GetPendingCount / GetFreshNonce / GetChainID (no callers).

Relocated: IsRetryableError body moved to confirmation.go as unexported isRetryableError; its test moved to confirmation_test.go.

Tightened: three pdp/manager.go callsites now use defaultReceiptTimeout = 90 * time.Second const (replacing txutil.DefaultRetryConfig().MaxBackoff*3, same value).

Test plan

  • go build ./...
  • go vet ./...
  • go test ./...

@parkan parkan merged commit 3273a9a into master May 3, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant