Skip to main content

render_command

Function render_command 

Source
fn render_command(command: &str, hash: Hash) -> String
Expand description

Replaces every %s in command with hash in getbestblockhash hex format.

block::Hash’s Display impl already yields the getbestblockhash format (display-order hex), so the substituted value is a fixed 64-char [0-9a-f] string with no shell metacharacters.