Skip to content
Snippets Groups Projects
Commit 70a835a5 authored by weiw8's avatar weiw8
Browse files

some typo fixed

parent a2f93828
No related branches found
No related tags found
No related merge requests found
...@@ -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 ConcurrentLinkedQueue<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()+","+repmerge.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 ConcurrentLinkedQueue<>();//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<>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment