Skip to content

Commit 10b1ff6

Browse files
wip
1 parent 0399983 commit 10b1ff6

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/flamenco/rewards/fd_epoch_rewards.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#define POOL_NAME fd_epoch_stake_reward_pool
55
#define POOL_T fd_epoch_stake_reward_t
66
#define POOL_IDX_T uint
7-
#define POOL_NEXT next_map
87
#include "../../util/tmpl/fd_pool.c"
98

109
#define MAP_NAME fd_epoch_stake_reward_map

src/flamenco/rewards/fd_epoch_rewards.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ FD_STATIC_ASSERT( FD_REWARDS_MAX_PARTITIONS <= FD_RUNTIME_SLOTS_PER_EPOCH / MAX_
6666
total footprint: 5,984 bytes + 192,000,128 bytes + 8,388,632 bytes + 11,728 bytes = 200,406,472 bytes
6767
total footprint + align: align up to 128 bytes = 200,406,528 bytes
6868
*/
69-
#define FD_EPOCH_REWARDS_FOOTPRINT (10446951296)
69+
#define FD_EPOCH_REWARDS_FOOTPRINT (11862528896)
7070

7171
#define FD_EPOCH_REWARDS_ALIGN (128UL)
7272

@@ -78,8 +78,8 @@ struct fd_epoch_stake_reward {
7878
ulong lamports;
7979
/* Internal pointers for pool, dlist, and map. */
8080
uint next_map;
81-
ushort prev;
82-
ushort next;
81+
uint prev;
82+
uint next;
8383
};
8484
typedef struct fd_epoch_stake_reward fd_epoch_stake_reward_t;
8585

@@ -88,7 +88,7 @@ typedef struct fd_epoch_stake_reward fd_epoch_stake_reward_t;
8888

8989
#define DLIST_NAME fd_epoch_stake_reward_dlist
9090
#define DLIST_ELE_T fd_epoch_stake_reward_t
91-
#define DLIST_IDX_T ushort
91+
#define DLIST_IDX_T uint
9292
#include "../../util/tmpl/fd_dlist.c"
9393

9494
struct fd_epoch_rewards_iter {

0 commit comments

Comments
 (0)