mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-10 06:57:24 +00:00
move broadcast_evidence rpc call from info to evidence (#5634)
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
)
|
||||
|
||||
// BroadcastEvidence broadcasts evidence of the misbehavior.
|
||||
// More: https://docs.tendermint.com/master/rpc/#/Info/broadcast_evidence
|
||||
// More: https://docs.tendermint.com/master/rpc/#/Evidence/broadcast_evidence
|
||||
func BroadcastEvidence(ctx *rpctypes.Context, ev types.Evidence) (*ctypes.ResultBroadcastEvidence, error) {
|
||||
if ev == nil {
|
||||
return nil, errors.New("no evidence was provided")
|
||||
|
||||
@@ -1144,7 +1144,7 @@ paths:
|
||||
type: string
|
||||
example: "JSON_EVIDENCE_encoded"
|
||||
tags:
|
||||
- Info
|
||||
- Evidence
|
||||
description: |
|
||||
Broadcast evidence of the misbehavior.
|
||||
responses:
|
||||
|
||||
Reference in New Issue
Block a user