Skip to content

Too much information in the blocks field of the graphql query results in an oom exception #306

Description

@pengzhepz

System information

Alaya version: alaya version 0.16.3
OS & Version: Windows/Linux/OSX
Commit hash : (if develop) 7fb9d1a

Actual behaviour

Use the following query:
{blocks(from: 1) {transactionCount ommerCount number hash nonce
parent {hash}
transactionsRoot
stateRoot
receiptsRoot
miner {address code balance transactionCount}
extraData
gasLimit
gasUsed
timestamp
logsBloom
mixHash
difficulty
totalDifficulty
ommerCount
ommers {transactionCount ommerCount}
ommerAt(index: 0) {transactionCount ommerCount}
ommerHash
transactions {index status gasUsed cumulativeGasUsed}
transactionAt (index:0){index status gasUsed cumulativeGasUsed}
logs (filter:{}) {index}
}
If there are many chained blocks, it will lead to memory overflow

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions