Skip to content

Commit 0213c27

Browse files
committed
added old changes
1 parent dc11577 commit 0213c27

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

src/main/java/META-INF/MANIFEST.MF

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Manifest-Version: 1.0
2+
simulation.Main-Class: benchmark.simulation.Main
3+

src/main/java/multichain/command/ChainCommand.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,8 @@ public String getInfo() throws MultichainException {
5959
return executeGetInfo().toString();
6060
}
6161

62+
public String getMemPoolInfo() throws MultichainException {
63+
return executeGetMemPoolInfo().toString();
64+
}
65+
6266
}

src/main/java/multichain/command/builders/QueryBuilderChain.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@ public class QueryBuilderChain extends QueryBuilderCommon {
1818
protected Object executeGetInfo() throws MultichainException {
1919
return execute(CommandEnum.GETINFO);
2020
}
21-
21+
protected Object executeGetMemPoolInfo() throws MultichainException {
22+
return execute(CommandEnum.GETMEMPOOLINFO);
23+
}
2224
}

src/main/java/multichain/command/builders/QueryBuilderCommon.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ protected enum CommandEnum {
7676
GETBLOCKCOUNT,
7777
GETBLOCKHASH,
7878
GETINFO,
79+
GETMEMPOOLINFO,
7980
GETMULTIBALANCES,
8081
GETNEWADDRESS,
8182
GETRAWCHANGEADDRESS,
@@ -191,6 +192,7 @@ protected Object execute(CommandEnum command, Object... parameters) throws Multi
191192
}
192193
}
193194

195+
194196
protected StringEntity prepareRpcEntity(Map<String, Object> entityValues) throws UnsupportedEncodingException {
195197
return new StringEntity(formatJson(entityValues));
196198
}

0 commit comments

Comments
 (0)