Skip to content

Commit f6de9ed

Browse files
committed
add comment
1 parent 486e558 commit f6de9ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

program/rust/src/validator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ pub fn compute_publisher_stake_caps<'a>(
163163
m: u64,
164164
z: u64,
165165
) -> Vec<u8> {
166-
let mut publisher_caps: BTreeMap<Pubkey, u64> = BTreeMap::new();
166+
let mut publisher_caps: BTreeMap<Pubkey, u64> = BTreeMap::new(); // BTreeMap to ensure it will be sorted by publisher
167167
for account in account_datas {
168168
if let Some(price_account) = checked_load_price_account(account) {
169169
let cap: u64 = m

0 commit comments

Comments
 (0)