Skip to content

Commit

Permalink
Modify signing
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewAR2 committed Apr 18, 2024
1 parent 2ccae0b commit ad4ab3e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions crates/ethcore/src/engines/authority_round/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2032,9 +2032,7 @@ impl Engine<EthereumMachine> for AuthorityRound {

let chain_id = self.machine.params().chain_id;

if let Some(signer) = self.signer.read().as_ref() {
let signature =
signer.sign(t.signature_hash(Some(chain_id))).unwrap();
if let Ok(signature) = self.sign(t.signature_hash(Some(chain_id))).map(Into::into) {
let tx = SignedTransaction::new(
t.with_signature(signature, Some(chain_id)),
)?;
Expand All @@ -2047,8 +2045,7 @@ impl Engine<EthereumMachine> for AuthorityRound {
*self.reward_transaction_pushed.lock() = true;
}

let our_addr = signer.address();
self.validators.on_close_block(&block.header, &our_addr)?
self.validators.on_close_block(&block.header, &author)?
}
}
}
Expand Down

0 comments on commit ad4ab3e

Please sign in to comment.