mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
rpc: also prevent dangerous methods in core btc class
This commit is contained in:
parent
3343328da5
commit
b0a0e53293
1 changed files with 5 additions and 0 deletions
|
@ -135,6 +135,11 @@ class Bitcoin {
|
|||
// The ID should be unique for each call
|
||||
$this->id++;
|
||||
|
||||
if (stripos($method, 'dump') !== false) {
|
||||
$this->error = "$method method is not authorized!";
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
// If no parameters are passed, this will be an empty array
|
||||
if($method == 'getblocktemplate')
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue