Browse Source

Default disabled upload mixing with new config value

master
Kevin Froman 3 days ago
parent
commit
c0ebfec034
2 changed files with 8 additions and 1 deletions
  1. +7
    -1
      src/httpapi/miscpublicapi/upload.py
  2. +1
    -0
      static-data/default_config.json

+ 7
- 1
src/httpapi/miscpublicapi/upload.py View File

@@ -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',


+ 1
- 0
static-data/default_config.json View File

@@ -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
},


Loading…
Cancel
Save