mirror of
https://github.com/alexgo-io/stacks-transaction-sponsor.git
synced 2026-04-30 20:11:38 +08:00
feat: increment gas by iota when cap reached
Signed-off-by: bestmike007 <i@bestmike007.com>
This commit is contained in:
@@ -79,8 +79,8 @@ export async function rbfIfNecessary(
|
||||
console.error(`Fail to load gas config for tx 0x${user_tx_id}`);
|
||||
}
|
||||
if (gas <= tx.fee) {
|
||||
console.warn(`Skip RBF tx 0x${user_tx_id} because the gas reached cap`);
|
||||
continue;
|
||||
console.warn(`RBF tx 0x${user_tx_id} gas reached cap`);
|
||||
gas = tx.fee + 10n;
|
||||
}
|
||||
const sponsored_tx = await sponsorTransaction({
|
||||
transaction: user_tx,
|
||||
|
||||
Reference in New Issue
Block a user