Skip to content

Commit 061fade

Browse files
authored
Revert "all: move main transaction pool into a subpool (ethereum#27463)"
This reverts commit 3c12101.
1 parent 684d1ed commit 061fade

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2089
-2915
lines changed

cmd/utils/flags.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import (
4141
"github.com/ethereum/go-ethereum/common/hexutil"
4242
"github.com/ethereum/go-ethereum/core"
4343
"github.com/ethereum/go-ethereum/core/rawdb"
44-
"github.com/ethereum/go-ethereum/core/txpool/legacypool"
44+
"github.com/ethereum/go-ethereum/core/txpool"
4545
"github.com/ethereum/go-ethereum/core/types"
4646
"github.com/ethereum/go-ethereum/core/vm"
4747
"github.com/ethereum/go-ethereum/crypto"
@@ -334,18 +334,18 @@ var (
334334
TxPoolJournalFlag = &cli.StringFlag{
335335
Name: "txpool.journal",
336336
Usage: "Disk journal for local transaction to survive node restarts",
337-
Value: ethconfig.Defaults.TxPool.Journal,
337+
Value: txpool.DefaultConfig.Journal,
338338
Category: flags.TxPoolCategory,
339339
}
340340
TxPoolRejournalFlag = &cli.DurationFlag{
341341
Name: "txpool.rejournal",
342342
Usage: "Time interval to regenerate the local transaction journal",
343-
Value: ethconfig.Defaults.TxPool.Rejournal,
343+
Value: txpool.DefaultConfig.Rejournal,
344344
Category: flags.TxPoolCategory,
345345
}
346346
TxPoolPriceLimitFlag = &cli.Uint64Flag{
347347
Name: "txpool.pricelimit",
348-
Usage: "Minimum gas price tip to enforce for acceptance into the pool",
348+
Usage: "Minimum gas price limit to enforce for acceptance into the pool",
349349
Value: ethconfig.Defaults.TxPool.PriceLimit,
350350
Category: flags.TxPoolCategory,
351351
}
@@ -385,6 +385,7 @@ var (
385385
Value: ethconfig.Defaults.TxPool.Lifetime,
386386
Category: flags.TxPoolCategory,
387387
}
388+
388389
// Performance tuning settings
389390
CacheFlag = &cli.IntFlag{
390391
Name: "cache",
@@ -1499,7 +1500,7 @@ func setGPO(ctx *cli.Context, cfg *gasprice.Config, light bool) {
14991500
}
15001501
}
15011502

1502-
func setTxPool(ctx *cli.Context, cfg *legacypool.Config) {
1503+
func setTxPool(ctx *cli.Context, cfg *txpool.Config) {
15031504
if ctx.IsSet(TxPoolLocalsFlag.Name) {
15041505
locals := strings.Split(ctx.String(TxPoolLocalsFlag.Name), ",")
15051506
for _, account := range locals {

core/txpool/errors.go

Lines changed: 0 additions & 53 deletions
This file was deleted.

core/txpool/legacypool/journal.go renamed to core/txpool/journal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
1616

17-
package legacypool
17+
package txpool
1818

1919
import (
2020
"errors"

0 commit comments

Comments
 (0)