mirror of
https://gitee.com/BDWare/cp.git
synced 2025-06-12 10:44:02 +00:00
keep sync
This commit is contained in:
parent
4087202c24
commit
a17925a5f1
@ -1,15 +1,11 @@
|
|||||||
package org.bdware.sc.boundry.utils.test;
|
package org.bdware.sc.boundry.utils.test;
|
||||||
|
|
||||||
import org.bdware.bdledger.api.grpc.Client;
|
import org.bdware.bdledger.api.grpc.Client;
|
||||||
import org.bdware.bdledger.api.grpc.pb.CommonProto;
|
|
||||||
import org.bdware.bdledger.api.grpc.pb.LedgerProto;
|
|
||||||
import org.bdware.sc.conn.ByteUtil;
|
import org.bdware.sc.conn.ByteUtil;
|
||||||
import org.bdware.sc.util.HashUtil;
|
|
||||||
import org.bouncycastle.pqc.math.linearalgebra.ByteUtils;
|
import org.bouncycastle.pqc.math.linearalgebra.ByteUtils;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.net.URLEncoder;
|
import java.net.URLEncoder;
|
||||||
import java.nio.charset.StandardCharsets;
|
|
||||||
|
|
||||||
public class LedgerUtilTest {
|
public class LedgerUtilTest {
|
||||||
public static void main(String[] arg) {
|
public static void main(String[] arg) {
|
||||||
@ -20,10 +16,10 @@ public class LedgerUtilTest {
|
|||||||
System.out.println(c.clientVersionSync().getVersion());
|
System.out.println(c.clientVersionSync().getVersion());
|
||||||
System.out.println(c.getLedgersSync().toString());
|
System.out.println(c.getLedgersSync().toString());
|
||||||
String from = "0xb60e8dd61c5d32be8058bb8eb970870f07233155";
|
String from = "0xb60e8dd61c5d32be8058bb8eb970870f07233155";
|
||||||
// LedgerProto.SendTransactionResponse ret =
|
// LedgerProto.SendTransactionResponse ret =
|
||||||
// c.sendTransactionSync("bdcontract", CommonProto.TransactionType.MESSAGE, from,
|
// c.sendTransactionSync("bdcontract", CommonProto.TransactionType.MESSAGE, from,
|
||||||
// System.currentTimeMillis(), from, "hello".getBytes(StandardCharsets.UTF_8));
|
// System.currentTimeMillis(), from, "hello".getBytes(StandardCharsets.UTF_8));
|
||||||
// System.out.println("=====" + HashUtil.byteArray2Str(ret.getHash().toByteArray()));
|
// System.out.println("=====" + HashUtil.byteArray2Str(ret.getHash().toByteArray()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user