We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27e73c9 commit 4fcb236Copy full SHA for 4fcb236
src/core/genesis_config.zig
@@ -303,7 +303,8 @@ pub const GenesisConfig = struct {
303
const file_bytes = try file.readToEndAlloc(allocator, 100 * 1024 * 1024); // 100 MB max
304
defer allocator.free(file_bytes);
305
306
- // Compute hash from original file bytes (this matches Agave's behavior)
+ // Compute hash from original file bytes
307
+ // [agave] https://github.com/anza-xyz/solana-sdk/blob/f2d15de6f7a1715ff806f0c39bba8f64bf6a587d/genesis-config/src/lib.rs#L144
308
var hash_bytes: [32]u8 = undefined;
309
std.crypto.hash.sha2.Sha256.hash(file_bytes, &hash_bytes, .{});
310
0 commit comments