Skip to content

Commit

Permalink
Add eoa description
Browse files Browse the repository at this point in the history
  • Loading branch information
simonlechner committed Dec 19, 2024
1 parent 8d69954 commit e3f3e51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go/processor/floria/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ func nonceCheck(transactionNonce uint64, stateNonce uint64) error {
return nil
}

// Only accept transactions from externally owned accounts (EOAs) and not from contracts
func eoaCheck(sender tosca.Address, context tosca.TransactionContext) error {
codehash := context.GetCodeHash(sender)
if codehash != (tosca.Hash{}) && codehash != emptyCodeHash {
Expand Down

0 comments on commit e3f3e51

Please sign in to comment.