Remove unnecessary data from bitcoin.Tx struct
This commit is contained in:
parent
b3d1d449fd
commit
1c68070d78
@ -44,14 +44,16 @@ func AddressToOutputScript(address string) ([]byte, error) {
|
|||||||
return script, nil
|
return script, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Tx is blockchain transaction
|
||||||
|
// unnecessary fields are commented out to avoid overhead
|
||||||
type Tx struct {
|
type Tx struct {
|
||||||
Hex string `json:"hex"`
|
Hex string `json:"hex"`
|
||||||
Txid string `json:"txid"`
|
Txid string `json:"txid"`
|
||||||
Version int32 `json:"version"`
|
Version int32 `json:"version"`
|
||||||
LockTime uint32 `json:"locktime"`
|
LockTime uint32 `json:"locktime"`
|
||||||
Vin []Vin `json:"vin"`
|
Vin []Vin `json:"vin"`
|
||||||
Vout []Vout `json:"vout"`
|
Vout []Vout `json:"vout"`
|
||||||
BlockHash string `json:"blockhash,omitempty"`
|
// BlockHash string `json:"blockhash,omitempty"`
|
||||||
Confirmations uint32 `json:"confirmations,omitempty"`
|
Confirmations uint32 `json:"confirmations,omitempty"`
|
||||||
Time int64 `json:"time,omitempty"`
|
Time int64 `json:"time,omitempty"`
|
||||||
Blocktime int64 `json:"blocktime,omitempty"`
|
Blocktime int64 `json:"blocktime,omitempty"`
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user