rpc: adjust sendrawtransaction
RPC-call
It should return tx has instead of boolean.
This commit is contained in:
parent
1154e180fa
commit
c2534b1a0b
8 changed files with 48 additions and 28 deletions
|
@ -921,7 +921,9 @@ func (s *Server) sendrawtransaction(reqParams request.Params) (interface{}, *res
|
|||
relayReason := s.coreServer.RelayTxn(tx)
|
||||
switch relayReason {
|
||||
case network.RelaySucceed:
|
||||
results = true
|
||||
results = result.RelayResult{
|
||||
Hash: tx.Hash(),
|
||||
}
|
||||
case network.RelayAlreadyExists:
|
||||
resultsErr = response.ErrAlreadyExists
|
||||
case network.RelayOutOfMemory:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue