diff options
| author | j-berman <justinberman95@gmail.com> | 2021-10-04 20:12:23 -0700 |
|---|---|---|
| committer | j-berman <justinberman95@gmail.com> | 2021-10-04 20:12:42 -0700 |
| commit | 84c52571ed6076a60c50b9a779e12fce2065325e (patch) | |
| tree | 44c9ab137f4a2dd6becaae738518089f3f7dccd7 /src | |
| parent | 6b824c9ed0e5555d614da9cadbb5bb2dbcd6a724 (diff) | |
| download | monzero-core-84c52571ed6076a60c50b9a779e12fce2065325e.tar.gz monzero-core-84c52571ed6076a60c50b9a779e12fce2065325e.tar.xz monzero-core-84c52571ed6076a60c50b9a779e12fce2065325e.zip | |
Decrease the "recent spend window" in gamma re-select to 15 blocks
- combined with patching integer truncation (#7798), this gets the algorithm marginally closer to mirroring empirically observed output ages
- 50 was originally chosen assuming integer truncation would remain in the client for that client release version. But patching integer truncation causes the client to select more outputs in the 10-100 block range, and therefore the benefit of choosing a larger recent spend window of 50 has less merit
- 15 seems well-suited to cover the somewhat sizable observable gap in the early window of blocks
Diffstat (limited to 'src')
| -rw-r--r-- | src/wallet/wallet2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 5a4cafc32..25c6bf3f9 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -146,7 +146,7 @@ using namespace cryptonote; #define IGNORE_LONG_PAYMENT_ID_FROM_BLOCK_VERSION 12 #define DEFAULT_UNLOCK_TIME (CRYPTONOTE_DEFAULT_TX_SPENDABLE_AGE * DIFFICULTY_TARGET_V2) -#define RECENT_SPEND_WINDOW (50 * DIFFICULTY_TARGET_V2) +#define RECENT_SPEND_WINDOW (15 * DIFFICULTY_TARGET_V2) static const std::string MULTISIG_SIGNATURE_MAGIC = "SigMultisigPkV1"; static const std::string MULTISIG_EXTRA_INFO_MAGIC = "MultisigxV1"; |
