Skip to content

Commit 482ff3b

Browse files
author
Antoine Le Calvez
committed
Removed consolidate from Wallet
1 parent 20ef391 commit 482ff3b

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

docs/wallet.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,6 @@ $result = $Blockchain->Wallet->unarchiveAddress($address);
128128
```
129129

130130

131-
###Consolidate Addresses
132-
Removes inactive addresses from the wallet and sets them up as forwarding addresses. Callback notifications will continue to fire for these addresses, but they will not be part of the wallet. The `$days` parameter determines how long an address must have been inactive in order to be consolidated. A good value for this number is `60` days (the default). Returns a simple `string array` of addresses.
133-
134-
```php
135-
$addresses = $Blockchain->Wallet->consolidateAddresses($days=60);
136-
```
137-
138-
139131
Return Objects
140132
--------------
141133

src/Wallet/Wallet.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,6 @@ public function unarchiveAddress($address) {
9797
return false;
9898
}
9999

100-
public function consolidateAddresses($days=60) {
101-
$consolidated = array();
102-
$json = $this->call('auto_consolidate', array('days'=>intval($days)));
103-
if(array_key_exists('consolidated', $json) && is_array($json['consolidated'])) {
104-
$consolidated = $json['consolidated'];
105-
}
106-
return $consolidated;
107-
}
108-
109100
public function send($to_address, $amount, $from_address=null, $fee=null, $public_note=null) {
110101
if(!isset($amount))
111102
throw new ParameterError("Amount required.");

0 commit comments

Comments
 (0)