Skip to content

Commit

Permalink
Remove omitempty fromTxRawResult confirmations
Browse files Browse the repository at this point in the history
* Previously both searchrawtransaction and getrawtransaction would omit
the 'Confirmations' field by default if the transaction was found in
the mempool.
* By removing `omitempty`, a mempool transaction will now have
'Confirmations:0'
  • Loading branch information
Roasbeef committed Jan 16, 2015
1 parent 62eb2f2 commit b94598d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsonresults.go
Expand Up @@ -410,7 +410,7 @@ type TxRawResult struct {
Vin []Vin `json:"vin"`
Vout []Vout `json:"vout"`
BlockHash string `json:"blockhash,omitempty"`
Confirmations uint64 `json:"confirmations,omitempty"`
Confirmations uint64 `json:"confirmations"`
Time int64 `json:"time,omitempty"`
Blocktime int64 `json:"blocktime,omitempty"`
}
Expand Down

0 comments on commit b94598d

Please sign in to comment.