mirror of
https://github.com/monero-project/monero.git
synced 2025-07-26 13:45:29 -04:00
set max block size for gbt
This commit is contained in:
parent
2a2b36d425
commit
eba62452c0
2 changed files with 9 additions and 0 deletions
|
@ -424,6 +424,14 @@ namespace cryptonote
|
|||
if (tx.second.blob_size > upper_transaction_size_limit)
|
||||
continue;
|
||||
|
||||
// If adding this tx will make the block size
|
||||
// greater than CRYPTONOTE_GETBLOCKTEMPLATE_MAX
|
||||
// _BLOCK_SIZE bytes, reject the tx; this will
|
||||
// keep block sizes from becoming too unwieldly
|
||||
// to propagate at 60s block times.
|
||||
if ( (total_size + tx.second.blob_size) > CRYPTONOTE_GETBLOCKTEMPLATE_MAX_BLOCK_SIZE )
|
||||
continue;
|
||||
|
||||
// If adding this tx will make the block size
|
||||
// greater than 130% of the median, reject the
|
||||
// tx; this will keep down largely punitive tx
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue