Skip to content

Commit d3fe0dd

Browse files
author
Clemens Brunner
committed
add example script
1 parent a8ed60f commit d3fe0dd

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

build/script/example.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Command to create a new asset
2+
# java -jar UtilityTxSender.jar -sxml SendingNode ReceivingNode NameOfAsset MaxAmount Node InitialAmount [Node InitialAmount]
3+
java -jar UtilityTxSender.jar -sxml node1.xml node1.xml myNewAssetName 1000 node1.xml 5000 node2.xml 2500 node3.xml 2500
4+
5+
# Command to send a transaction
6+
# java -jar TxSender.jar -sxml SendingNode ReceivingNode NameOfAsset Value
7+
java -jar TxSender.jar -sxml node1.xml node2.xml myNewAssetName 100

src/at/entrust/resselchain/main/UtilityTxSender.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public class UtilityTxSender {
3636

3737
private static void showUsage() {
3838
System.out.println("Ressel Chain Utility Transaction Sender (UtilityTxSender)");
39-
System.out.println("Creates a new asset plant and defines initial shares for participants.");
40-
System.out.println("Usage: UtilityTxSender -h | -t | (-sraw <Node Address> <Node Port> <Sender Name> <Sender Private Key>) | (-sxml <Sender Node XML Config> <Receiver Node XML Config>) <asset Name> <kW Peak> {<Participant XML Config> <Participant Share>}");
39+
System.out.println("Creates a new asset and defines initial shares for participants.");
40+
System.out.println("Usage: UtilityTxSender -h | -t | (-sraw <Node Address> <Node Port> <Sender Name> <Sender Private Key>) | (-sxml <Sender Node XML Config> <Receiver Node XML Config>) <asset Name> <Asset Peak> {<Participant XML Config> <Participant Share>}");
4141
System.out.println("-h : display help");
4242
System.out.println("-t : print current timestamp");
4343
System.out.println("-sraw : send raw transaction, all following arguments are mandatory");
@@ -122,7 +122,7 @@ else if (args.length >= 7 && args[0].equals("-sraw")) {
122122

123123

124124
String assetName = args[3];
125-
double kWPeak = Double.valueOf(args[4]);
125+
double assetMax = Double.valueOf(args[4]);
126126

127127
ArrayList<Participant> participants = new ArrayList<>();
128128
HashMap<Participant, Integer> participantAmounts = new HashMap<>();

0 commit comments

Comments
 (0)