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

Commit a38d8b7

Browse files
committed
Additional validity requirements
1 parent 1adabad commit a38d8b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ethcore/src/types/transaction.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,8 @@ impl UnverifiedTransaction {
370370
if check_low_s && !allow_empty_signature {
371371
self.check_low_s()?;
372372
}
373-
if !allow_empty_signature && self.is_unsigned() {
373+
// EIP-86: Transactions of this form MUST have gasprice = 0, nonce = 0, value = 0, and do NOT increment the nonce of account 0.
374+
if !allow_empty_signature && self.is_unsigned() && self.gas_price.is_zero() && self.value.is_zero() && self.nonce.is_zero() {
374375
return Err(EthkeyError::InvalidSignature.into())
375376
}
376377
match (self.network_id(), chain_id) {

0 commit comments

Comments
 (0)