-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Can no longer filter transactions with RPC API #11189
Comments
I assume it has to do with the following definitions/parameters: rpc/src/v1/traits/parity.rs
rpc/src/v1/impls/parity.rs
With By specifying parameters like this:
I get:
|
Hey @lamafab Thank you such awesome bug report, however, it seems like the bug was introduced by 3f61f2d curl --data '{"method":"parity_pendingTransactions","params":[{"from":{"eq":"0x5f3dffcf347944d3739b0805c934d86c8621997f"},"to": {"eq":"0xe8b2d01ffa0a15736b2370b6e5064f9702c891b6"}}],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545 I think that deserialization will never work because it will be deserialized to Array[FilterOptions] in that case so either [
5,
{
"from": {
"eq": "0x5f3dffcf347944d3739b0805c934d86c8621997f"
},
"to": {
"eq": "0xe8b2d01ffa0a15736b2370b6e5064f9702c891b6"
},
}
] Don't know really but must be something sneaky with deserialization |
Thanks for the feedback. When I implemented and tested it, the EDIT: |
@niklasad1 Here you go #11192. Fixing this was much easier than expected :) EDIT: This works now. Example
|
Yesterday I was contacted by a stranger about a PR I did a few months ago #10506. The RPC API
parity_pendingTransactions
was able to accept filtering parameters in the following form:This no longer seems to be the case. It's also not documented in the docs. The changed I made are still part of the codebase.
How to reproduce
Expected behavior
The node should return the filtered transactions (if any).
Please clarify whether this feature is actually intended to work/should have been implemented.
Thanks.
The text was updated successfully, but these errors were encountered: