solution: support new method eth_feeHistory
This commit is contained in:
@@ -179,7 +179,7 @@ Dshackle currently supports
|
|||||||
- `eth_getTransactionByBlockNumberAndIndex`
|
- `eth_getTransactionByBlockNumberAndIndex`
|
||||||
- `eth_getTransactionReceipt`
|
- `eth_getTransactionReceipt`
|
||||||
- `eth_getUncleByBlockNumberAndIndex`
|
- `eth_getUncleByBlockNumberAndIndex`
|
||||||
|
- `eth_feeHistory`
|
||||||
|
|
||||||
.Plus following methods are answered directly by Dshackle
|
.Plus following methods are answered directly by Dshackle
|
||||||
- `net_version`
|
- `net_version`
|
||||||
@@ -193,7 +193,7 @@ Dshackle currently supports
|
|||||||
- `eth_hashrate`
|
- `eth_hashrate`
|
||||||
- `eth_accounts`
|
- `eth_accounts`
|
||||||
|
|
||||||
It's possible to enable additional methods that are available on upstream, or disable an existing method. For that purpose
|
It's possible to enable additional methods that are available on upstream, or disable an existing method.For that purpose
|
||||||
there is `methods` configuration:
|
there is `methods` configuration:
|
||||||
|
|
||||||
[source, yaml]
|
[source, yaml]
|
||||||
@@ -211,10 +211,10 @@ upstreams:
|
|||||||
----
|
----
|
||||||
|
|
||||||
Such configuration option allows to execute method `trace_transaction` and also disables `eth_getBlockByNumber` on that
|
Such configuration option allows to execute method `trace_transaction` and also disables `eth_getBlockByNumber` on that
|
||||||
particular upstream. If a client requests to execute method `trace_transaction` then it will be scheduled to that upstream (or
|
particular upstream.If a client requests to execute method `trace_transaction` then it will be scheduled to that upstream (or
|
||||||
any upstream with such method enabled).
|
any upstream with such method enabled).
|
||||||
|
|
||||||
NOTE: It's especially useful when used together with upstream labels. If an archive upstream has label `archive: true` it's
|
NOTE: It's especially useful when used together with upstream labels.If an archive upstream has label `archive: true` it's
|
||||||
possible to specify that the client wants to execute method `trace_transaction` only on an archive node(s), which has
|
possible to specify that the client wants to execute method `trace_transaction` only on an archive node(s), which has
|
||||||
complete historical data for tracing.
|
complete historical data for tracing.
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,8 @@ class DefaultEthereumMethods(
|
|||||||
"eth_getBlockByNumber",
|
"eth_getBlockByNumber",
|
||||||
"eth_getTransactionByBlockNumberAndIndex",
|
"eth_getTransactionByBlockNumberAndIndex",
|
||||||
"eth_getTransactionReceipt",
|
"eth_getTransactionReceipt",
|
||||||
"eth_getUncleByBlockNumberAndIndex"
|
"eth_getUncleByBlockNumberAndIndex",
|
||||||
|
"eth_feeHistory"
|
||||||
)
|
)
|
||||||
|
|
||||||
private val allowedMethods = anyResponseMethods + firstValueMethods + specialMethods + headVerifiedMethods
|
private val allowedMethods = anyResponseMethods + firstValueMethods + specialMethods + headVerifiedMethods
|
||||||
|
|||||||
Reference in New Issue
Block a user