miner/submitBlock
Submit a block template to the mining manager
Request
{
header: {
sequence: number
previousBlockHash: string
noteCommitment: string
transactionCommitment: string
target: string
randomness: string
timestamp: number
graffiti: string
}
transactions: string[]
previousBlockInfo?: {
target: string
timestamp: number
}
}
Response
{
added: boolean
reason:
| 'UNKNOWN_REQUEST'
| 'CHAIN_CHANGED'
| 'INVALID_BLOCK'
| 'ADD_FAILED'
| 'FORK'
| 'SUCCESS'
}