paranoid and blacklist
This commit is contained in:
@@ -218,10 +218,21 @@ class Transaction
|
||||
public function add_mempool($x, $peer = "")
|
||||
{
|
||||
global $db;
|
||||
global $_config;
|
||||
$block = new Block();
|
||||
if ($x['version']>110) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if ($_config['use_official_blacklist']!==false) {
|
||||
$blacklisted=[
|
||||
"PZ8Tyr4Nx8MHsRAGMpZmZ6TWY63dXWSCvVQcHHCNLfiP9LmzWhhpCHx39Bhc67P5HMQM9cctEFvcsUdgrkGqy18taz9ZMrAGtq7NhBYpQ4ZTHkKYiZDaSUqQ", //faucet abuser
|
||||
"PZ8Tyr4Nx8MHsRAGMpZmZ6TWY63dXWSCxYDeQHk7Ke66UB2Un3UMmMoJ7RF5vDZXihdEXi8gk8ZBRAi35aFrER2ZLX1mgND7sLFXKETGTjRYjoHcuRNiJN1g" // octaex
|
||||
];
|
||||
if (in_array($public_key, $blacklisted)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
$current = $block->current();
|
||||
$height = $current['height'];
|
||||
$x['id'] = san($x['id']);
|
||||
|
||||
Reference in New Issue
Block a user