Setup RPC query rates
This commit is contained in:
parent
b205f31605
commit
2200ccaec4
12
cmd/serve.go
12
cmd/serve.go
@ -98,7 +98,14 @@ func serve() {
|
||||
pm.Start(wg)
|
||||
|
||||
voucherValidator := paymentsmanager.InProcessValidator{PaymentsManager: pm}
|
||||
queryRates := map[string]*big.Int{"eth_getBlockByNumber": big.NewInt(50)}
|
||||
|
||||
// TODO: Configure
|
||||
queryRates := map[string]*big.Int{
|
||||
"eth_getBlockByNumber": big.NewInt(50),
|
||||
"eth_getBlockByHash": big.NewInt(50),
|
||||
"eth_getStorageAt": big.NewInt(50),
|
||||
"eth_getLogs": big.NewInt(50),
|
||||
}
|
||||
|
||||
if err := startServers(server, serverConfig, voucherValidator, queryRates); err != nil {
|
||||
logWithCommand.Fatal(err)
|
||||
@ -120,9 +127,6 @@ func serve() {
|
||||
logWithCommand.Debug("state validator disabled")
|
||||
}
|
||||
|
||||
// paymentsManager, _ := payments.NewPaymentsManager(true)
|
||||
// paymentsManager.Start(wg)
|
||||
|
||||
shutdown := make(chan os.Signal, 1)
|
||||
signal.Notify(shutdown, os.Interrupt)
|
||||
<-shutdown
|
||||
|
Loading…
Reference in New Issue
Block a user