Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mp2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
aich2
mp2
Commits
70a835a5
Commit
70a835a5
authored
5 years ago
by
weiw8
Browse files
Options
Downloads
Patches
Plain Diff
some typo fixed
parent
a2f93828
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ConnectionPort.java
+3
-3
3 additions, 3 deletions
ConnectionPort.java
with
3 additions
and
3 deletions
ConnectionPort.java
+
3
−
3
View file @
70a835a5
...
@@ -293,7 +293,7 @@ public class ConnectionPort {
...
@@ -293,7 +293,7 @@ public class ConnectionPort {
return
account
;
return
account
;
}
}
//might be removec in the future
//might be removec in the future
public
ConcurrentLinkedQueu
<
Block
>
getBlockChain
()
{
public
ConcurrentLinkedQueu
e
<
Block
>
getBlockChain
()
{
return
blockChain
;
return
blockChain
;
}
}
...
@@ -692,7 +692,7 @@ public class ConnectionPort {
...
@@ -692,7 +692,7 @@ public class ConnectionPort {
if
(
mergeinfo
!=
null
)
{
if
(
mergeinfo
!=
null
)
{
String
repmerge
=
"OK\n"
+
mergeinfo
;
String
repmerge
=
"OK\n"
+
mergeinfo
;
ps
.
println
(
repmerge
);
ps
.
println
(
repmerge
);
bandwidthLog
.
println
(
getMicroTime
()+
","
+
rep
.
length
());
bandwidthLog
.
println
(
getMicroTime
()+
","
+
rep
merge
.
length
());
}
else
{
}
else
{
ps
.
println
(
"FAIL"
);
ps
.
println
(
"FAIL"
);
bandwidthLog
.
println
(
getMicroTime
()+
",4"
);
bandwidthLog
.
println
(
getMicroTime
()+
",4"
);
...
@@ -863,7 +863,7 @@ public class ConnectionPort {
...
@@ -863,7 +863,7 @@ public class ConnectionPort {
maxBufferSize
=
10000
;
maxBufferSize
=
10000
;
blockBuffer
=
new
ConcurrentHashMap
<>();
//for blockchain, respond block request
blockBuffer
=
new
ConcurrentHashMap
<>();
//for blockchain, respond block request
mergeInfoBuffer
=
new
ConcurrentHashMap
<>();
//for blockchain, respond mergeInfo request
mergeInfoBuffer
=
new
ConcurrentHashMap
<>();
//for blockchain, respond mergeInfo request
blockChain
=
new
ConcurrentLinkeQueue
<>();
//for blockchain.only to read, no write. might be useless because we introduce blockBuffer
blockChain
=
new
ConcurrentLinke
d
Queue
<>();
//for blockchain.only to read, no write. might be useless because we introduce blockBuffer
account
=
new
ConcurrentHashMap
<>();
//for blockchain. only to read, no write.might be useless because we introduce mergeInfoBuffer
account
=
new
ConcurrentHashMap
<>();
//for blockchain. only to read, no write.might be useless because we introduce mergeInfoBuffer
solutions
=
new
LinkedBlockingDeque
<>();
solutions
=
new
LinkedBlockingDeque
<>();
verification
=
new
LinkedBlockingDeque
<>();
verification
=
new
LinkedBlockingDeque
<>();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment