btcjson: add ErrRPCClientNodeNotAdded
This commit is contained in:
parent
7cc630b335
commit
d9a674e1b7
2 changed files with 3 additions and 2 deletions
|
@ -45,6 +45,7 @@ const (
|
|||
const (
|
||||
ErrRPCClientNotConnected RPCErrorCode = -9
|
||||
ErrRPCClientInInitialDownload RPCErrorCode = -10
|
||||
ErrRPCClientNodeNotAdded RPCErrorCode = -24
|
||||
)
|
||||
|
||||
// Wallet JSON errors
|
||||
|
|
|
@ -917,7 +917,7 @@ func handleGetAddedNodeInfo(s *rpcServer, cmd interface{}, closeChan <-chan stru
|
|||
}
|
||||
if !found {
|
||||
return nil, &btcjson.RPCError{
|
||||
Code: -24, // TODO: ErrRPCClientNodeNotAdded
|
||||
Code: btcjson.ErrRPCClientNodeNotAdded,
|
||||
Message: "Node has not been added",
|
||||
}
|
||||
}
|
||||
|
@ -1946,7 +1946,7 @@ func handleGetBlockTemplateProposal(s *rpcServer, request *btcjson.TemplateReque
|
|||
err := rpcsLog.Errorf("Failed to process block "+
|
||||
"proposal: %v", err)
|
||||
return nil, &btcjson.RPCError{
|
||||
Code: -25, // TODO: ErrRpcVerify
|
||||
Code: btcjson.ErrRPCVerify,
|
||||
Message: err.Error(),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue