-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: TxDAG generation v0.1 version #187
base: main
Are you sure you want to change the base?
Conversation
e9d3471
to
42d915f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, still need review from others
txdag: opt rw record flag; txdag: fix some broken UTs; txdag: opt some logic;
evm: fix failed tx rwSet collecting;
mvstates: opt async dep generation; mvstates: opt resolve dep logic; mvstates: fix async dep gen deadlock issue; miner: support record sysytem tx rwset; miner: opt txdag enable checking; txdag: fix system tx finalise issue; mvstate: using pending writes to accelerate txdag generation; txdag: test snappy compress ratio; txdag: add more bench tests; txdag: reduce mem alloc and async resolve tx dependency; txdag: add excluded flag; mvstates: generate txdag with excluded flag; txdag: support multi flags, and supported in pevm; txdag: opt TxDAG rwset collecting & generating; txdag: opt txdag encoding, reduce rlp size
* txDAG transfer * encode/decode txDAG data with ABI * set txDAG receiver to a special address --------- Co-authored-by: andyzhang2023 <andyzhang2023@gmail.com> merge conflict fix conflict
…tions are executed
…tions are executed
mvstates: support txdepMap to produce txdag; mvststes: using struct in rwset;
txdag: refactor async logic, reduce concurrent logic; txdag: using slice cache rather than sending chan directly; txdag: opt gc issue; txdag: support init cache pool;
worker: add UT to test txdag gasless block generation;
42d915f
to
f206e6d
Compare
return nil, fmt.Errorf("current signer is nil") | ||
} | ||
|
||
//privateKey, err := crypto.HexToECDSA(privateKeyHex) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//privateKey, err := crypto.HexToECDSA(privateKeyHex) |
@@ -73,20 +73,72 @@ func TestExecutionSpecBlocktests(t *testing.T) { | |||
}) | |||
} | |||
|
|||
func TestBlockchainWithTxDAG(t *testing.T) { | |||
//log.SetDefault(log.NewLogger(log.NewTerminalHandlerWithLevel(os.Stderr, log.LevelDebug, true))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plz remove useless code in this test
Description
Mainly includes the following contents:
Rationale
Version 0.1 of the TxDAG generation code is based on #149 with some minor modifications.
Example
Add two parameters to geth:
--parallel.txdag
will enable the TxDAG generation feature, whileparallel.txdagsenderpriv
specifies the private key of the sender for the transaction into which the generated TxDAG data is inserted.