Skip to content

Commit

Permalink
Changes for EMC2
Browse files Browse the repository at this point in the history
  • Loading branch information
aszu committed Mar 1, 2014
1 parent c619e59 commit 0402833
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions conf/config_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,6 @@
MEMCACHE_TIMEOUT = 900 # Key timeout
MEMCACHE_PREFIX = "stratum_" # Prefix for keys

#### Extra CancerCureCoin Settings ####
EXTRA_DONATION = 0 # How many additonal units of CCC should be donated to the charity address.
#### Extra EMC2 Settings ####
EXTRA_DONATION = 0 # How many additonal units of EMC2 should be donated to the charity address.

2 changes: 1 addition & 1 deletion lib/coinbasetx.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self, timestamper, coinbaser, value, charity_value, flags, height,

tx_in.scriptSig = tx_in._scriptSig_template[0] + self.extranonce_placeholder + tx_in._scriptSig_template[1]

# Cancercoin Charity Address Requirement
# EMC2 Charity Address Requirement

charity_value += int(settings.EXTRA_DONATION)
if charity_value > value:
Expand Down
2 changes: 1 addition & 1 deletion lib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,4 +225,4 @@ def script_to_pubkey(key):
return b'\x21' + key + b'\xac'

def getCharityScript():
return b'\x76\xa9\x14' + binascii.unhexlify("1864597a1e6f7e83555b4ec5913d455f4a5002a5") + b'\x88\xac';
return b'\x76\xa9\x14' + binascii.unhexlify("1cec44c9f9b769ae08ebf9d694c7611a16edf615") + b'\x88\xac';

0 comments on commit 0402833

Please sign in to comment.