Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dont pass hex through logger #306

Merged
merged 1 commit into from
Sep 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/Daemon/Daemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,12 @@ void print_genesis_tx_hex() {
cn::Transaction tx = cn::CurrencyBuilder(logger).generateGenesisTransaction();
cn::BinaryArray txb = cn::toBinaryArray(tx);
std::string tx_hex = common::toHex(txb);
LoggerManager lm;
LoggerRef gen_log(lm, "[Genesis]");

/**
* Someone who knows what to do with this will find it helpful,
* if not, it't not our job to teach.
**/
gen_log(INFO) << "Random genesis hex: " << tx_hex;
std::cout << "Random genesis hex: " << tx_hex << std::endl;
return;
}

Expand Down