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

Commit

Permalink
Increment nonce between randomness and POSDAO transactions.
Browse files Browse the repository at this point in the history
  • Loading branch information
afck committed Jan 28, 2020
1 parent afc661a commit 07a392c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethcore/engines/authority-round/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,7 @@ impl Engine for AuthorityRound {

fn generate_engine_transactions(&self, block: &ExecutedBlock) -> Result<Vec<SignedTransaction>, Error> {
let mut transactions = self.run_randomness_phase(block)?;
let nonce = transactions.last().map(|tx| tx.nonce);
let nonce = transactions.last().map(|tx| tx.nonce + U256::one());
transactions.extend(self.run_posdao(block, nonce)?);
Ok(transactions)
}
Expand Down

0 comments on commit 07a392c

Please sign in to comment.