[Content] Update transaction version number

This commit is contained in:
thephez 2018-04-18 16:56:05 -04:00
parent a646eb80a8
commit 190fa798a5
No known key found for this signature in database
GPG key ID: BBC8A06DBE236099

View file

@ -210,16 +210,19 @@ transaction---making the transaction format part of the consensus rules.
Dash Core and many other tools print and accept raw transactions Dash Core and many other tools print and accept raw transactions
encoded as hex. encoded as hex.
All transactions use the version 1 format described below. Transactions prior to protocol version 70209 defaulted to version 1. Transaction
version 2 became the default in protocol version 70209. Version 2 transactions
have the same format, but the `lock_time` parameter was redefined by BIP68
to enable relative lock-times.
(Note: transactions in the block chain are allowed to list a higher version (Note: transactions in the block chain are allowed to list a higher version
number to permit soft forks, but they are treated as version 1 transactions number to permit soft forks, but they are treated as version 2 transactions
by current software.) by current software.)
A raw transaction has the following top-level format: A raw transaction has the following top-level format:
| Bytes | Name | Data Type | Description | Bytes | Name | Data Type | Description
|----------|--------------|---------------------|------------- |----------|--------------|---------------------|-------------
| 4 | version | uint32_t | Transaction version number; currently version 1. Programs creating transactions using newer consensus rules may use higher version numbers. | 4 | version | uint32_t | Transaction version number; currently version 2. Programs creating transactions using newer consensus rules may use higher version numbers.
| *Varies* | tx_in count | compactSize uint | Number of inputs in this transaction. | *Varies* | tx_in count | compactSize uint | Number of inputs in this transaction.
| *Varies* | tx_in | txIn | Transaction inputs. See description of txIn below. | *Varies* | tx_in | txIn | Transaction inputs. See description of txIn below.
| *Varies* | tx_out count | compactSize uint | Number of outputs in this transaction. | *Varies* | tx_out count | compactSize uint | Number of outputs in this transaction.