aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.h
diff options
context:
space:
mode:
authormonero-project <sempre.amaro@gmail.com>2014-05-26 23:02:01 -0400
committermonero-project <sempre.amaro@gmail.com>2014-05-26 23:02:01 -0400
commitcf885350d95c24519cdf5788255f57d6eb425ff4 (patch)
tree837e29f4a066f1971ccf9e592888424900e1da63 /src/wallet/wallet2.h
parentMerge pull request #16 from paybee/master (diff)
downloadmonero-cf885350d95c24519cdf5788255f57d6eb425ff4.tar.xz
further restrict maximum tx size b/c of spam
Diffstat (limited to '')
-rw-r--r--src/wallet/wallet2.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h
index edbf31f2d..4cbed2f9e 100644
--- a/src/wallet/wallet2.h
+++ b/src/wallet/wallet2.h
@@ -102,7 +102,12 @@ namespace tools
void store();
cryptonote::account_base& get_account(){return m_account;}
- void init(const std::string& daemon_address = "http://localhost:8080", uint64_t upper_transaction_size_limit = CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE*2 - CRYPTONOTE_COINBASE_BLOB_RESERVED_SIZE);
+ // upper_transaction_size_limit as defined below is set to
+ // approximately 125% of the fixed minimum allowable penalty
+ // free block size. TODO: fix this so that it actually takes
+ // into account the current median block size rather than
+ // the minimum block size.
+ void init(const std::string& daemon_address = "http://localhost:8080", uint64_t upper_transaction_size_limit = ((CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE * 125) / 100) - CRYPTONOTE_COINBASE_BLOB_RESERVED_SIZE);
bool deinit();
void stop() { m_run.store(false, std::memory_order_relaxed); }