Skip to content

Array can grow to infinity #2

@Schaeff

Description

@Schaeff

I'm a bit worried about this loop

for (uint i = 0; i < currentTime; ++i)

This will make gas consumption grow to infinity as time goes by and the loop will throw an out of gas exception.

Maybe using a single variable instead of an array in the contract and storing past values somewhere else could help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions