File tree Expand file tree Collapse file tree 4 files changed +23
-3
lines changed
test/java/org/tron/consensus/server Expand file tree Collapse file tree 4 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public void run(Peer peer) {
46
46
new GetBalanceCommand ().execute (peer , cmdParameters );
47
47
break ;
48
48
case "send" :
49
- new ConsensusCommand ().putClient ( cmdParameters );
49
+ new ConsensusCommand ().execute ( peer , cmdParameters );
50
50
//new SendCommand().execute(peer, cmdParameters);
51
51
break ;
52
52
case "printblockchain" :
Original file line number Diff line number Diff line change @@ -72,7 +72,8 @@ public static void putMessage(String[] args) {
72
72
String key = args [0 ];
73
73
String value = args [1 ];
74
74
client .submit (new PutCommand (key , value ));
75
- System .out .println ("Put message success" );
75
+ //client.submit(new PutCommand("time", System.currentTimeMillis()));
76
+ System .out .println ("Send message success" );
76
77
}
77
78
78
79
public static void getMessage1 (String key ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"transaction" : {
3
- "c24d5c11412ea75c592fa8e0340dcac0c8238580 " : 10
3
+ "d6b92f21dd83405d1444ae2eae341a003f39e0e8 " : 10
4
4
},
5
5
6
6
"timestamp" : " 0" ,
Original file line number Diff line number Diff line change
1
+ /*
2
+ * java-tron is free software: you can redistribute it and/or modify
3
+ * it under the terms of the GNU General Public License as published by
4
+ * the Free Software Foundation, either version 3 of the License, or
5
+ * (at your option) any later version.
6
+ *
7
+ * java-tron is distributed in the hope that it will be useful,
8
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
9
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
+ * GNU General Public License for more details.
11
+ *
12
+ * You should have received a copy of the GNU General Public License
13
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
14
+ */
15
+ package org .tron .consensus .server ;
16
+
17
+ public class serverIPTest {
18
+
19
+ }
You can’t perform that action at this time.
0 commit comments