Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
Update godoc, remove unused getter for access list, add CLI flag to b…
Browse files Browse the repository at this point in the history
…uilder flag list, update log level for multi-tx-snap error
  • Loading branch information
Wazzymandias committed Jul 26, 2023
1 parent 4a9e785 commit 5ddc19b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
1 change: 1 addition & 0 deletions cmd/geth/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ var (

builderApiFlags = []cli.Flag{
utils.BuilderEnabled,
utils.BuilderEnableMultiTxSnapshot,
utils.BuilderEnableValidatorChecks,
utils.BuilderBlockValidationBlacklistSourceFilePath,
utils.BuilderEnableLocalRelay,
Expand Down
4 changes: 0 additions & 4 deletions core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -1201,10 +1201,6 @@ func (s *StateDB) convertAccountSet(set map[common.Address]struct{}) map[common.
return ret
}

func (s *StateDB) AccessList() *accessList {
return s.accessList
}

// MultiTxSnapshot creates new checkpoint for multi txs reverts
func (s *StateDB) MultiTxSnapshot() error {
if s.multiTxSnapshot != nil {
Expand Down
4 changes: 2 additions & 2 deletions miner/algo_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ type (
// is 10 (i.e. 10%), then the minimum effective gas price included in the same bucket as the top transaction
// is (1000 * 10%) = 100 wei.
PriceCutoffPercent int
// EnableMultiTxSnap is true if we want to use multi-transaction snapshot
// for committing transactions (note: experimental)
// EnableMultiTxSnap is true if we want to use multi-transaction snapshot for committing transactions,
// which reduce state copies when reverting failed bundles (note: experimental)
EnableMultiTxSnap bool
}

Expand Down
2 changes: 1 addition & 1 deletion miner/algo_greedy_buckets.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func newGreedyBucketsBuilder(
orders,
)
if err != nil {
log.Debug("Error(s) building multi-tx snapshot block", "err", err)
log.Trace("Error(s) building multi-tx snapshot block", "err", err)
}
return builder.inputEnvironment, usedBundles, usedSbundles
}
Expand Down
3 changes: 2 additions & 1 deletion miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -1509,7 +1509,8 @@ func (w *worker) generateWork(params *generateParams) (*types.Block, *big.Int, e
totalSbundles++
}

log.Info("Block finalized and assembled", "height", block.Number().String(), "blockProfit", ethIntToFloat(profit),
log.Info("Block finalized and assembled",
"height", block.Number().String(), "blockProfit", ethIntToFloat(profit),
"txs", len(env.txs), "bundles", len(blockBundles), "okSbundles", okSbundles, "totalSbundles", totalSbundles,
"gasUsed", block.GasUsed(), "time", time.Since(start))
if metrics.EnabledBuilder {
Expand Down

0 comments on commit 5ddc19b

Please sign in to comment.