Skip to content

Increase OracleResponse.MaxResultSize #1981

@roman-khimov

Description

@roman-khimov

Summary or problem description
At the moment we only allow 1024 bytes to be received as an oracle response justified by filtering (#1738 (comment)). But at least for NeoFS we expect to see more unfiltered requests for non-JSON data that could easily be larger than that.

Do you have any solution you want to propose?
We have a natural boundary of MaxTransactionSize that can't be exceeded and there is a MaxComparableSize limit in the VM that seems to be close enough to that to also serve well for MaxResultSize, so at least 64K is expected. It also seems to be reasonable wrt to fees, with the minimum of 0.1 GAS for oracle request a response with 64K of data costs roughly 0.655 GAS for transaction size.

Neo Version

  • Neo 3

Where in the software does this update applies to?

  • Oracles

Metadata

Metadata

Assignees

No one assigned

    Labels

    DiscussionInitial issue state - proposed but not yet accepted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions