changed reward value,added meta,removed reward chk
This commit is contained in:
parent
1e6bbbbbce
commit
bc5926f235
@ -5,7 +5,7 @@ from cryptography.hazmat.backends import default_backend
|
||||
|
||||
import random
|
||||
|
||||
REWARD_VALUE = 25.0
|
||||
REWARD_VALUE = 50.0
|
||||
leading_zeros = 2
|
||||
next_char_limit = 20
|
||||
|
||||
@ -13,6 +13,7 @@ class TxBlock (CBlock):
|
||||
|
||||
def __init__(self, previousBlock):
|
||||
self.nonce = "A random nonce"
|
||||
self.metadata = {}
|
||||
self.time = None
|
||||
self.date = None
|
||||
super(TxBlock, self).__init__([], previousBlock)
|
||||
@ -41,12 +42,12 @@ class TxBlock (CBlock):
|
||||
if not self.good_nonce():
|
||||
return False
|
||||
|
||||
total_in, total_out = self.__count_totals()
|
||||
# total_in, total_out = self.__count_totals()
|
||||
|
||||
Tx_Balance = round(total_out - total_in, 10)
|
||||
|
||||
if Tx_Balance > REWARD_VALUE:
|
||||
return False
|
||||
# Tx_Balance = round(total_out - total_in, 10)
|
||||
# print("Tx_Balance: ", Tx_Balance)
|
||||
# if Tx_Balance > REWARD_VALUE:
|
||||
# return False
|
||||
return True
|
||||
|
||||
def good_nonce(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user