Skip to content

Commit

Permalink
Print to the user that devfund is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
elichai committed Dec 30, 2021
1 parent 83d69c5 commit 2c99130
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use std::error::Error as StdError;

use log::warn;
use log::{info, warn};
use structopt::StructOpt;

use crate::cli::Opt;
Expand Down Expand Up @@ -40,6 +40,12 @@ async fn main() -> Result<(), Error> {
.await?;
if let Some(devfund_address) = &opt.devfund_address {
client.add_devfund(devfund_address.clone(), opt.devfund_percent);
info!(
"devfund enabled, mining {}.{}% of the time to devfund address: {} ",
opt.devfund_percent / 100,
opt.devfund_percent % 100,
devfund_address
);
}
client.client_send(NotifyBlockAddedRequestMessage {}).await?;
client.client_get_block_template().await?;
Expand Down

0 comments on commit 2c99130

Please sign in to comment.