mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Fix tx model versioning
This commit is contained in:
parent
88d08a551c
commit
a049081b07
@ -410,7 +410,7 @@ class Transaction(object):
|
|||||||
TRANSFER = 'TRANSFER'
|
TRANSFER = 'TRANSFER'
|
||||||
GENESIS = 'GENESIS'
|
GENESIS = 'GENESIS'
|
||||||
ALLOWED_OPERATIONS = (CREATE, TRANSFER, GENESIS)
|
ALLOWED_OPERATIONS = (CREATE, TRANSFER, GENESIS)
|
||||||
VERSION = bigchaindb.version.__short_version__[:-4] # 0.9, 0.10 etc
|
VERSION = '.'.join(bigchaindb.version.__short_version__.split('.')[:2])
|
||||||
|
|
||||||
def __init__(self, operation, asset, inputs=None, outputs=None,
|
def __init__(self, operation, asset, inputs=None, outputs=None,
|
||||||
metadata=None, version=None):
|
metadata=None, version=None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user