File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
framework/src/test/java/org/tron/core/services Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -35,25 +35,6 @@ public static void init() {
3535 Constant .TESTNET_CONF );
3636 }
3737
38- public static void testGrpc () {
39- WalletBlockingStub walletStub = WalletGrpc
40- .newBlockingStub (ManagedChannelBuilder .forTarget (fullnode )
41- .usePlaintext ()
42- .build ());
43- BytesMessage .Builder builder = BytesMessage .newBuilder ();
44- builder .setValue (ByteString .copyFromUtf8 ("TLTDZBcPoJ8tZ6TTEeEqEvwYFk2wgotSfD" ));
45- System .out
46- .println ("getBrokerageInfo: " + walletStub .getBrokerageInfo (builder .build ()).getNum ());
47- System .out .println ("getRewardInfo: " + walletStub .getRewardInfo (builder .build ()).getNum ());
48- UpdateBrokerageContract .Builder updateBrokerageContract = UpdateBrokerageContract .newBuilder ();
49- updateBrokerageContract .setOwnerAddress (
50- ByteString .copyFrom (decodeFromBase58Check ("TN3zfjYUmMFK3ZsHSsrdJoNRtGkQmZLBLz" )))
51- .setBrokerage (10 );
52- TransactionExtention transactionExtention = walletStub
53- .updateBrokerage (updateBrokerageContract .build ());
54- System .out .println ("UpdateBrokerage: " + transactionExtention );
55- }
56-
5738 private void testPay (int cycle ) {
5839 double rate = 0.2 ;
5940 if (cycle == 0 ) {
You can’t perform that action at this time.
0 commit comments