mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-02-02 15:24:01 +00:00
Add eth_newFilter stub now types are fixed
This commit is contained in:
parent
dedb63a7f7
commit
6223a9a638
@ -483,9 +483,6 @@ proc setupP2PRPC*(node: EthereumNode, rpcsrv: RpcServer) =
|
|||||||
let uncle = body.uncles[quantity]
|
let uncle = body.uncles[quantity]
|
||||||
result = populateBlockObject(uncle, body)
|
result = populateBlockObject(uncle, body)
|
||||||
|
|
||||||
# FilterOptions requires more layout planning.
|
|
||||||
# See: https://github.com/status-im/nim-json-rpc/issues/29
|
|
||||||
#[
|
|
||||||
rpcsrv.rpc("eth_newFilter") do(filterOptions: FilterOptions) -> int:
|
rpcsrv.rpc("eth_newFilter") do(filterOptions: FilterOptions) -> int:
|
||||||
## Creates a filter object, based on filter options, to notify when the state changes (logs).
|
## Creates a filter object, based on filter options, to notify when the state changes (logs).
|
||||||
## To check if the state has changed, call eth_getFilterChanges.
|
## To check if the state has changed, call eth_getFilterChanges.
|
||||||
@ -499,7 +496,6 @@ proc setupP2PRPC*(node: EthereumNode, rpcsrv: RpcServer) =
|
|||||||
## filterOptions: settings for this filter.
|
## filterOptions: settings for this filter.
|
||||||
## Returns integer filter id.
|
## Returns integer filter id.
|
||||||
discard
|
discard
|
||||||
]#
|
|
||||||
|
|
||||||
rpcsrv.rpc("eth_newBlockFilter") do() -> int:
|
rpcsrv.rpc("eth_newBlockFilter") do() -> int:
|
||||||
## Creates a filter in the node, to notify when a new block arrives.
|
## Creates a filter in the node, to notify when a new block arrives.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user