Remove omitempty
fromTxRawResult confirmations
* 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'
This commit is contained in:
parent
62eb2f2198
commit
b94598da55
1 changed files with 1 additions and 1 deletions
|
@ -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"`
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue