block a bunch of commands
This commit is contained in:
parent
1ecd852401
commit
fb6a1bb9d7
@ -374,6 +374,46 @@ impl Web3ProxyApp {
|
||||
let span = info_span!("rpc_request");
|
||||
// let _enter = span.enter(); // DO NOT ENTER! we can't use enter across awaits! (clippy lint soon)
|
||||
match &request.method[..] {
|
||||
"admin_addPeer"
|
||||
| "admin_datadir"
|
||||
| "admin_startRPC"
|
||||
| "admin_startWS"
|
||||
| "admin_stopRPC"
|
||||
| "admin_stopWS"
|
||||
| "debug_chaindbCompact"
|
||||
| "debug_freezeClient"
|
||||
| "debug_goTrace"
|
||||
| "debug_mutexProfile"
|
||||
| "debug_setBlockProfileRate"
|
||||
| "debug_setGCPercent"
|
||||
| "debug_setHead"
|
||||
| "debug_setMutexProfileFraction"
|
||||
| "debug_standardTraceBlockToFile"
|
||||
| "debug_standardTraceBadBlockToFile"
|
||||
| "debug_startCPUProfile"
|
||||
| "debug_startGoTrace"
|
||||
| "debug_stopCPUProfile"
|
||||
| "debug_stopGoTrace"
|
||||
| "debug_writeBlockProfile"
|
||||
| "debug_writeMemProfile"
|
||||
| "debug_writeMutexProfile"
|
||||
| "les_addBalance"
|
||||
| "les_setClientParams"
|
||||
| "les_setDefaultParams"
|
||||
| "miner_setExtra"
|
||||
| "miner_setGasPrice"
|
||||
| "miner_start"
|
||||
| "miner_stop"
|
||||
| "miner_setEtherbase"
|
||||
| "miner_setGasLimit"
|
||||
| "personal_importRawKey"
|
||||
| "personal_listAccounts"
|
||||
| "personal_lockAccount"
|
||||
| "personal_newAccount"
|
||||
| "personal_unlockAccount"
|
||||
| "personal_sendTransaction"
|
||||
| "personal_sign"
|
||||
| "personal_ecRecover" => Err(anyhow::anyhow!("unimplemented")),
|
||||
"eth_sendRawTransaction" => {
|
||||
// there are private rpcs configured and the request is eth_sendSignedTransaction. send to all private rpcs
|
||||
// TODO: think more about this lock. i think it won't actually help the herd. it probably makes it worse if we have a tight lag_limit
|
||||
|
Loading…
Reference in New Issue
Block a user