Skip to content

Commit 6dbb69e

Browse files
riptlripatel-fd
authored andcommitted
Remove wbmtree and rent_lists
1 parent 5dc108d commit 6dbb69e

File tree

8 files changed

+2
-239
lines changed

8 files changed

+2
-239
lines changed

src/ballet/bmtree/Local.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
$(call add-hdrs,fd_bmtree.h fd_wbmtree.h)
2-
$(call add-objs,fd_bmtree fd_wbmtree,fd_ballet)
1+
$(call add-hdrs,fd_bmtree.h)
2+
$(call add-objs,fd_bmtree,fd_ballet)
33

44
$(call make-unit-test,test_bmtree,test_bmtree,fd_ballet fd_util)
55
$(call run-unit-test,test_bmtree)

src/ballet/bmtree/fd_wbmtree.c

Lines changed: 0 additions & 100 deletions
This file was deleted.

src/ballet/bmtree/fd_wbmtree.h

Lines changed: 0 additions & 47 deletions
This file was deleted.

src/flamenco/runtime/Local.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ $(call add-objs,fd_borrowed_account,fd_flamenco)
3636
$(call add-hdrs, tests/fd_dump_pb.h)
3737
$(call add-objs, tests/fd_dump_pb,fd_flamenco)
3838

39-
$(call add-hdrs,fd_rent_lists.h)
40-
4139
$(call add-hdrs,fd_txn_account.h)
4240
$(call add-objs,fd_txn_account,fd_flamenco)
4341
$(call make-unit-test,test_txn_account,test_txn_account,fd_flamenco fd_funk fd_ballet fd_util)

src/flamenco/runtime/fd_bank.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ FD_PROTOTYPES_BEGIN
197197
X(ulong, failed_txn_count, sizeof(ulong), alignof(ulong), 0, 0, 0 ) /* Failed transaction count */ \
198198
X(ulong, nonvote_failed_txn_count, sizeof(ulong), alignof(ulong), 0, 0, 0 ) /* Nonvote failed transaction count */ \
199199
X(ulong, total_compute_units_used, sizeof(ulong), alignof(ulong), 0, 0, 0 ) /* Total compute units used */ \
200-
X(ulong, part_width, sizeof(ulong), alignof(ulong), 0, 0, 0 ) /* Part width */ \
201200
X(ulong, slots_per_epoch, sizeof(ulong), alignof(ulong), 0, 0, 0 ) /* Slots per epoch */ \
202201
X(ulong, shred_cnt, sizeof(ulong), alignof(ulong), 0, 0, 0 ) /* Shred count */ \
203202
X(int, enable_exec_recording, sizeof(int), alignof(int), 0, 0, 0 ) /* Enable exec recording */ \

src/flamenco/runtime/fd_rent_lists.h

Lines changed: 0 additions & 68 deletions
This file was deleted.

src/flamenco/runtime/fd_runtime.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ fd_runtime_update_slots_per_epoch( fd_bank_t * bank,
117117
}
118118

119119
fd_bank_slots_per_epoch_set( bank, slots_per_epoch );
120-
121-
fd_bank_part_width_set( bank, fd_rent_partition_width( slots_per_epoch ) );
122120
}
123121

124122
void

src/flamenco/runtime/fd_runtime.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,14 @@
99
#include "fd_acc_mgr.h"
1010
#include "fd_hashes.h"
1111
#include "../features/fd_features.h"
12-
#include "fd_rent_lists.h"
1312
#include "context/fd_capture_ctx.h"
1413
#include "context/fd_exec_txn_ctx.h"
1514
#include "info/fd_runtime_block_info.h"
1615
#include "info/fd_instr_info.h"
17-
#include "../gossip/fd_gossip.h"
18-
#include "../repair/fd_repair.h"
1916
#include "../../disco/pack/fd_microblock.h"
2017
#include "info/fd_microblock_info.h"
21-
#include "../../ballet/bmtree/fd_wbmtree.h"
2218
#include "../../ballet/sbpf/fd_sbpf_loader.h"
2319
#include "fd_runtime_public.h"
24-
#include "../../disco/stem/fd_stem.h"
2520

2621
/* Various constant values used by the runtime. */
2722

@@ -212,11 +207,6 @@ FD_STATIC_ASSERT( FD_BPF_ALIGN_OF_U128==FD_ACCOUNT_REC_DATA_ALIGN, input_data_al
212207
why 72/40. */
213208
#define FD_RUNTIME_TRANSACTION_FINALIZATION_FOOTPRINT (FD_ACC_SZ_MAX*72UL/40UL)
214209

215-
/* The below macros aren't used anywhere, but since the spads are used for PoH tick verification,
216-
we ensure that the default spad size is large enough for the wbmtree and leaves */
217-
218-
#define FD_RUNTIME_MERKLE_LEAF_CNT_MAX (FD_TXN_MAX_PER_SLOT * FD_TXN_ACTUAL_SIG_MAX)
219-
220210

221211
/* FD_SLICE_ALIGN specifies the alignment needed for a block slice.
222212
ALIGN is double x86 cache line to mitigate various kinds of false
@@ -257,13 +247,6 @@ FD_STATIC_ASSERT( FD_BPF_ALIGN_OF_U128==FD_ACCOUNT_REC_DATA_ALIGN, input_data_al
257247
// https://github.com/firedancer-io/solana/blob/v1.17.5/core/src/repair/repair_service.rs#L55
258248
#define FD_REPAIR_TIMEOUT (200 / FD_MS_PER_TICK)
259249

260-
#define FD_RUNTIME_MERKLE_VERIFICATION_FOOTPRINT FD_RUNTIME_MERKLE_LEAF_CNT_MAX * sizeof(fd_wbmtree32_leaf_t) /* leaves */ \
261-
+ sizeof(fd_wbmtree32_t) + sizeof(fd_wbmtree32_node_t)*(FD_RUNTIME_MERKLE_LEAF_CNT_MAX + (FD_RUNTIME_MERKLE_LEAF_CNT_MAX/2)) /* tree footprint */ \
262-
+ FD_RUNTIME_MERKLE_LEAF_CNT_MAX * (sizeof(fd_ed25519_sig_t) + 1) /* sig mbuf */ \
263-
+ 1UL + FD_WBMTREE32_ALIGN + alignof(fd_wbmtree32_leaf_t) /* aligns */
264-
265-
FD_STATIC_ASSERT( FD_RUNTIME_MERKLE_VERIFICATION_FOOTPRINT <= FD_RUNTIME_TRANSACTION_EXECUTION_FOOTPRINT_DEFAULT, merkle verify footprint exceeds txn execution footprint );
266-
267250
/* Helpers for runtime public frame management. */
268251

269252
/* Helpers for runtime spad frame management. */

0 commit comments

Comments
 (0)