aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_config.h
diff options
context:
space:
mode:
authortevador <tevador@gmail.com>2023-02-05 21:53:32 +0100
committertevador <tevador@gmail.com>2023-02-26 10:26:53 +0100
commit3771641fc5f40cee20df297f49f0dc2213947a45 (patch)
tree22e57d912b2cb8248f8809d21cd1e40968bc9e60 /src/cryptonote_config.h
parentMerge pull request #8675 (diff)
downloadmonero-3771641fc5f40cee20df297f49f0dc2213947a45.tar.xz
Add a size limit for tx_extra in tx pool
Diffstat (limited to '')
-rw-r--r--src/cryptonote_config.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cryptonote_config.h b/src/cryptonote_config.h
index 2ec194ef8..0d96617a7 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
{