Add replay protection (#4808)

* add eip155

* make network_id default
This commit is contained in:
keorn 2017-03-08 14:44:07 +01:00 committed by Gav Wood
parent 731f28a8c0
commit a84a10ff03
1 changed files with 3 additions and 1 deletions

View File

@ -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