Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crypto/networks/mainnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class Mainnet(AbstractNetwork):
def chain_id(self):
return 10000
return 11811

def epoch(self):
return '2017-03-21T13:00:00.000Z'
Expand Down
2 changes: 1 addition & 1 deletion crypto/networks/testnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class Testnet(AbstractNetwork):
def chain_id(self):
return 10000
return 11812

def epoch(self):
return '2017-03-21T13:00:00.000Z'
Expand Down
6 changes: 3 additions & 3 deletions tests/configuration/test_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ def chain_id(self):

def test_get_network():
result = Network.get_network()
assert result.chain_id() == 10000
assert result.chain_id() == 11812

def test_set_network():
# mainnet
Network.set_network(Mainnet())
result = Network.get_network()
assert result.wif() == 'ba'
assert result.chain_id() == 10000
assert result.chain_id() == 11811

# testnet
Network.set_network(Testnet())
result = Network.get_network()
assert result.wif() == 'ba'
assert result.chain_id() == 10000
assert result.chain_id() == 11812

Network.set_network(Testnet()) # set back to Testnet so other tests don't fail

Expand Down