Skip to content

Commit

Permalink
#
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisDemyanko committed Jun 11, 2020
1 parent 536fe05 commit cc90ac3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
10 changes: 10 additions & 0 deletions BeamWallet/BeamSDK/WalletModel.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1090,8 +1090,17 @@
}

NSString* WalletModel::GetUTXOTypeString(beam::wallet::Coin coin) {
NSLog(@"%d",coin.m_ID.m_Type);
switch (coin.m_ID.m_Type)
{
case Key::Type::Asset:
return [[@"Asset" localized] lowercaseString];
case Key::Type::Decoy:
return [[@"Decoy" localized] lowercaseString];
case Key::Type::Bbs:
return [[@"BBS" localized] lowercaseString];
case Key::Type::ChildKey:
return [[@"ChildKey" localized] lowercaseString];
case Key::Type::Comission:
return [[@"transaction_fee" localized] lowercaseString];
case Key::Type::Coinbase:
Expand All @@ -1100,6 +1109,7 @@
return [[@"regular" localized] lowercaseString];
case Key::Type::Change:
return [[@"utxo_type_change" localized] lowercaseString];

case Key::Type::Treasury: {
return [[@"treasury" localized] lowercaseString];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,12 @@ extension OpenWalletProgressViewController : WalletModelDelegate {

let percent = (Float64(done) / Float64(total)) * Float64(100)

if done == total || percent >= 99.9 {
print(percent)

if done == total {
if !strongSelf.stopRestore {
print("stop")

strongSelf.stopRestore = true

let deadlineTime = DispatchTime.now() + .seconds(4)
Expand Down

0 comments on commit cc90ac3

Please sign in to comment.