Update for new btcws.TxMinedNtfn information.
This commit is contained in:
parent
8e3ede441b
commit
7e21226ca6
1 changed files with 6 additions and 1 deletions
|
@ -1518,7 +1518,12 @@ func (s *rpcServer) NotifyBlockConnected(block *btcutil.Block) {
|
||||||
for e := clist.Front(); e != nil; e = enext {
|
for e := clist.Front(); e != nil; e = enext {
|
||||||
enext = e.Next()
|
enext = e.Next()
|
||||||
ctx := e.Value.(*notificationCtx)
|
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)
|
mntfn, _ := json.Marshal(ntfn)
|
||||||
ctx.connection <- mntfn
|
ctx.connection <- mntfn
|
||||||
s.ws.removeMinedTxRequest(ctx.connection, ctx.rc,
|
s.ws.removeMinedTxRequest(ctx.connection, ctx.rc,
|
||||||
|
|
Loading…
Reference in a new issue