We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3ee48e commit 151cd4bCopy full SHA for 151cd4b
1 file changed
client/src/client_sync/v17/generating.rs
@@ -37,14 +37,14 @@ macro_rules! impl_client_v17__generate {
37
};
38
}
39
40
-/// Implements Bitcoin Core JSON-RPC API method `invalidate_block`
+/// Implements Bitcoin Core JSON-RPC API method `invalidateblock`
41
// This method does not appear in the output of `bitcoin-cli help`.
42
#[macro_export]
43
macro_rules! impl_client_v17__invalidate_block {
44
() => {
45
impl Client {
46
pub fn invalidate_block(&self, hash: BlockHash) -> Result<()> {
47
- match self.call("invalidate_block", &[into_json(hash)?]) {
+ match self.call("invalidateblock", &[into_json(hash)?]) {
48
Ok(serde_json::Value::Null) => Ok(()),
49
Ok(res) => Err(Error::Returned(res.to_string())),
50
Err(err) => Err(err.into()),
0 commit comments