Skip to content

Commit 23dbd37

Browse files
committed
fix cli
1 parent c99dc6d commit 23dbd37

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

src/main/java/org/tron/command/Cli.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public void run(Peer peer) {
4646
new GetBalanceCommand().execute(peer, cmdParameters);
4747
break;
4848
case "send":
49-
new ConsensusCommand().putClient(cmdParameters);
49+
new ConsensusCommand().execute(peer,cmdParameters);
5050
//new SendCommand().execute(peer, cmdParameters);
5151
break;
5252
case "printblockchain":

src/main/java/org/tron/consensus/client/Client.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ public static void putMessage(String[] args) {
7272
String key = args[0];
7373
String value = args[1];
7474
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");
7677
}
7778

7879
public static void getMessage1(String key) {

src/main/resources/genesis.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"transaction": {
3-
"c24d5c11412ea75c592fa8e0340dcac0c8238580": 10
3+
"d6b92f21dd83405d1444ae2eae341a003f39e0e8": 10
44
},
55

66
"timestamp": "0",
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
}

0 commit comments

Comments
 (0)