Skip to content
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

Add troubleshooting log #2254

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion core/parallel_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,11 @@ func (exe *Executor) executeParallelTx(ctx *ParallelContext, idx int, intrinsicG

// Make sure the sender is an EOA
if codeHash := fromObj.GetCodeHash(); codeHash != emptyCodeHash && codeHash != (common.Hash{}) {
log.Error("Sender not an eoa", "from", msg.From().Hex(), "to", msg.To().Hex(), "err", ErrSenderNoEOA.Error())
if msg.To() != nil {
log.Error("Sender not an eoa", "from", msg.From().Hex(), "to", msg.To().Hex(), "err", ErrSenderNoEOA.Error())
} else {
log.Error("Sender not an eoa", "from", msg.From().Hex(), "err", ErrSenderNoEOA.Error())
}
}

mgval := new(big.Int).Mul(new(big.Int).SetUint64(tx.Gas()), tx.GasPrice())
Expand Down
6 changes: 5 additions & 1 deletion core/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,11 @@ func (st *StateTransition) preCheck() error {
}
// Make sure the sender is an EOA
if codeHash := st.state.GetCodeHash(st.msg.From()); codeHash != emptyCodeHash && codeHash != (common.Hash{}) {
log.Error("Sender not an eoa", "from", st.msg.From().Hex(), "to", st.msg.To().Hex(), "err", ErrSenderNoEOA.Error())
if st.msg.To() != nil {
log.Error("Sender not an eoa", "from", st.msg.From().Hex(), "to", st.msg.To().Hex(), "err", ErrSenderNoEOA.Error())
} else {
log.Error("Sender not an eoa", "from", st.msg.From().Hex(), "err", ErrSenderNoEOA.Error())
}
}
return st.buyGas()
}
Expand Down
Loading