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
b5a476fc
Commit
b5a476fc
authored
May 03, 2019
by
UNHALE NILESH ARUN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stable algorand - deleted link - memory leak by link messages queues emptying
parent
2b3e6ec8
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
78 additions
and
54 deletions
+78
-54
Link.py
Link.py
+2
-1
Node.py
Node.py
+1
-1
OverlayNode.py
OverlayNode.py
+72
-49
Utility.py
Utility.py
+2
-2
start.sh
start.sh
+1
-1
No files found.
Link.py
View file @
b5a476fc
...
...
@@ -78,8 +78,9 @@ class Link(SystemEntity):
'''
#todo process messages in queue
# generate tasks for todolist based on messges
for
message
in
self
.
messageQueue
:
for
message
in
list
(
self
.
messageQueue
)
:
self
.
scheduleMessageDelievery
(
message
[
0
],
message
[
1
])
self
.
dequeMessage
()
# TODO : perform task from todolist which are relevant for current tick
...
...
Node.py
View file @
b5a476fc
...
...
@@ -115,7 +115,7 @@ class Node(SystemEntity):
yield "resume",timeafter_which_to_resume
'''
if
ResumeOut
and
ResumeOut
[
0
]
==
"resume"
:
self
.
logger
.
info
(
"resume has been called"
)
#
self.logger.info("resume has been called")
self
.
ResumeTasks
[
str
(
int
(
time
)
+
int
(
ResumeOut
[
1
]))]
.
append
((
"nextOn"
,
self
.
startNodeLifeCycleGenerator
,))
except
KeyError
as
ke
:
# not task pending at this time
...
...
OverlayNode.py
View file @
b5a476fc
This diff is collapsed.
Click to expand it.
Utility.py
View file @
b5a476fc
...
...
@@ -140,8 +140,8 @@ def verifySort(pk,hash,proof,seed,rolecount,role,w,badaW):
break
j
=
j
+
1
if
j
:
print
(
"Verification success : J :"
,
j
,
role
)
#
if j :
#
print("Verification success : J :",j,role)
return
j
...
...
start.sh
View file @
b5a476fc
#!/usr/bin/env bash
python3 filegen.py 30
#
python3 filegen.py 30
rm
-rf
ASim.log
...
...
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