Skip to content

Commit 0dd953d

Browse files
tmp
1 parent 2481f7e commit 0dd953d

File tree

6 files changed

+195
-97
lines changed

6 files changed

+195
-97
lines changed

src/choreo/forks/fd_forks.c

-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,6 @@ slot_ctx_restore( ulong slot,
245245
}
246246

247247
fd_slot_bank_t * slot_bank = fd_slot_bank_decode( mem, &decode_ctx );
248-
FD_LOG_WARNING(("ON FORK KUNAL slot_bank->slot %lu", slot_bank->slot));
249248

250249
fd_memcpy( &slot_ctx_out->slot_bank, slot_bank, sizeof(fd_slot_bank_t) );
251250
} else {

src/flamenco/rewards/fd_rewards.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,8 @@ calculate_stake_vote_rewards( fd_exec_slot_ctx_t * slot_ct
587587
fd_stake_reward_calculation_dlist_footprint() );
588588

589589
fd_stake_reward_calculation_dlist_new( result->stake_reward_calculation.stake_rewards );
590-
result->stake_reward_calculation.stake_rewards_len = 0UL;
590+
result->stake_reward_calculation.stake_rewards_len = 1UL;
591+
result->stake_reward_calculation.stake_rewards_lengths[0] = 0;
591592

592593
/* Create the vote rewards map. This will be destroyed after the vote rewards have been distributed. */
593594
ulong vote_account_cnt = fd_vote_info_pair_t_map_size( temp_info->vote_states_pool, temp_info->vote_states_root );
@@ -756,6 +757,7 @@ hash_rewards_into_partitions( fd_exec_slot_ctx_t * slot_c
756757
/* Move the stake reward to the partition's dlist */
757758
fd_partitioned_stake_rewards_dlist_t * partition = &result->partitioned_stake_rewards.partitions[ partition_index ];
758759
fd_partitioned_stake_rewards_dlist_ele_push_tail( partition, stake_reward, stake_reward_calculation->pool );
760+
result->partitioned_stake_rewards.partitions_lengths[ partition_index ]++;
759761
}
760762
}
761763

@@ -1016,6 +1018,7 @@ fd_distribute_partitioned_epoch_rewards( fd_exec_slot_ctx_t * slot_ctx,
10161018

10171019
if( (height>=distribution_starting_block_height) && (height < distribution_end_exclusive) ) {
10181020
ulong partition_index = height - distribution_starting_block_height;
1021+
FD_LOG_WARNING(( "Distributing rewards for partition %lu", partition_index ));
10191022
distribute_epoch_rewards_in_partition( &status->partitioned_stake_rewards.partitions[ partition_index ],
10201023
status->partitioned_stake_rewards.pool,
10211024
slot_ctx );

0 commit comments

Comments
 (0)