You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My suggestion was to change this in your own fork, but I see how that's inconvenient, as it preclude you from just using the official docker container or build.
How about adding a config option to the RPC section that enables more advanced features like this, with the appropriate warnings? I don't know if a config switch can change an argument, or if it would just enable and disable between two almost identical methods.
We could bundle all of the more expensive rpc options into one config option for example. There are more instances of this iirc.
This will likely be a very low priority to look at since we are still investigating what to do with these indexes that are slowing down the history sync #1998.
New issue checklist
README
General information
Bug report
Expected behavior
{
"jsonrpc": "2.0",
"id": 1,
"method": "getTransactionHashesByAddress",
"params": [
"NQ65 DHN8 4BSR 5YSX FC3V BB5J GKM2 GB2L H17C",
90000
]
}
To fetch all 90k transactions
Actual behavior
{
"jsonrpc": "2.0",
"error": {
"code": -32602,
"message": "Invalid params",
"data": "Expected an object for the request parameters."
},
"id": 1
}
if the int is higher than 65535 there is invalid parameter error
Steps to reproduce
--- CORRECT REQUEST
{
"jsonrpc": "2.0",
"id": 1,
"method": "getTransactionHashesByAddress",
"params": [
"NQ65 DHN8 4BSR 5YSX FC3V BB5J GKM2 GB2L H17C",
65535
]
}
--- INCORRECT
{
"jsonrpc": "2.0",
"id": 1,
"method": "getTransactionHashesByAddress",
"params": [
"NQ65 DHN8 4BSR 5YSX FC3V BB5J GKM2 GB2L H17C",
65536
]
}
Crash log? Screenshots? Videos? Sample project?
NO
Question or Feature Request
I only checked this specific RPC call but there could be more
The text was updated successfully, but these errors were encountered: