X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-sample;a=blobdiff_plain;f=src%2Fcli.rs;h=00eb04787cb9fdefa3df35ffeccd58ca67b1f517;hp=d34512c56e3dc31b52b9e95f7d8bccb99d7583ce;hb=f21537916008cc7c1030466363cd19dc82b8623f;hpb=7d0af178ba9a79008af7b3ea89e563749f8f7252 diff --git a/src/cli.rs b/src/cli.rs index d34512c..00eb047 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -352,7 +352,7 @@ pub(crate) async fn poll_for_user_input( "nodeinfo" => node_info(channel_manager.clone(), peer_manager.clone()), "listpeers" => list_peers(peer_manager.clone()), "signmessage" => { - const MSG_STARTPOS: usize = "signmsg".len() + 1; + const MSG_STARTPOS: usize = "signmessage".len() + 1; if line.as_bytes().len() <= MSG_STARTPOS { println!("ERROR: signmsg requires a message"); continue;