Skip to content

Commit

Permalink
Merge branch 'bright_boson_2.1RC' into mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
anatolse committed May 15, 2019
2 parents c8423bc + bbcf8cb commit 3ad661b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ui/viewmodel/statusbar_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,14 @@ int StatusbarViewModel::getNodeSyncProgress() const

QString StatusbarViewModel::getBranchName() const
{
#ifdef BEAM_MAINNET
return QString();
#else
if (BRANCH_NAME.empty())
return QString();

return QString::fromStdString(" (" + BRANCH_NAME + ")");
#endif
}

QString StatusbarViewModel::getWalletStatusErrorMsg() const
Expand Down
4 changes: 2 additions & 2 deletions wallet/unittests/wallet_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1979,7 +1979,7 @@ namespace

{
// create cold wallet
TestWalletRig privateSender("receiver", createReceiverWalletDB(true), f, true);
TestWalletRig privateReceiver("receiver", createReceiverWalletDB(true), f, true);
}

string publicPath = "receiver_public.db";
Expand Down Expand Up @@ -2014,7 +2014,7 @@ namespace
TestWalletRig publicReceiver("public_receiver", publicDB, f, false, true);

mainReactor->run();
mainReactor->run(); // to allow receiver complete his transaction
mainReactor->run(); // to allow receiver complete this transaction
}

// hot -> cold
Expand Down
3 changes: 2 additions & 1 deletion wallet/wallet_transaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,8 @@ namespace beam { namespace wallet

bool hasPeersInputsAndOutputs = builder.GetPeerInputsAndOutputs();

if (!builder.LoadKernel() && !builder.HasKernelID())
if ((isSender && !builder.LoadKernel())
|| (!isSender && !builder.HasKernelID()))
{
if (!m_WalletDB->get_MasterKdf())
{
Expand Down

0 comments on commit 3ad661b

Please sign in to comment.