diff --git a/docs/XDAGJ_RPC.md b/docs/XDAGJ_RPC.md index 20873a9c..a8438bcf 100644 --- a/docs/XDAGJ_RPC.md +++ b/docs/XDAGJ_RPC.md @@ -19,8 +19,8 @@ | **xdag_sendRawTransaction** | BlockData(String)
"raw data of the block" | Req:
curl http://127.0.0.1:10001/ -s -X POST -H "Content-Type: application/json" --data "
{\"jsonrpc\":\"2.0\",\"method\":\"xdag_sendRawTransaction\",\"params\":
[\"00000000000000002863550000000000feffed9d7d01000000000000000000005d453264dfe0f2dcd0b09fff8db233af668bf7aa873176470000000064000000defb03f1a99ce1498f19afa5b0c752d5409bb2fdc4e087e10000000064000000506bc1dc099358e5137292f4efdd57e400f29ba5132aa5d12b18dac1c1f6aaba12dfa82f55245fb4a8a8ddbbe2eb970f80347741ff0907e8844630004981eb230a329c87c
2736c8067e7a15190587502e5bf761e4f919aaf84ce62b3f1f5cffc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000(TxBlockRawDate)\"],\"id\":1}"
Resp:
{"jsonrpc":"2.0","id":1,"result":"MWdnWaYpLMwlazfFwmk4onmNE82JVFTB(BlockHash)"} | Used to send transactions | | **xdag_netType** | Null | Req:
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}"
Resp:
{"jsonrpc":"2.0","id":1,"result":"testnet"} | Used to return the net type xdag running for | | **xdag_netConnectionList** | Null | Req:
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}"
Resp:
{"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:
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}"
Resp:
{"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:
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}"
Resp:
{"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:
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}"
Resp:
{"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:
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}"
Resp:
{"jsonrpc":"2.0","id":1,"result":"Success"} | Used to update award configuration | diff --git a/pom.xml b/pom.xml index c7290bcb..47091d57 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ io.xdag xdagj - 0.6.5 + 0.7.0 UTF-8 diff --git a/src/test/java/io/xdag/db/mysql/TransactionHistoryStoreImplTest.java b/src/test/java/io/xdag/db/mysql/TransactionHistoryStoreImplTest.java index 57180220..e4355d89 100644 --- a/src/test/java/io/xdag/db/mysql/TransactionHistoryStoreImplTest.java +++ b/src/test/java/io/xdag/db/mysql/TransactionHistoryStoreImplTest.java @@ -131,7 +131,7 @@ public void testTxHistorySaveAndListAndCount() throws NoSuchFieldException, Ille String addr1 = input.getIsAddress()?toBase58(hash2byte(input.getAddress())):hash2Address(input.getAddress()); List txHistoryList1 = txHistoryStore.listTxHistoryByAddress(addr1, 1); TxHistory resTxHistory1 = txHistoryList1.get(0); - assertEquals("", resTxHistory1.getRemark()); +// assertEquals("", resTxHistory1.getRemark()); }