This commit is contained in:
Owain G. Ainsworth 2013-12-17 14:02:35 +00:00
parent 8310661c29
commit d72255bce3
2 changed files with 20 additions and 22 deletions

View file

@ -878,7 +878,6 @@ type mempoolDescriptor struct {
StartingPriority int `json:"startingpriority"` StartingPriority int `json:"startingpriority"`
CurrentPriority int `json:"currentpriority"` CurrentPriority int `json:"currentpriority"`
Depends []string `json:"depends"` Depends []string `json:"depends"`
} }
// handleGetRawMempool implements the getrawmempool command. // handleGetRawMempool implements the getrawmempool command.
@ -911,11 +910,10 @@ func handleGetRawMempool(s *rpcServer, cmd btcjson.Cmd, walletNotification chan
return result, nil return result, nil
} }
hashStrings := make([]string, len(descs)) hashStrings := make([]string, len(descs))
for i := range(hashStrings) { for i := range hashStrings {
hashStrings[i] = descs[i].Tx.Sha().String() hashStrings[i] = descs[i].Tx.Sha().String()
} }
return hashStrings, nil return hashStrings, nil
} }