Bitcoin Forum
July 06, 2024, 04:04:48 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is there a way to turn off fee variation in JoinMarket?  (Read 116 times)
markcolls (OP)
Member
**
Offline Offline

Activity: 60
Merit: 21


View Profile
December 04, 2020, 07:49:31 AM
Last edit: December 04, 2020, 09:33:31 AM by markcolls
 #1

Code:
In JoinMarket, whenever transaction fees are manually set, the fees are varied by +/-20% to prevent fee correlation. I want to turn off this 20% fee variation feature temporarily for something I'm doing, but I don't see anything in the [i]joinmarket.cfg[/i] regarding it. Do any of you know how I can turn it off?

[b][SOLVED][/b]
Go to [code]joinmarket-clientserver/jmclient/jmclient/blockchaininterface.py
Replace
Code:
return int(max(relayfee_in_sat, random.uniform(N * float(0.8), N * float(1.2))))
with
Code:
return(N)
and
Replace
Code:
return int(max(1000, random.uniform(N * float(0.8), N * float(1.2))))
with code]return(N)[/code]

Alternatively, you can comment the line out with a
Code:
#
and and add
Code:
return(N)
underneath instead of replacing.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!