bnb-chain / op-geth

GNU Lesser General Public License v3.0
58 stars 47 forks source link

feat: TxDAG generation v0.1 version #187

Open welkin22 opened 1 month ago

welkin22 commented 1 month ago

Description

Mainly includes the following contents:

  1. Add the dependency of read-before-write to the DAG
  2. Remove redundant data when generating NonDependentRelFlag

Rationale

Version 0.1 of the TxDAG generation code is based on https://github.com/bnb-chain/op-geth/pull/149 with some minor modifications.

Example

Add two parameters to geth:

--parallel.txdag
--parallel.txdagsenderpriv=xxx

--parallel.txdag will enable the TxDAG generation feature, while parallel.txdagsenderpriv specifies the private key of the sender for the transaction into which the generated TxDAG data is inserted.