Merge pull request #8733

3771641 Add a size limit for tx_extra in tx pool (tevador)
This commit is contained in:
luigi1111 2023-03-18 18:18:13 -04:00
commit 76dd14dfb1
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
6 changed files with 22 additions and 1 deletions

View file

@ -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
{