@@ -660,6 +660,7 @@ pub struct GetTxOutSetInfo {
660660/// > Verifies that a proof points to a transaction in a block, returning the transaction it commits to
661661/// > and throwing an RPC error if the block is not in our best chain
662662/// >
663+ /// > Returns null (json null)
663664/// > Arguments:
664665/// > 1. "proof" (string, required) The hex-encoded proof generated by gettxoutproof
665666///
@@ -678,4 +679,33 @@ pub struct VerifyTxOutProof(pub Vec<String>);
678679pub struct PruneBlockchain (
679680 /// The height of the last block pruned.
680681 pub i64
681- ) ;
682+ ) ;
683+
684+ /// Result of JSON-RPC method `savemempool`.
685+ ///
686+ /// > savemempool
687+ /// >
688+ /// > Arguments:
689+ /// > 1. "height" (numeric, required) The block height to prune up to. May be set to a discrete height, or a unix timestamp
690+ /// > to prune blocks whose block time is at least 2 hours older than the provided timestamp.
691+ /// > Returns null (json null)
692+ #[ derive( Clone , Debug , PartialEq , Eq , Deserialize , Serialize ) ]
693+ pub struct SaveMempool ;
694+
695+ /// Result of JSON-RPC method `verifychain`.
696+ ///
697+ /// > verifychain
698+ /// >
699+ /// > Arguments:
700+ /// > 1. checklevel (numeric, optional, default=3, range=0-4) How thorough the block verification is:
701+ /// - level 0 reads the blocks from disk
702+ /// - level 1 verifies block validity
703+ /// - level 2 verifies undo data
704+ /// - level 3 checks disconnection of tip blocks
705+ /// - level 4 tries to reconnect the blocks
706+ /// - each level includes the checks of the previous levels
707+ /// > 2. nblocks (numeric, optional, default=6, 0=all) The number of blocks to check.
708+ /// >
709+ /// > Returns true|false (boolean) Verification finished successfully. If false, check debug.log for reason.
710+ #[ derive( Clone , Debug , PartialEq , Eq , Deserialize , Serialize ) ]
711+ pub struct VerifyChain ( pub bool ) ;
0 commit comments