solution: support new method eth_feeHistory

This commit is contained in:
Igor Artamonov
2021-08-26 21:09:53 -04:00
parent 54dc251c87
commit 9dffe2f6e9
2 changed files with 6 additions and 5 deletions

View File

@@ -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`

View File

@@ -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