]> git.bitcoin.ninja Git - ldk-sample/commitdiff
Fix signmessage offset calculation
authorMatt Corallo <git@bluematt.me>
Sun, 14 Nov 2021 22:06:57 +0000 (22:06 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 14 Nov 2021 22:06:57 +0000 (22:06 +0000)
src/cli.rs

index d34512c56e3dc31b52b9e95f7d8bccb99d7583ce..00eb04787cb9fdefa3df35ffeccd58ca67b1f517 100644 (file)
@@ -352,7 +352,7 @@ pub(crate) async fn poll_for_user_input<E: EventHandler>(
                                "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;