utils

package
v1.12.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultGRPCServiceConfig = `` /* 256-byte string literal not displayed */

DefaultGRPCServiceConfig provides automatic retry configuration for transient gRPC errors. This config is applied to all remote gRPC connections to handle network flakiness in CI and other environments.

Retries on: - UNAVAILABLE: Service temporarily unavailable (e.g., node restarting) - RESOURCE_EXHAUSTED: Rate limiting from remote node - UNKNOWN: Connection failures, DNS issues, and other network errors

Note: We only retry on clearly transient network/availability errors. We do NOT retry on INTERNAL (programming errors), ABORTED (conflicts), or DEADLINE_EXCEEDED (to avoid cascading failures on slow services).

Variables

This section is empty.

Functions

func PrintScheduledTransactionResult added in v1.8.0

func PrintScheduledTransactionResult(logger *zerolog.Logger, result *types.TransactionResult, scheduledTxID string)

PrintScheduledTransactionResult prints a clearly labeled log entry for scheduled transactions execute transactions so they can be easily distinguished from user transactions.

func PrintScriptResult

func PrintScriptResult(logger *zerolog.Logger, result *types.ScriptResult)

func PrintTransactionResult

func PrintTransactionResult(logger *zerolog.Logger, result *types.TransactionResult)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL