-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.zig
More file actions
22 lines (18 loc) · 888 Bytes
/
Copy pathmain.zig
File metadata and controls
22 lines (18 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const std = @import("std");
const preset = @import("presets/preset.zig");
const bellatrix = @import("consensus/bellatrix/types.zig");
const types = @import("consensus/types.zig");
pub fn main() !void {
// Prints to stderr (it's a shortcut based on `std.io.getStdErr()`)
std.debug.print("All your {s} are belong to us.\n", .{"codebase"});
// stdout is for the actual output of your application, for example if you
// are implementing gzip, then only the compressed bytes should be sent to
// stdout, not any debugging messages.
const stdout_file = std.io.getStdOut().writer();
var bw = std.io.bufferedWriter(stdout_file);
const stdout = bw.writer();
try stdout.print("Run `zig build test` to run the tests.\n", .{});
// print mainnet preset
try stdout.print("{}\n", .{preset.mainnet_preset});
try bw.flush(); // don't forget to flush!
}