Skip to content

Commit b9cc775

Browse files
committed
remove /mined_block
1 parent 8155ca1 commit b9cc775

File tree

1 file changed

+0
-62
lines changed

1 file changed

+0
-62
lines changed

docs/event-dispatcher.md

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,6 @@ Delivers an array of raw, hex-encoded transactions newly received into the node'
402402
]
403403
```
404404

405-
406405
### `POST /drop_mempool_tx`
407406

408407
Delivers information about transactions dropped from the mempool.
@@ -425,67 +424,6 @@ Reason can be one of:
425424
* `TooExpensive` - the transaction is too expensive to include in a block
426425
* `StaleGarbageCollect` - transaction was dropped because it became stale
427426

428-
### `POST /mined_block`
429-
430-
This payload includes data related to block mined by this Stacks node. This
431-
will never be invoked if the node is configured only as a follower. This is invoked
432-
when the miner **assembles** the block; this block may or may not win the sortition.
433-
434-
This endpoint will only broadcast events to observers that explicitly register for
435-
`MinedBlocks` events, `AnyEvent` observers will not receive the events by default.
436-
437-
Example:
438-
439-
```json
440-
{
441-
"block_hash": "0x4eaabcd105865e471f697eff5dd5bd85d47ecb5a26a3379d74fae0ae87c40904",
442-
"stacks_height": 3,
443-
"target_burn_height": 745000,
444-
"block_size": 145000,
445-
"anchored_cost": {
446-
"runtime": 100,
447-
"read_count": 10,
448-
"write_count": 5,
449-
"read_length": 150,
450-
"write_length": 75
451-
},
452-
"confirmed_microblocks_cost": {
453-
"runtime": 100,
454-
"read_count": 10,
455-
"write_count": 5,
456-
"read_length": 150,
457-
"write_length": 75
458-
},
459-
"tx_events": [
460-
{
461-
"Success": {
462-
"txid": "3e04ada5426332bfef446ba0a06d124aace4ade5c11840f541bf88e2e919faf6",
463-
"fee": 0,
464-
"execution_cost": {
465-
"write_length": 0,
466-
"write_count": 0,
467-
"read_length": 0,
468-
"read_count": 0,
469-
"runtime": 0
470-
},
471-
"result": {
472-
"ResponseData":
473-
{
474-
"committed": true,
475-
"data": true
476-
}
477-
}
478-
}},
479-
{
480-
"ProcessingError": {
481-
"txid": "eef9f46b20fb637bd07ec92ad3ec175a5a4bdf3e8799259fc5b16a272090d4de",
482-
"error": "Duplicate contract 'ST3BMYNT1DW2QSRZWB6M4S183NK1BXGJ41TEBCCH8.example'"
483-
}
484-
}
485-
]
486-
}
487-
```
488-
489427
### `POST /stackerdb_chunks`
490428

491429
Delivers data related to mutations in a StackerDB replica this node subscribes to.

0 commit comments

Comments
 (0)