mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-31 01:01:28 +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
|
// The ID should be unique for each call
|
||||||
$this->id++;
|
$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 no parameters are passed, this will be an empty array
|
||||||
if($method == 'getblocktemplate')
|
if($method == 'getblocktemplate')
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue