Skip to content

Commit

Permalink
additions from comments
Browse files Browse the repository at this point in the history
  • Loading branch information
brentstone authored and tzemanovic committed Dec 8, 2023
1 parent 06d5895 commit 763ea16
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wasm/wasm_source/src/vp_user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ fn validate_pos_changes(
}
(None, Some(_post)) => {
// Becoming a validator must be authorized
**valid_sig
address == owner && **valid_sig
}
(Some(_pre), None) => {
// Clearing of old epoched data
Expand All @@ -274,6 +274,10 @@ fn validate_pos_changes(
// Claims for this address must be signed
return &bond_id.source != owner || **valid_sig;
}
if let Some(bond_id) = storage::is_rewards_counter_key(key) {
// Claims for this address must be signed
return &bond_id.source != owner || **valid_sig;
}
false
};

Expand Down

0 comments on commit 763ea16

Please sign in to comment.