lib/mastercoin-wallet/network/wallet.rb in mastercoin-wallet-0.0.5 vs lib/mastercoin-wallet/network/wallet.rb in mastercoin-wallet-0.0.6
- old
+ new
@@ -7,9 +7,10 @@
# Thread.new do
@address = MastercoinWallet::Address.new(MastercoinWallet::config.address).find
MastercoinWallet.config.set_key(:balance, (@address["balance"] || 0))
MastercoinWallet.config.set_key(:test_balance, (@address["test_balance"] || 0))
+ MastercoinWallet.config.set_key(:created_transactions, []) if MastercoinWallet.config.get_key(:created_transactions).blank?
["sold", "bought", "received_transactions","pending_offers", "sent_transactions", "exodus_transactions", "bitcoin_transactions", "spendable_outputs"].each do |x|
if @address[x]
MastercoinWallet.config.set_key(x, @address[x])
end