Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Additional validity requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
arkpar committed Mar 31, 2017
1 parent 1adabad commit a38d8b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ethcore/src/types/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@ impl UnverifiedTransaction {
if check_low_s && !allow_empty_signature {
self.check_low_s()?;
}
if !allow_empty_signature && self.is_unsigned() {
// EIP-86: Transactions of this form MUST have gasprice = 0, nonce = 0, value = 0, and do NOT increment the nonce of account 0.
if !allow_empty_signature && self.is_unsigned() && self.gas_price.is_zero() && self.value.is_zero() && self.nonce.is_zero() {
return Err(EthkeyError::InvalidSignature.into())
}
match (self.network_id(), chain_id) {
Expand Down

0 comments on commit a38d8b7

Please sign in to comment.