btcjson: Updated TxRawResult.Version from int32 to uint32

This commit is contained in:
Aurèle Oulès 2021-03-21 19:54:48 +00:00 committed by Jake Sylvestre
parent 540786fda6
commit 2d7825cf70
2 changed files with 2 additions and 2 deletions

View file

@ -712,7 +712,7 @@ type TxRawResult struct {
Size int32 `json:"size,omitempty"`
Vsize int32 `json:"vsize,omitempty"`
Weight int32 `json:"weight,omitempty"`
Version int32 `json:"version"`
Version uint32 `json:"version"`
LockTime uint32 `json:"locktime"`
Vin []Vin `json:"vin"`
Vout []Vout `json:"vout"`

View file

@ -764,7 +764,7 @@ func createTxRawResult(chainParams *chaincfg.Params, mtx *wire.MsgTx,
Weight: int32(blockchain.GetTransactionWeight(btcutil.NewTx(mtx))),
Vin: createVinList(mtx),
Vout: createVoutList(mtx, chainParams, nil),
Version: mtx.Version,
Version: uint32(mtx.Version),
LockTime: mtx.LockTime,
}