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) {
id := n.Id()
reply := btcjson.Reply{
Result: n.Hash,
Result: *n,
Id: &id,
}
return json.Marshal(reply)