From: Matt Corallo Date: Sun, 14 Nov 2021 22:06:57 +0000 (+0000) Subject: Fix signmessage offset calculation X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=f21537916008cc7c1030466363cd19dc82b8623f;p=ldk-sample Fix signmessage offset calculation --- 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;