@@ -417,18 +417,18 @@ def __bytes__(self):
417
417
418
418
419
419
class TransactionV5 (object ):
420
- def __init__ (self , rand , consensus_branch_id , version_group_id ):
420
+ def __init__ (self , rand , consensus_branch_id ):
421
421
# Decide which transaction parts will be generated.
422
422
flip_coins = rand .u8 ()
423
423
424
- self .init_header (consensus_branch_id , version_group_id , rand )
424
+ self .init_header (consensus_branch_id , rand )
425
425
self .init_transparent (rand , flip_coins )
426
426
self .init_sapling (rand , flip_coins )
427
427
self .init_orchard (rand , flip_coins )
428
428
429
- def init_header (self , consensus_branch_id , version_group_id , rand ):
429
+ def init_header (self , consensus_branch_id , rand ):
430
430
# Common Transaction Fields
431
- self .nVersionGroupId = version_group_id
431
+ self .nVersionGroupId = NU5_VERSION_GROUP_ID
432
432
self .nConsensusBranchId = consensus_branch_id
433
433
self .nLockTime = rand .u32 ()
434
434
self .nExpiryHeight = rand .u32 () % TX_EXPIRY_HEIGHT_THRESHOLD
@@ -592,9 +592,9 @@ def orchard_bytes(self):
592
592
return ret
593
593
594
594
class TransactionV6 (TransactionV5 ):
595
- def init_header (self , consensus_branch_id , version_group_id , rand ):
595
+ def init_header (self , consensus_branch_id , rand ):
596
596
# Common Transaction Fields
597
- self .nVersionGroupId = version_group_id
597
+ self .nVersionGroupId = V6_VERSION_GROUP_ID
598
598
self .nConsensusBranchId = consensus_branch_id
599
599
self .nLockTime = rand .u32 ()
600
600
self .nExpiryHeight = rand .u32 () % TX_EXPIRY_HEIGHT_THRESHOLD
@@ -615,10 +615,10 @@ class Transaction(object):
615
615
def __init__ (self , rand , version , consensus_branch_id = None ):
616
616
if version == NU5_TX_VERSION :
617
617
assert consensus_branch_id is not None
618
- self .inner = TransactionV5 (rand , consensus_branch_id , NU5_VERSION_GROUP_ID )
618
+ self .inner = TransactionV5 (rand , consensus_branch_id )
619
619
elif version == V6_TX_VERSION :
620
620
assert consensus_branch_id is not None
621
- self .inner = TransactionV6 (rand , consensus_branch_id , V6_VERSION_GROUP_ID )
621
+ self .inner = TransactionV6 (rand , consensus_branch_id )
622
622
else :
623
623
self .inner = LegacyTransaction (rand , version )
624
624
0 commit comments