Added error to submit_block call
This commit is contained in:
parent
f6a7735b8c
commit
d8d87587c8
|
@ -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 {
|
||||
|
|
Reference in a new issue