Added error to submit_block call

This commit is contained in:
DataHoarder 2023-03-05 01:40:01 +01:00
parent f6a7735b8c
commit d8d87587c8
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk

View file

@ -293,7 +293,13 @@ type GetMinerDataResult struct {
// SubmitBlockResult is the result of a call to the SubmitBlock RPC
// method.
type SubmitBlockResult struct {
Status string `json:"status"`
Status string `json:"status"`
Error *submitBlockResultError `json:"error"`
}
type submitBlockResultError struct {
Code int `json:"code"`
Message string `json:"message"`
}
type Peer struct {