mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-29 18:53:14 +00:00
further restrict maximum tx size b/c of spam
This commit is contained in:
parent
377567534c
commit
cf885350d9
1 changed files with 6 additions and 1 deletions
|
@ -102,7 +102,12 @@ namespace tools
|
||||||
void store();
|
void store();
|
||||||
cryptonote::account_base& get_account(){return m_account;}
|
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();
|
bool deinit();
|
||||||
|
|
||||||
void stop() { m_run.store(false, std::memory_order_relaxed); }
|
void stop() { m_run.store(false, std::memory_order_relaxed); }
|
||||||
|
|
Loading…
Reference in a new issue