Skip to content

if an AlograndClient connects to algod in devmode don't cache params #273

@joe-p

Description

@joe-p

Problem

By default the AlgorandClient will cache SuggestedParams. Given the short default validity window this can result in transactions being sent outside the lastValid if multiple transactions are sent within a short period of time.

Solution

If the algod the client is connecting to is in devmode don't cache the suggestedParams

Proposal

When the suggestedParams are retrieved for the first time, also check if the network is in devmode

Pros and Cons

This allows us to keep the suggestedParams in the txns themselves the same while fixing the problem for devmode.

Dependencies

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions