-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
10d70d8
commit 28c54f6
Showing
14 changed files
with
43 additions
and
61 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
const std = @import("std"); | ||
const Config = @import("../config/config.zig").Config; | ||
const Mempool = @import("../core/mempool.zig").Mempool; | ||
const Storage = @import("../storage/storage.zig").Storage; | ||
const P2P = @import("../network/p2p.zig").P2P; | ||
const RPC = @import("../network/rpc.zig").RPC; | ||
|
||
pub fn startNode(_: *Mempool, _: *Storage, p2p: *P2P, rpc: *RPC) !void { | ||
std.log.info("Starting btczee node...", .{}); | ||
|
||
// Start P2P network | ||
try p2p.start(); | ||
|
||
// Start RPC server | ||
try rpc.start(); | ||
|
||
// Main event loop | ||
while (true) { | ||
// Handle events, process blocks, etc. | ||
std.log.debug("Waiting for blocks...", .{}); | ||
std.time.sleep(std.time.ns_per_s); | ||
} | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Empty file.