1515import org .tron .common .utils .ByteArray ;
1616import org .tron .common .utils .Utils ;
1717import org .tron .core .Wallet ;
18- import org .tron .protos .Protocol .DeferredTransaction ;
18+ // import org.tron.protos.Protocol.DeferredTransaction;
1919import org .tron .protos .Protocol .Transaction ;
2020import org .tron .protos .Protocol .TransactionInfo ;
2121import stest .tron .wallet .common .client .Configuration ;
@@ -44,7 +44,7 @@ public class DelayTransaction010 {
4444 .getLong ("defaultParameter.cancleDelayTransactionFee" );
4545
4646 public static final long ONE_DELAY_SECONDS = 60 * 60 * 24L ;
47- Optional <DeferredTransaction > deferredTransactionById = null ;
47+ // Optional<DeferredTransaction> deferredTransactionById = null;
4848
4949 ECKey ecKey = new ECKey (Utils .getRandom ());
5050 byte [] delayFeeAccountAddress = ecKey .getAddress ();
@@ -144,14 +144,14 @@ public void test2DelaydTransactionFinallyFailed() {
144144 e .printStackTrace ();
145145 }
146146 //deferredTransactionById = PublicMethed.getDeferredTransactionById(preTxid,blockingStubFull);
147- DeferredTransaction transaction = deferredTransactionById .get ();
148- String finalTxid = ByteArray .toHexString (Sha256Hash .hash (transaction .getTransaction ().getRawData ().toByteArray ()));
147+ // DeferredTransaction transaction = deferredTransactionById.get();
148+ // String finalTxid = ByteArray.toHexString(Sha256Hash.hash(transaction.getTransaction().getRawData().toByteArray()));
149149
150150 Assert .assertTrue (PublicMethed .sendcoin (fromAddress ,PublicMethed .queryAccount (delayFeeAccountAddress ,blockingStubFull ).getBalance (),delayFeeAccountAddress ,delayFeeAccountKey ,blockingStubFull ));
151151 PublicMethed .waitProduceNextBlock (blockingStubFull );
152152 PublicMethed .waitProduceNextBlock (blockingStubFull );
153153
154- Assert .assertTrue (PublicMethed .getTransactionById (finalTxid ,blockingStubFull ).get ().getRawData ().getContractCount () == 0 );
154+ // Assert.assertTrue(PublicMethed.getTransactionById(finalTxid,blockingStubFull).get().getRawData().getContractCount() == 0);
155155
156156 Long afterBalance = PublicMethed .queryAccount (delayFeeAccountAddress ,blockingStubFull ).getBalance ();
157157 Long afterSendCoinAccount2Balance = PublicMethed .queryAccount (delayAccount2Address ,blockingStubFull ).getBalance ();
@@ -178,8 +178,8 @@ public void test3DelaydTransactionFinallySuccessfully() {
178178 e .printStackTrace ();
179179 }
180180 //deferredTransactionById = PublicMethed.getDeferredTransactionById(preTxid,blockingStubFull);
181- DeferredTransaction transaction = deferredTransactionById .get ();
182- String finalTxid = ByteArray .toHexString (Sha256Hash .hash (transaction .getTransaction ().getRawData ().toByteArray ()));
181+ // DeferredTransaction transaction = deferredTransactionById.get();
182+ // String finalTxid = ByteArray.toHexString(Sha256Hash.hash(transaction.getTransaction().getRawData().toByteArray()));
183183 Assert .assertTrue (PublicMethed .sendcoin (fromAddress ,PublicMethed .queryAccount (delayFeeAccountAddress ,blockingStubFull ).getBalance (),delayFeeAccountAddress ,delayFeeAccountKey ,blockingStubFull ));
184184 try {
185185 Thread .sleep (2000 );
@@ -191,7 +191,7 @@ public void test3DelaydTransactionFinallySuccessfully() {
191191 PublicMethed .waitProduceNextBlock (blockingStubFull );
192192 PublicMethed .waitProduceNextBlock (blockingStubFull );
193193
194- Assert .assertTrue (PublicMethed .getTransactionById (finalTxid ,blockingStubFull ).get ().getRawData ().getContractCount () == 1 );
194+ // Assert.assertTrue(PublicMethed.getTransactionById(finalTxid,blockingStubFull).get().getRawData().getContractCount() == 1);
195195
196196 Long afterBalance = PublicMethed .queryAccount (delayFeeAccountAddress ,blockingStubFull ).getBalance ();
197197 Long afterSendCoinAccount2Balance = PublicMethed .queryAccount (delayAccount2Address ,blockingStubFull ).getBalance ();
0 commit comments