mvs-org / metaverse

The Metaverse individual chain service ETP coin and immutable data space for Hyperspace.
https://mvs.org
GNU Affero General Public License v3.0
307 stars 115 forks source link

JSON RPC format of transaction version and lock_time should be numbers #392

Open canguruhh opened 4 years ago

canguruhh commented 4 years ago

The version and lock_time of gettx are formatted as strings but they should be numbers. This also affects the list of transactions in the getblock response.

mvs-cli gettx 2a845dfa63a7c20d40dbc4b15c3e970ef36332b367500fd89307053cb4c1a2c1
{
    "hash" : "2a845dfa63a7c20d40dbc4b15c3e970ef36332b367500fd89307053cb4c1a2c1",
    "height" : 0,
    "inputs" : 
    [
        ...
    ],
    "lock_time" : "0",   <-----------
    "outputs" : 
    [
        ...
    ],
    "version" : "0" <-----------
}