[UPDATE] Getbalance wrapper
We need to wrap our getbalance call due to issues in the coind and payout systems in the RPC. Apparently it's having issues with multiple accounts setup in a single wallet. Sendmany can not properly use other accounts added to the wallet as the payout account. Hence we wrap our getbalance call in the RPC and only return the default account balance at all times. Since this is used for all payouts and for payments from blocks, there should be no issue. Those pools running multiple accounts in their wallet will have to move their coins into the default wallet!
This commit is contained in:
parent
332aa5aaa4
commit
71aca7e0af
@ -31,6 +31,12 @@ class BitcoinWrapper extends BitcoinClient {
|
||||
if ($data = $this->memcache->get(__FUNCTION__)) return $data;
|
||||
return $this->memcache->setCache(__FUNCTION__, parent::getmininginfo(), 30);
|
||||
}
|
||||
// Wrapper to check our wallet balance from the DEFAULT account only
|
||||
public function getbalance() {
|
||||
$this->oDebug->append("STA " . __METHOD__, 4);
|
||||
$aAccounts = parent::listaccounts();
|
||||
return $aAccounts[''];
|
||||
}
|
||||
public function getblockcount() {
|
||||
$this->oDebug->append("STA " . __METHOD__, 4);
|
||||
if ($data = $this->memcache->get(__FUNCTION__)) return $data;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user