Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
831d10b
wallet::AvailableCoins filter struct instead of having an endless amo…
furszy Nov 16, 2020
3b9bf04
wallet::AvailableCoins introduced flag for including or not locked co…
furszy Nov 16, 2020
b65e670
walletModel: listCoins removing a unneeded ListLockedCoins call plus …
furszy Nov 16, 2020
a10cdcb
walletModel: listCoins cleaning an overkill to get the address that o…
furszy Nov 17, 2020
100c006
coin control, update view method refactored pulling the output basic …
furszy Nov 17, 2020
cf42757
[qt] coincontrol: Remove unused qt4 workaround
Jun 25, 2018
031b006
Use z = std::max(x - y, 0); instead of z = x - y; if (z < 0) z = 0;
practicalswift Feb 3, 2017
6752f5b
coin control, update view: removing unused priority calculation.
furszy Nov 17, 2020
f2297a6
WalletModel::listCoins P2CS utxo grouped properly.
furszy Nov 17, 2020
a19eb53
CoinControlDialog: making use of the new optional staker addresses th…
furszy Nov 17, 2020
8aac899
CoinControlDialog::updateView removing never used dead code. The `sAd…
furszy Nov 17, 2020
f602fab
CoinControlDialog::updateView removing redundant labelForAddress call.
furszy Nov 17, 2020
9927b08
Wallet and GUI: remove unused tx priority calculation and send free t…
furszy Nov 17, 2020
30f67e0
wallet: moving ListLockedCoins to directly return the set instead of …
furszy Nov 17, 2020
3420701
GUI: coinControlDialog removing an totally redundant, unnecessary and…
furszy Nov 17, 2020
fd19626
GUI: coinControlDialog removing unnecessary uncompressed keys size ca…
furszy Nov 17, 2020
18e2761
GUI: coinControlDialog removing now unneded qt5.3 and qt5.4 workaroun…
furszy Nov 17, 2020
8ca9d45
GUI: coin control dialog, abstracting out row load.
furszy Nov 18, 2020
a463ac2
Model:ListCoins, abstracted returned value into a wrapper in order to…
furszy Nov 18, 2020
71e1f98
Wallet + GUI: IsChange function + coin control, setting change label …
furszy Nov 19, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions src/addrman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,7 @@ bool CAddrInfo::IsTerrible(int64_t nNow) const
double CAddrInfo::GetChance(int64_t nNow) const
{
double fChance = 1.0;

int64_t nSinceLastSeen = nNow - nTime;
int64_t nSinceLastTry = nNow - nLastTry;

if (nSinceLastSeen < 0)
nSinceLastSeen = 0;
if (nSinceLastTry < 0)
nSinceLastTry = 0;
int64_t nSinceLastTry = std::max<int64_t>(nNow - nLastTry, 0);

// deprioritize very recent attempts away
if (nSinceLastTry < 60 * 10)
Expand Down
Loading