Skip to content

Commit 948ea66

Browse files
clarify replacing transactions (#959)
* clarify replacing EIP1559 transactions Signed-off-by: Alexandra Tran <[email protected]> * remove blank line Signed-off-by: Alexandra Tran <[email protected]> * fix list style Signed-off-by: Alexandra Tran <[email protected]>
1 parent 0b514c0 commit 948ea66

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

docs/Concepts/Transactions/Transaction-Pool.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,24 @@ transactions.
3939

4040
## Replacing transactions with the same sender and nonce
4141

42-
For transactions received with the same sender and nonce as a pending transaction but a gas
43-
price higher than the existing gas price by the percentage specified by [`--tx-pool-price-bump`](../../Reference/CLI/CLI-Syntax.md#tx-pool-price-bump),
44-
Besu replaces the pending transaction with the new one with the higher gas price. The default value for
45-
[`--tx-pool-price-bump`](../../Reference/CLI/CLI-Syntax.md#tx-pool-price-bump) is 10%.
42+
You can replace a pending transaction with a transaction that has the same sender and nonce but a higher gas price.
43+
44+
If sending a [legacy transaction](Transaction-Types.md#frontier-transactions), the old transaction is replaced if the
45+
new transaction has a gas price higher than the existing gas price by the percentage specified by
46+
[`--tx-pool-price-bump`](../../Reference/CLI/CLI-Syntax.md#tx-pool-price-bump).
47+
48+
If sending an [`EIP1559` transaction](Transaction-Types.md#eip1559-transactions), the old transaction is replaced if
49+
one of the following is true:
50+
51+
* The new transaction's effective gas price is higher than the existing gas price by the percentage specified by
52+
[`--tx-pool-price-bump`](../../Reference/CLI/CLI-Syntax.md#tx-pool-price-bump) AND the new effective priority fee is
53+
greater than or equal to the existing priority fee.
54+
55+
* The new transaction's effective gas price is the equal to the existing gas price AND the new effective priority fee is
56+
higher than the existing priority fee by the percentage specified by
57+
[`--tx-pool-price-bump`](../../Reference/CLI/CLI-Syntax.md#tx-pool-price-bump).
58+
59+
The default value for [`--tx-pool-price-bump`](../../Reference/CLI/CLI-Syntax.md#tx-pool-price-bump) is 10%.
4660

4761
## Size of the transaction pool
4862

0 commit comments

Comments
 (0)