@vafanassieff/bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
23 lines (19 loc) • 672 B
text/typescript
// Auto synced from github actions. Don't change this file
import { Bitcoind } from '../../types.js'
import request from '../../rpc-request.js'
type ReconsiderBlockParams = {
bitcoind: Bitcoind
/* the hash of the block to reconsider */
blockhash: string
}
/**
* reconsiderblock "blockhash"
*
* Removes invalidity status of a block, its ancestors and its descendants, reconsider them for activation.
* This can be used to undo the effects of invalidateblock.
*
*/
export function reconsiderBlock(params: ReconsiderBlockParams) {
const { bitcoind, ...methodParams } = params
return request({ method: 'reconsiderblock', params: methodParams }, bitcoind)
}