Marshal txmined notification results correctly.

This commit is contained in:
Josh Rickmar 2013-11-08 13:03:34 -05:00
parent 3270be61fc
commit 0c37bf3b50

View file

@ -217,7 +217,7 @@ func (n *TxMinedNtfn) Id() interface{} {
func (n *TxMinedNtfn) MarshalJSON() ([]byte, error) { func (n *TxMinedNtfn) MarshalJSON() ([]byte, error) {
id := n.Id() id := n.Id()
reply := btcjson.Reply{ reply := btcjson.Reply{
Result: n.Hash, Result: *n,
Id: &id, Id: &id,
} }
return json.Marshal(reply) return json.Marshal(reply)