Skip to content

Commit

Permalink
archiving inactive addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
sashazykov committed Nov 12, 2014
1 parent 5a9a4f8 commit 9462a58
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/models/project.rb
Expand Up @@ -216,4 +216,11 @@ def self.find_or_create_by_url project_url

Github.new.find_or_create_project project_name
end

# Removes inactive addresses from the wallet
# Description: https://blockchain.info/api/blockchain_wallet_api
def self.consolidate_addresses
uri = URI("https://blockchain.info/merchant/#{CONFIG["blockchain_info"]["guid"]}/auto_consolidate?password=#{CONFIG["blockchain_info"]["password"]}&days=60")
res = Net::HTTP.get_response(uri)
end
end

0 comments on commit 9462a58

Please sign in to comment.