Skip to content

Commit

Permalink
Merge pull request #974 from cyyber/master
Browse files Browse the repository at this point in the history
Genesis Headerhash Updated
  • Loading branch information
cyyber authored Feb 26, 2018
2 parents afd0157 + 3c057b2 commit b45410d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions qrl/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def __init__(self):

self.version = version
self.required_version = '0.0.'
self.genesis_prev_headerhash = b'The Sharp Blade'
self.genesis_prev_headerhash = b'Feersum Endjinn'

################################################################
# Warning: Don't change following configuration. #
Expand Down Expand Up @@ -152,7 +152,7 @@ def __init__(self):
self.slave_dat_filename = 'slave.qrl'
self.banned_peers_filename = 'banned_peers.qrl'

self.genesis_timestamp = 1517695543
self.genesis_timestamp = 1519600074

# ======================================
# DIFFICULTY CONTROLLER
Expand Down
8 changes: 4 additions & 4 deletions tests/core/test_ChainManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def test_orphan_block(self):
alice_xmss = get_alice_xmss()

with mock.patch('qrl.core.misc.ntp.getTime') as time_mock:
time_mock.return_value = 1517696848 # Very high to get an easy difficulty
time_mock.return_value = 1519601174 # Very high to get an easy difficulty
block_1 = Block.create(block_number=1,
prevblock_headerhash=genesis_block.headerhash,
transactions=[],
Expand All @@ -206,7 +206,7 @@ def test_orphan_block(self):
bob_xmss = get_bob_xmss()

with mock.patch('qrl.core.misc.ntp.getTime') as time_mock:
time_mock.return_value = 1517696848 + devconfig.minimum_minting_delay * 2
time_mock.return_value = 1519601174 + devconfig.minimum_minting_delay * 2
block = Block.create(block_number=1,
prevblock_headerhash=genesis_block.headerhash,
transactions=[],
Expand All @@ -219,14 +219,14 @@ def test_orphan_block(self):
block.set_mining_nonce(block.mining_nonce + 1)

with mock.patch('qrl.core.misc.ntp.getTime') as time_mock:
time_mock.return_value = 1517696848 + devconfig.minimum_minting_delay * 3
time_mock.return_value = 1519601174 + devconfig.minimum_minting_delay * 3
block_2 = Block.create(block_number=2,
prevblock_headerhash=block.headerhash,
transactions=[],
signing_xmss=bob_xmss,
master_address=bob_xmss.address,
nonce=2)
block_2.set_mining_nonce(17)
block_2.set_mining_nonce(10)

result = chain_manager.add_block(block_2)
self.assertTrue(result)
Expand Down

0 comments on commit b45410d

Please sign in to comment.