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

Commit

Permalink
Add replay protection (#4808)
Browse files Browse the repository at this point in the history
* add eip155

* make network_id default
  • Loading branch information
keorn authored and gavofyork committed Mar 8, 2017
1 parent 731f28a commit a84a10f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ethcore/src/engines/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ pub trait Engine : Sync + Send {
}

/// The network ID that transactions should be signed with.
fn signing_network_id(&self, _env_info: &EnvInfo) -> Option<u64> { None }
fn signing_network_id(&self, _env_info: &EnvInfo) -> Option<u64> {
Some(self.params().chain_id)
}

/// Verify the seal of a block. This is an auxilliary method that actually just calls other `verify_` methods
/// to get the job done. By default it must pass `verify_basic` and `verify_block_unordered`. If more or fewer
Expand Down

0 comments on commit a84a10f

Please sign in to comment.