forked from OpenBazaar/OpenBazaar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrap most long lines: fix all bad hanging indents.
* Fixes many E501-s; more work needs to be done. * Fixes all E127-s.
- Loading branch information
Showing
14 changed files
with
481 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,47 @@ | ||
# ######## KADEMLIA CONSTANTS ########### | ||
|
||
# Small number Representing the degree of parallelism in network calls | ||
# Small number representing the degree of | ||
# parallelism in network calls | ||
alpha = 3 | ||
|
||
# Maximum number of contacts stored in a bucket; this should be an even number | ||
# Maximum number of contacts stored in a bucket | ||
# NOTE: Should be an even number | ||
k = 80 | ||
|
||
# Timeout for network operations (in seconds) | ||
# Timeout for network operations | ||
# [seconds] | ||
rpcTimeout = 0.1 | ||
|
||
# Delay between iterations of iterative node lookups (for loose parallelism) (in seconds) | ||
# Delay between iterations of iterative node lookups | ||
# (for loose parallelism) | ||
# [seconds] | ||
iterativeLookupDelay = rpcTimeout / 2 | ||
|
||
# If a k-bucket has not been used for this amount of time, refresh it (in seconds) | ||
# If a k-bucket has not been used for this amount of time, refresh it. | ||
# [seconds] | ||
refreshTimeout = 60 * 60 * 1000 # 1 hour | ||
# The interval at which nodes replicate (republish/refresh) data they are holding | ||
|
||
# The interval at which nodes replicate (republish/refresh) | ||
# the data they hold | ||
# [seconds] | ||
replicateInterval = refreshTimeout | ||
# The time it takes for data to expire in the network; the original publisher of the data | ||
# will also republish the data at this time if it is still valid | ||
|
||
# The time it takes for data to expire in the network; | ||
# the original publisher of the data will also republish | ||
# the data at this time if it is still valid | ||
# [seconds] | ||
dataExpireTimeout = 86400 # 24 hours | ||
|
||
# ####### IMPLEMENTATION-SPECIFIC CONSTANTS ########### | ||
|
||
# The interval in which the node should check its whether any buckets need refreshing, | ||
# or whether any data needs to be republished (in seconds) | ||
# The interval in which the node should check whether any buckets | ||
# need refreshing or whether any data needs to be republished | ||
# [seconds] | ||
checkRefreshInterval = refreshTimeout / 5 | ||
|
||
# Max size of a single UDP datagram, in bytes. If a message is larger than this, it will | ||
# be spread accross several UDP packets. | ||
# Max size of a single UDP datagram. | ||
# Any larger message will be spread accross several UDP packets. | ||
# [bytes] | ||
udpDatagramMaxSize = 8192 # 8 KB | ||
|
||
DB_PATH = "db/ob.db" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.