Skip to content

Commit

Permalink
unlock wait time is doubled due to 240s block time
Browse files Browse the repository at this point in the history
  • Loading branch information
stoffu committed Feb 22, 2018
1 parent a0f2e31 commit 008f8c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ ApplicationWindow {
console.log("New block found - updating history")
currentWallet.history.refresh(currentWallet.currentSubaddressAccount)
timeToUnlock = currentWallet.history.minutesToUnlock
leftPanel.minutesToUnlockTxt = (timeToUnlock > 0)? (timeToUnlock == 20)? qsTr("Unlocked balance (waiting for block)") : qsTr("Unlocked balance (~%1 min)").arg(timeToUnlock) : qsTr("Unlocked balance");
leftPanel.minutesToUnlockTxt = (timeToUnlock > 0)? (timeToUnlock == 40)? qsTr("Unlocked balance (waiting for block)") : qsTr("Unlocked balance (~%1 min)").arg(timeToUnlock) : qsTr("Unlocked balance");
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/libwalletqt/TransactionHistory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ QList<TransactionInfo *> TransactionHistory::getAll(quint32 accountIndex) const
if (ti->confirmations() < requiredConfirmations && ti->blockHeight() >= lastTxHeight) {
lastTxHeight = ti->blockHeight();
// TODO: Fetch block time and confirmations needed from wallet2?
m_minutesToUnlock = (requiredConfirmations - ti->confirmations()) * 2;
m_minutesToUnlock = (requiredConfirmations - ti->confirmations()) * 4;
m_locked = true;
}

Expand Down

0 comments on commit 008f8c6

Please sign in to comment.