From e42a3bf9c665056c8dd815fa42911edacfd476af Mon Sep 17 00:00:00 2001 From: Markus Bopp Date: Wed, 29 Mar 2023 12:42:25 +0200 Subject: [PATCH] + fixed a parent tx feerate issue + fixed max 25 child transactions for unconfirmed parents (after the 25th, it waits for the parent to confirm) --- index.html | 10 +++++++++- signet-bootstrap.html | 10 +++++++++- signet.html | 10 +++++++++- 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index e32ad87..9dbd52f 100644 --- a/index.html +++ b/index.html @@ -860,11 +860,19 @@ console.dir(redeemtx, { depth: null }); let rawtx2 = BTON.Tx.encode(redeemtx); + let _txid2; // since we don't know any mempool space api rate limits, we will be careful with spamming await isPushing(); pushing = true; - let _txid2 = await pushBTCpmt( rawtx2 ); + try{ + + _txid2 = await pushBTCpmt( rawtx2 ); + } + catch(e) + { + _txid2 = e.toString(); + } await sleep(1000); pushing = false; diff --git a/signet-bootstrap.html b/signet-bootstrap.html index 8f40c31..c846757 100644 --- a/signet-bootstrap.html +++ b/signet-bootstrap.html @@ -860,11 +860,19 @@ console.dir(redeemtx, { depth: null }); let rawtx2 = BTON.Tx.encode(redeemtx); + let _txid2; // since we don't know any mempool space api rate limits, we will be careful with spamming await isPushing(); pushing = true; - let _txid2 = await pushBTCpmt( rawtx2 ); + try{ + + _txid2 = await pushBTCpmt( rawtx2 ); + } + catch(e) + { + _txid2 = e.toString(); + } await sleep(1000); pushing = false; diff --git a/signet.html b/signet.html index b6d4b2e..4327776 100644 --- a/signet.html +++ b/signet.html @@ -887,11 +887,19 @@ console.dir(redeemtx, {depth: null}); let rawtx2 = BTON.Tx.encode(redeemtx); + let _txid2; // since we don't know any mempool space api rate limits, we will be careful with spamming await isPushing(); pushing = true; - let _txid2 = await pushBTCpmt(rawtx2); + try{ + + _txid2 = await pushBTCpmt( rawtx2 ); + } + catch(e) + { + _txid2 = e.toString(); + } await sleep(1000); pushing = false;