2022-03-02 13:29:59 +00:00
|
|
|
BOOTSTRAP_ATTEMPTS = 5
|
|
|
|
PEER_AMOUNT_TO_ASK = 3
|
|
|
|
TRANSPORT_SIZE_BYTES = 64
|
|
|
|
BLOCK_MAX_SIZE = 1024 * 2000
|
2022-06-26 05:34:49 +00:00
|
|
|
BLOCK_SIZE_LEN = len(str(BLOCK_MAX_SIZE))
|
2022-03-05 00:05:12 +00:00
|
|
|
BLOCK_ID_SIZE = 128
|
2022-04-03 06:16:58 +00:00
|
|
|
BLOCK_STREAM_OFFSET_DIGITS = 8
|
2022-03-26 23:24:40 +00:00
|
|
|
DANDELION_EPOCH_LENGTH = 60
|
2022-03-13 01:28:18 +00:00
|
|
|
|
|
|
|
# Magic number i made up, not really specified in dandelion++ paper
|
2022-03-13 06:35:22 +00:00
|
|
|
MAX_INBOUND_DANDELION_EDGE = 50 # Mainly picked to avoid slowloris
|
2022-03-13 01:28:18 +00:00
|
|
|
|
|
|
|
# Dandelion subgraph is aprox 4-regular
|
2022-03-14 15:04:28 +00:00
|
|
|
OUTBOUND_DANDELION_EDGES = 2
|
2022-03-13 01:28:18 +00:00
|
|
|
|
|
|
|
MAX_STEM_BLOCKS_PER_STREAM = 1000
|
2022-07-19 05:32:54 +00:00
|
|
|
BLACKHOLE_EVADE_TIMER_SECS = 10
|