mirror of
https://github.com/btcsuite/btcd.git
synced 2025-03-10 09:19:28 +01:00
btcjson: Updated TxRawResult.Version from int32 to uint32
This commit is contained in:
parent
540786fda6
commit
2d7825cf70
2 changed files with 2 additions and 2 deletions
|
@ -712,7 +712,7 @@ type TxRawResult struct {
|
||||||
Size int32 `json:"size,omitempty"`
|
Size int32 `json:"size,omitempty"`
|
||||||
Vsize int32 `json:"vsize,omitempty"`
|
Vsize int32 `json:"vsize,omitempty"`
|
||||||
Weight int32 `json:"weight,omitempty"`
|
Weight int32 `json:"weight,omitempty"`
|
||||||
Version int32 `json:"version"`
|
Version uint32 `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"`
|
||||||
|
|
|
@ -764,7 +764,7 @@ func createTxRawResult(chainParams *chaincfg.Params, mtx *wire.MsgTx,
|
||||||
Weight: int32(blockchain.GetTransactionWeight(btcutil.NewTx(mtx))),
|
Weight: int32(blockchain.GetTransactionWeight(btcutil.NewTx(mtx))),
|
||||||
Vin: createVinList(mtx),
|
Vin: createVinList(mtx),
|
||||||
Vout: createVoutList(mtx, chainParams, nil),
|
Vout: createVoutList(mtx, chainParams, nil),
|
||||||
Version: mtx.Version,
|
Version: uint32(mtx.Version),
|
||||||
LockTime: mtx.LockTime,
|
LockTime: mtx.LockTime,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue