Addresses #8555.
Changes the recommended -maxuploadtarget
minimum from 144 blocks per day to 72 blocks per day. With the SWs MAX_BLOCK_SERIALIZED_SIZE
of 4MiB, 144 blocks per day would result in a recommended minimum of 576MiB per day = ~17GB per Month in uploading blocks. IMO this is too hight for a recommended minimum.
This PR changes the minimum calculation from 144 to 72 blocks per day (“half day of full blocks”).
Anyway, the calculation is just a form of an vague estimation of how many MiB in historical blocks we should recommend to broadcast upstream when -maxuploadtarget
is set. It does not take -maxconnection etc. into the calculation.
The current maxuploadtarget recommendation is calculated using MAX_BLOCK_SERIALIZED_SIZE
(4MB) instead of MAX_BLOCK_BASE_SIZE
(1MB). Given that the function is there to reduce uploading historical blocks, using MAX_BLOCK_BASE_SIZE
makes more sense.