Skip to content

Load more than 128KB of prefunded accounts #1060

@ARR552

Description

@ARR552

I need an initial state for the network. On order to achieve it, I'm adding the alloc of the genesis file to prefunded_accounts. This alloc contains accounts and contracts. The problem is that seems this value is injected as an ENV in the container and due to the kernel limit I can only attach a genesis smaller than 128KB.

The 128 KiB limit is hard-wired in the Linux kernel (MAX_ARG_STRLEN = PAGE_SIZE × 32), so a single environment variable longer than that will always make the next execve() fail with E2BIG → “Argument list too long”.

I'm running Geth + lighthouse.

Is there another way to inject the genesis to the container?? For instance injecting the file instead of the ENV.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions