in getrawmempool verbose mode, initialize depends to an empty array.

this matches bitcoind.

from jrick
ok davec
This commit is contained in:
David Hill 2014-01-29 22:22:07 -05:00
parent b532860477
commit 2b9f5b8932

View file

@ -1012,6 +1012,7 @@ func handleGetRawMempool(s *rpcServer, cmd btcjson.Cmd) (interface{}, error) {
Height: desc.Height,
StartingPriority: 0, // We don't mine.
CurrentPriority: 0, // We don't mine.
Depends: make([]string, 0),
}
for _, txIn := range desc.Tx.MsgTx().TxIn {
hash := &txIn.PreviousOutpoint.Hash