Default disabled upload mixing with new config value

This commit is contained in:
Kevin Froman 2020-09-15 18:11:44 +00:00
vecāks c19797bb2e
revīzija c0ebfec034
2 mainīti faili ar 8 papildinājumiem un 1 dzēšanām

Parādīt failu

@ -13,6 +13,7 @@ from onionrutils import localcommand
from onionrblocks import blockimporter
import onionrexceptions
import logger
import config
"""
This program is free software: you can redistribute it and/or modify
@ -39,7 +40,12 @@ def accept_upload(request):
try:
b_hash = blockimporter.import_block_from_data(data)
if b_hash:
if g.too_many.get_by_string("DeadSimpleKV").get('onlinePeers'):
# Upload mixing is where a node will hide and reupload a block
# to act like it is also a creator
# This adds deniability but is very slow
if g.too_many.get_by_string(
"DeadSimpleKV").get('onlinePeers') and \
config.get('general.upload_mixing', False):
spawn(
localcommand.local_command,
'/daemon-event/upload_event',

Parādīt failu

@ -21,6 +21,7 @@
"security_level": 0,
"show_notifications": true,
"store_plaintext_blocks": true,
"upload_mixing": false,
"use_bootstrap_list": true,
"use_subprocess_pow_if_possible": true
},