|
|
|
|
@ -88,6 +88,8 @@ required_options = {'BLOCKCHAIN': ['blockchain_source', 'network'],
|
|
|
|
|
'POLICY': ['absurd_fee_per_kb', 'taker_utxo_retries', |
|
|
|
|
'taker_utxo_age', 'taker_utxo_amtpercent']} |
|
|
|
|
|
|
|
|
|
_DEFAULT_INTEREST_RATE = "0.015" |
|
|
|
|
|
|
|
|
|
defaultconfig = \ |
|
|
|
|
""" |
|
|
|
|
[DAEMON] |
|
|
|
|
@ -291,6 +293,14 @@ minimum_makers = 4
|
|
|
|
|
# whatever the value of it, and this is set with the value -1. |
|
|
|
|
max_sats_freeze_reuse = -1 |
|
|
|
|
|
|
|
|
|
# Interest rate used when calculating the value of fidelity bonds created |
|
|
|
|
# by locking bitcoins in timelocked addresses |
|
|
|
|
# See also: |
|
|
|
|
# https://gist.github.com/chris-belcher/87ebbcbb639686057a389acb9ab3e25b#determining-interest-rate-r |
|
|
|
|
# Set as a real number, i.e. 1 = 100% and 0.01 = 1% |
|
|
|
|
interest_rate = """ + _DEFAULT_INTEREST_RATE + """ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
############################## |
|
|
|
|
#THE FOLLOWING SETTINGS ARE REQUIRED TO DEFEND AGAINST SNOOPERS. |
|
|
|
|
#DON'T ALTER THEM UNLESS YOU UNDERSTAND THE IMPLICATIONS. |
|
|
|
|
@ -538,6 +548,10 @@ _BURN_DESTINATION = "BURN"
|
|
|
|
|
def is_burn_destination(destination): |
|
|
|
|
return destination == _BURN_DESTINATION |
|
|
|
|
|
|
|
|
|
def get_interest_rate(): |
|
|
|
|
return float(global_singleton.config.get('POLICY', 'interest_rate', |
|
|
|
|
fallback=_DEFAULT_INTEREST_RATE)) |
|
|
|
|
|
|
|
|
|
def remove_unwanted_default_settings(config): |
|
|
|
|
for section in config.sections(): |
|
|
|
|
if section.startswith('MESSAGING:'): |
|
|
|
|
|