fix indent
This commit is contained in:
parent
b68b75d03d
commit
8cb3906055
@ -7,7 +7,7 @@ import lib.logger
|
||||
log = lib.logger.get_logger('coinbasetx')
|
||||
|
||||
#if settings.COINDAEMON_Reward == 'POW':
|
||||
class CoinbaseTransactionPOW(halfnode.CTransaction):
|
||||
class CoinbaseTransactionPOW(halfnode.CTransaction):
|
||||
'''Construct special transaction used for coinbase tx.
|
||||
It also implements quick serialization using pre-cached
|
||||
scriptSig template.'''
|
||||
@ -18,7 +18,7 @@ log = lib.logger.get_logger('coinbasetx')
|
||||
|
||||
def __init__(self, timestamper, coinbaser, value, flags, height, data):
|
||||
super(CoinbaseTransactionPOW, self).__init__()
|
||||
log.debug("Got to CoinBaseTX")
|
||||
log.debug("Got to CoinBaseTX")
|
||||
#self.extranonce = 0
|
||||
|
||||
if len(self.extranonce_placeholder) != self.extranonce_size:
|
||||
@ -54,7 +54,7 @@ log = lib.logger.get_logger('coinbasetx')
|
||||
(part1, part2) = self.vin[0]._scriptSig_template
|
||||
self.vin[0].scriptSig = part1 + extranonce + part2
|
||||
#elif settings.COINDAEMON_Reward == 'POS':
|
||||
class CoinbaseTransactionPOS(halfnode.CTransaction):
|
||||
class CoinbaseTransactionPOS(halfnode.CTransaction):
|
||||
'''Construct special transaction used for coinbase tx.
|
||||
It also implements quick serialization using pre-cached
|
||||
scriptSig template.'''
|
||||
@ -102,7 +102,7 @@ log = lib.logger.get_logger('coinbasetx')
|
||||
(part1, part2) = self.vin[0]._scriptSig_template
|
||||
self.vin[0].scriptSig = part1 + extranonce + part2
|
||||
#else:
|
||||
class CoinbaseTransaction(halfnode.CTransaction):
|
||||
class CoinbaseTransaction(halfnode.CTransaction):
|
||||
'''Construct special transaction used for coinbase tx.
|
||||
It also implements quick serialization using pre-cached
|
||||
scriptSig template.'''
|
||||
@ -113,7 +113,7 @@ log = lib.logger.get_logger('coinbasetx')
|
||||
|
||||
def __init__(self, timestamper, coinbaser, value, flags, height, data, ntime):
|
||||
super(CoinbaseTransaction, self).__init__()
|
||||
log.debug("Got to CoinBaseTX")
|
||||
log.debug("Got to CoinBaseTX")
|
||||
#self.extranonce = 0
|
||||
|
||||
if len(self.extranonce_placeholder) != self.extranonce_size:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user