-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.py
More file actions
88 lines (70 loc) · 2.59 KB
/
config.py
File metadata and controls
88 lines (70 loc) · 2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import logging
import arkdbtools.config as info
# all values used throughout the script are in ark-satoshis, except for the logging of the payouts,
# to make it more readably. You can use X * info.ARK to denote a X ARK
# DATABASE for user data settings:
username = None
password = None
# How to connect to the ark-node
CONNECTION = {
'HOST': None,
'DATABASE': None,
'USER': None,
'PASSWORD': None,
}
# Who are we: the delegate's info.
DELEGATE = {
'PUBKEY' : None,
'ADDRESS' : None,
'SECRET' : None,
'SECOND_SECRET': None,
'REWARDWALLET': None,
'REWARD_SMARTBRIDGE': '',
}
CALCULATION_SETTINGS = {
'STARTBLOCK_CALCULATION': 0,
}
# How are fees calculated.
SENDER_SETTINGS = {
# at calculation, wallet has to be a current voter
'REQUIRE_CURRENT_VOTER': True,
# The default share ratio
'DEFAULT_SHARE': 0.96,
# startblock calculation
# any balance above max balance or below min balance is not taken in the
# calculation (the ark is divided amongst voters and delegate)
# so if MAX_BALANCE == 200k and a voter has
# 300k, it is counted as 200K.
# If a voter has 1 Ark, and MIN_BALANCE == 2 Ark, it is counted as 0 Ark
'MIN_PAYOUT_BALANCE' : 0,
'COVER_TX_FEES' : True,
# At the end of the personal message a tag could be included for
# administrative purposes
# Example: 'Thanks for voting! ::VOTINGFEE::
'PERSONAL_MESSAGE': None,
# min amount of seconds between a payout
'WAIT_TIME': 0,
'WAIT_TIME_REWARD': 0,
}
#IP address of node to send the transactions to, example format: 'http://146.185.144.47:4001'
IP = 'http://146.185.144.47:4001'
# Blacklisted voters: whom do we never wish to pay out. Their Ark is divided over all other voters + delegate
# format is a list
BLACKLIST = None
# Like blacklist, except delegate gets to keep the ark (not automatically added to delegate share)
DARKLIST = None
# preset amounts to be sent. format is a dict with address: amount. amount is in arksatoshis (10^8 as = 1 ark)
HARD_EXCEPTIONS = None
# Where to log stuff. This will be rotated so that the disk doesn't fill
# up like crazy.
LOGGING = {
# log to this file and create -1, -2 etc. for historical versions
'LOGDIR' : '/tmp/payoutscriptark.log',
'LOGGING_LEVEL': logging.INFO
}
# This enables the testmode in the payout sender. No payouts are sent,
# only log statements are generated.
PAYOUTCALCULATOR_TEST = True
PAYOUTSENDER_TEST = True
REWARD_DELEGATE_TEST = True
USE_LOCKS = True