Skip to content

Commit 26b79c8

Browse files
riptlripatel-fd
authored andcommitted
Fix fddev genesis error message
Thanks to Ishan for reporting
1 parent 1b11073 commit 26b79c8

File tree

1 file changed

+3
-3
lines changed
  • src/app/shared_dev/commands/configure

1 file changed

+3
-3
lines changed

src/app/shared_dev/commands/configure/genesis.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ estimate_hashes_per_tick( ulong tick_mhz,
116116
static ulong
117117
create_genesis( config_t const * config,
118118
uchar * blob,
119-
ulong blob_sz ) {
119+
ulong blob_max ) {
120120

121121
fd_genesis_options_t options[1];
122122

@@ -204,7 +204,7 @@ create_genesis( config_t const * config,
204204
fd_scratch_attach( scratch_smem, scratch_fmem,
205205
sizeof(scratch_smem), sizeof(scratch_fmem)/sizeof(ulong) );
206206

207-
ulong blob_len = fd_genesis_create( blob, blob_sz, options );
207+
ulong blob_sz = fd_genesis_create( blob, blob_max, options );
208208
if( FD_UNLIKELY( !blob_sz ) ) FD_LOG_ERR(( "Failed to create genesis blob" ));
209209

210210
fd_scratch_detach( NULL );
@@ -214,7 +214,7 @@ create_genesis( config_t const * config,
214214
fd_keyload_unload( stake_pubkey_, 1 );
215215
fd_keyload_unload( vote_pubkey_, 1 );
216216

217-
return blob_len;
217+
return blob_sz;
218218
}
219219

220220
static void

0 commit comments

Comments
 (0)