From 2b9f5b893217dd5bc7042ad3e5d544026f626634 Mon Sep 17 00:00:00 2001 From: David Hill Date: Wed, 29 Jan 2014 22:22:07 -0500 Subject: [PATCH] in getrawmempool verbose mode, initialize depends to an empty array. this matches bitcoind. from jrick ok davec --- rpcserver.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rpcserver.go b/rpcserver.go index b22ae6ef..622588bb 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -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