diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2023-03-18 18:23:14 -0400 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2023-03-18 18:23:14 -0400 |
| commit | 225e5ba571264eb9ceb1e7defa732d8ea28ab5cb (patch) | |
| tree | 0ad4ec7c9845447eff358f6a863b7c981e584a97 /src/cryptonote_config.h | |
| parent | 66f57299a220db539fdfb280c27483660664875d (diff) | |
| parent | 5900ed3706caa1beeef88738e7b62194280af5d9 (diff) | |
| download | monzero-core-225e5ba571264eb9ceb1e7defa732d8ea28ab5cb.tar.gz monzero-core-225e5ba571264eb9ceb1e7defa732d8ea28ab5cb.tar.xz monzero-core-225e5ba571264eb9ceb1e7defa732d8ea28ab5cb.zip | |
Merge pull request #8784
5900ed3 Add a size limit for tx_extra in tx pool (tevador)
Diffstat (limited to 'src/cryptonote_config.h')
| -rw-r--r-- | src/cryptonote_config.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cryptonote_config.h b/src/cryptonote_config.h index d37463af0..bac49aa94 100644 --- a/src/cryptonote_config.h +++ b/src/cryptonote_config.h @@ -206,6 +206,11 @@ #define DNS_BLOCKLIST_LIFETIME (86400 * 8) +//The limit is enough for the mandatory transaction content with 16 outputs (547 bytes), +//a custom tag (1 byte) and up to 32 bytes of custom data for each recipient. +// (1+32) + (1+1+16*32) + (1+16*32) = 1060 +#define MAX_TX_EXTRA_SIZE 1060 + // New constants are intended to go here namespace config { |
