From 7e21226ca6d1f184974995433b9c31db824f0dda Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Mon, 25 Nov 2013 12:54:23 -0500 Subject: [PATCH] Update for new btcws.TxMinedNtfn information. --- rpcserver.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rpcserver.go b/rpcserver.go index a6c4b851..eaaf3d3f 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -1518,7 +1518,12 @@ func (s *rpcServer) NotifyBlockConnected(block *btcutil.Block) { for e := clist.Front(); e != nil; e = enext { enext = e.Next() ctx := e.Value.(*notificationCtx) - ntfn := btcws.NewTxMinedNtfn(tx.Sha().String()) + // TODO: remove int32 type conversion after + // the int64 -> int32 switch is made. + ntfn := btcws.NewTxMinedNtfn(tx.Sha().String(), + hash.String(), int32(block.Height()), + block.MsgBlock().Header.Timestamp.Unix(), + tx.Index()) mntfn, _ := json.Marshal(ntfn) ctx.connection <- mntfn s.ws.removeMinedTxRequest(ctx.connection, ctx.rc,