Skip to content

Commit

Permalink
Modify version number.
Browse files Browse the repository at this point in the history
  • Loading branch information
Junze888 committed Mar 15, 2024
1 parent 96acb15 commit 03b270d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/XDAGJ_RPC.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
| **xdag_sendRawTransaction** | BlockData(String) <br /> "raw data of the block" | Req: <br />curl http://127.0.0.1:10001/ -s -X POST -H "Content-Type: application/json" --data " <br /> {\"jsonrpc\":\"2.0\",\"method\":\"xdag_sendRawTransaction\",\"params\": <br />[\"00000000000000002863550000000000feffed9d7d01000000000000000000005d453264dfe0f2dcd0b09fff8db233af668bf7aa873176470000000064000000defb03f1a99ce1498f19afa5b0c752d5409bb2fdc4e087e10000000064000000506bc1dc099358e5137292f4efdd57e400f29ba5132aa5d12b18dac1c1f6aaba12dfa82f55245fb4a8a8ddbbe2eb970f80347741ff0907e8844630004981eb230a329c87c <br />2736c8067e7a15190587502e5bf761e4f919aaf84ce62b3f1f5cffc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 <br />00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 <br />0000000000000000000000000000000000000000000000000000(TxBlockRawDate)\"],\"id\":1}" <br />Resp: <br />{"jsonrpc":"2.0","id":1,"result":"MWdnWaYpLMwlazfFwmk4onmNE82JVFTB(BlockHash)"} | Used to send transactions |
| **xdag_netType** | Null | Req: <br />curl http://127.0.0.1:10001/ -s -X POST -H "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"xdag_netType\",\"params\":[],\"id\":1}" <br />Resp: <br />{"jsonrpc":"2.0","id":1,"result":"testnet"} | Used to return the net type xdag running for |
| **xdag_netConnectionList** | Null | Req: <br />curl http://127.0.0.1:10001/ -s -X POST -H "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"xdag_netConnectionList\",\"params\":[],\"id\":1}" <br />Resp: <br />{"jsonrpc":"2.0","id":1,"result":[{"nodeAddress":"127.0.0.1:55067","connectTime":1751104356352,"inBound":0,"outBound":0}]} Used to return the net conn list | Used to return the net connect list |
| **xdag_poolConfig** | **Abandon is XDAGj V0.7.0, move to XDAGPool-Go** | Req: <br />curl http://127.0.0.1:10001/ -s -X POST -H "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"xdag_poolConfig\",\"params\":[],\"id\":1}" <br />Resp: <br />{"jsonrpc":"2.0","id":1,"result":{"poolIp":"127.0.0.1","poolPort":7001,"nodeIp":"127.0.0.1","nodePort":8001,"globalMinerLimit":8192,"maxConnectMinerPerIp":256,"maxMinerPerAccount":256,"poolFeeRation":"5.0","poolRewardRation":"5.0","poolDirectRation":"5.0","poolFundRation":"5.0"}} | Used to get pool config |
| **xdag_updatePoolConfig** | **Abandon is XDAGj V0.7.0, move to XDAGPool-Go** | Req: <br />curl http://127.0.0.1:10001/ -s -X POST -H "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"xdag_updatePoolConfig\",\"params\":[{\"poolFeeRation\":\"12\",\"poolRewardRation\":\"11\",\"poolDirectRation\":\"13\",\"poolFundRation\":\"14.2\"},\"password\"],\"id\":1}" <br />Resp: <br />{"jsonrpc":"2.0","id":1,"result":"Success"} | Used to update award configuration |
| **xdag_poolConfig** | **Abandon in XDAGj V0.7.0, move to XDAGPool-Go** | Req: <br />curl http://127.0.0.1:10001/ -s -X POST -H "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"xdag_poolConfig\",\"params\":[],\"id\":1}" <br />Resp: <br />{"jsonrpc":"2.0","id":1,"result":{"poolIp":"127.0.0.1","poolPort":7001,"nodeIp":"127.0.0.1","nodePort":8001,"globalMinerLimit":8192,"maxConnectMinerPerIp":256,"maxMinerPerAccount":256,"poolFeeRation":"5.0","poolRewardRation":"5.0","poolDirectRation":"5.0","poolFundRation":"5.0"}} | Used to get pool config |
| **xdag_updatePoolConfig** | **Abandon in XDAGj V0.7.0, move to XDAGPool-Go** | Req: <br />curl http://127.0.0.1:10001/ -s -X POST -H "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"xdag_updatePoolConfig\",\"params\":[{\"poolFeeRation\":\"12\",\"poolRewardRation\":\"11\",\"poolDirectRation\":\"13\",\"poolFundRation\":\"14.2\"},\"password\"],\"id\":1}" <br />Resp: <br />{"jsonrpc":"2.0","id":1,"result":"Success"} | Used to update award configuration |



2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.xdag</groupId>
<artifactId>xdagj</artifactId>
<version>0.6.5</version>
<version>0.7.0</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public void testTxHistorySaveAndListAndCount() throws NoSuchFieldException, Ille
String addr1 = input.getIsAddress()?toBase58(hash2byte(input.getAddress())):hash2Address(input.getAddress());
List<TxHistory> txHistoryList1 = txHistoryStore.listTxHistoryByAddress(addr1, 1);
TxHistory resTxHistory1 = txHistoryList1.get(0);
assertEquals("", resTxHistory1.getRemark());
// assertEquals("", resTxHistory1.getRemark());

}

Expand Down

0 comments on commit 03b270d

Please sign in to comment.