Skip to content

Check why unused errors are not reported #5449

@mmcgee-jump

Description

@mmcgee-jump

Agave has various errors that it can report for transactions, which we don't use. Some are clearly not needed (CLUSTER_MAINTENANCE), but some seem like they indicate missing checks or behavior, e.g. CALL_CHAIN_TOO_DEEP. Do a complete audit of these and justify or remove each one.

/* Various errors in Agave that are not reported or used in Firedancer ..

 - FD_RUNTIME_TXN_ERR_CALL_CHAIN_TOO_DEEP
 - FD_RUNTIME_TXN_ERR_MISSING_SIGNATURE_FOR_FEE
 - FD_RUNTIME_TXN_ERR_INVALID_ACCOUNT_INDEX
 - FD_RUNTIME_TXN_ERR_SANITIZE_FAILURE
 - FD_RUNTIME_TXN_ERR_CLUSTER_MAINTENANCE
 - FD_RUNTIME_TXN_ERR_ACCOUNT_BORROW_OUTSTANDING
 - FD_RUNTIME_TXN_ERR_WOULD_EXCEED_MAX_BLOCK_COST_LIMIT
 - FD_RUNTIME_TXN_ERR_UNSUPPORTED_VERSION
 - FD_RUNTIME_TXN_ERR_INVALID_WRITABLE_ACCOUNT
 - FD_RUNTIME_TXN_ERR_WOULD_EXCEED_MAX_ACCOUNT_COST_LIMIT
 - FD_RUNTIME_TXN_ERR_WOULD_EXCEED_ACCOUNT_DATA_BLOCK_LIMIT
 - FD_RUNTIME_TXN_ERR_INVALID_RENT_PAYING_ACCOUNT
 - FD_RUNTIME_TXN_ERR_WOULD_EXCEED_MAX_VOTE_COST_LIMIT
 - FD_RUNTIME_TXN_ERR_WOULD_EXCEED_ACCOUNT_DATA_TOTAL_LIMIT
 - FD_RUNTIME_TXN_ERR_RESANITIZATION_NEEDED
 - FD_RUNTIME_TXN_ERR_PROGRAM_EXECUTION_TEMPORARILY_RESTRICTED
 - FD_RUNTIME_TXN_ERR_PROGRAM_CACHE_HIT_MAX_LIMIT */

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions