Skip to content

Commit 4fcb236

Browse files
committed
docs(genesis): add agave reference link for genesis hash computation
1 parent 27e73c9 commit 4fcb236

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/genesis_config.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,8 @@ pub const GenesisConfig = struct {
303303
const file_bytes = try file.readToEndAlloc(allocator, 100 * 1024 * 1024); // 100 MB max
304304
defer allocator.free(file_bytes);
305305

306-
// Compute hash from original file bytes (this matches Agave's behavior)
306+
// Compute hash from original file bytes
307+
// [agave] https://github.com/anza-xyz/solana-sdk/blob/f2d15de6f7a1715ff806f0c39bba8f64bf6a587d/genesis-config/src/lib.rs#L144
307308
var hash_bytes: [32]u8 = undefined;
308309
std.crypto.hash.sha2.Sha256.hash(file_bytes, &hash_bytes, .{});
309310

0 commit comments

Comments
 (0)