rpc: adjust submitblock
RPC-call
It should return block hash instead of boolean.
This commit is contained in:
parent
c2534b1a0b
commit
889a5d7eb6
4 changed files with 22 additions and 20 deletions
|
@ -902,7 +902,9 @@ func (s *Server) submitBlock(reqParams request.Params) (interface{}, *response.E
|
|||
return nil, response.ErrValidationFailed
|
||||
}
|
||||
}
|
||||
return true, nil
|
||||
return &result.RelayResult{
|
||||
Hash: b.Hash(),
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (s *Server) sendrawtransaction(reqParams request.Params) (interface{}, *response.Error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue