Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
algorand
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nilak
algorand
Commits
1f375282
Commit
1f375282
authored
May 01, 2019
by
THAKARE AKSHAY HARIBHAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coded down reductin not working yet though
parent
6b047651
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
199 additions
and
49 deletions
+199
-49
Config.py
Config.py
+4
-1
OverlayNode.py
OverlayNode.py
+193
-47
SystemEntity.py
SystemEntity.py
+1
-0
TimeSimulator.py
TimeSimulator.py
+1
-1
No files found.
Config.py
View file @
1f375282
...
...
@@ -2,13 +2,16 @@ lambda_proposer = 3 # wait time for priority messages to be received
tou_proposer
=
20
# proposer rolecount
ROLE_BLOCK_PROPOSER
=
'BLOCK_PROPOSER'
tou_step
=
3
tou_step
=
3
# tou is expected number of users that sortition selects for committee
ROLE_COMMITEE_FOR_VOTE
=
'committee'
lambda_block
=
30
#seconds
lambda_step
=
3
BLOCK_PROPOSAL_MSG_type
=
'BLOCK_PROPOSAL_MSGs'
PRIORITY_MSG_type
=
'PRIORITY_MSG'
COMMITTEE_VOTE_MSG_type
=
"COMMITTEE_VOTE"
TIMEOUT
=
"TIMEOUT"
T
=
2
/
3
# T isa a fraction of expected committee size that defines BA*`s voting thershold
OverlayNode.py
View file @
1f375282
This diff is collapsed.
Click to expand it.
SystemEntity.py
View file @
1f375282
...
...
@@ -22,3 +22,4 @@ class SystemEntity(object):
'''
pass
TimeSimulator.py
View file @
1f375282
...
...
@@ -12,7 +12,7 @@ class TimeSimulator(object):
return
"Time : "
+
str
(
self
.
_systemTime
)
def
startTicking
(
self
,
callback
):
for
i
in
range
(
100
):
for
i
in
range
(
100
00
):
self
.
_systemTime
=
self
.
_systemTime
+
1
logger
.
info
(
self
)
callback
(
str
(
self
.
_systemTime
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment