Skip to content

Commit

Permalink
fix(application): increment secondary nonce
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-wright committed May 31, 2024
1 parent 21b2d07 commit 841e4f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/application/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1752,12 +1752,14 @@ impl<B: Backend> State<B> {
let index = self.pub_key_to_index.get(&node).unwrap();
let mut node_info = self.node_info.get(&index).unwrap();
node_info.nonce += 1;
node_info.secondary_nonce += 1;
self.node_info.set(index, node_info);
},
TransactionSender::NodeConsensus(node) => {
let index = self.consensus_key_to_index.get(&node).unwrap();
let mut node_info = self.node_info.get(&index).unwrap();
node_info.nonce += 1;
node_info.secondary_nonce += 1;
self.node_info.set(index, node_info);
},
TransactionSender::AccountOwner(account) => {
Expand Down

0 comments on commit 841e4f0

Please sign in to comment.