forked from cerc-io/plugeth
Increased filter ticker time to 5 minutes
This commit is contained in:
parent
95711bc2dd
commit
12cee1377f
@ -23,7 +23,7 @@ import (
|
|||||||
var (
|
var (
|
||||||
defaultGasPrice = big.NewInt(150000000000)
|
defaultGasPrice = big.NewInt(150000000000)
|
||||||
defaultGas = big.NewInt(500000)
|
defaultGas = big.NewInt(500000)
|
||||||
filterTickerTime = 15 * time.Second
|
filterTickerTime = 5 * time.Minute
|
||||||
)
|
)
|
||||||
|
|
||||||
type EthereumApi struct {
|
type EthereumApi struct {
|
||||||
@ -573,7 +573,7 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
*reply = toHex(big.NewInt(v).Bytes())
|
*reply = toHex(big.NewInt(v).Bytes())
|
||||||
case "eth_getData":
|
case "eth_getData", "eth_getCode":
|
||||||
args := new(GetDataArgs)
|
args := new(GetDataArgs)
|
||||||
if err := json.Unmarshal(req.Params, &args); err != nil {
|
if err := json.Unmarshal(req.Params, &args); err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user