Skip to content

Commit

Permalink
fix: moved pending transaction locations
Browse files Browse the repository at this point in the history
Signed-off-by: hxlaf <xuhan@lafayette.edu>
  • Loading branch information
hanxu12 committed Jul 30, 2021
1 parent 9a20a55 commit 97b25a0
Showing 1 changed file with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -704,21 +704,7 @@ test(testCase, async (t: Test) => {
t.equal(res.data.transactionReceipt.status, "COMMITTED");
}

// use bluebird to cancel Promise
// {
// const req1 = {
// commandName: "producePendingTx",
// params: [],
// };
// const promise = apiClient.runTransactionV1(req1 as RunTransactionRequest);
// const p2 = new Promise((onCancel) => {
// promise;
// onCancel(() => console.log("p2 canceled"));
// });
// p2.cancel();
// }

//Use Promise.race to cancel the promise
// // Use Promise.race to cancel the promise
// {
// const req1 = {
// commandName: "producePendingTx",
Expand Down Expand Up @@ -753,6 +739,20 @@ test(testCase, async (t: Test) => {
// );
// }

// use bluebird to cancel Promise
// {
// const req1 = {
// commandName: "producePendingTx",
// params: [],
// };
// const promise = apiClient.runTransactionV1(req1 as RunTransactionRequest);
// const p2 = new Promise((onCancel) => {
// promise;
// onCancel(() => console.log("p2 canceled"));
// });
// p2.cancel();
// }

// // {
// // const req = {
// // commandName: "removePeer",
Expand Down

0 comments on commit 97b25a0

Please sign in to comment.