Skip to content
This repository has been archived by the owner on Feb 25, 2019. It is now read-only.

Commit

Permalink
Fixed default seed configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ellmetha committed Mar 4, 2018
1 parent 25f0ef2 commit 88d62c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions neojsonrpc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ def __init__(self, host=None, port=None, tls=False, http_max_retries=None):
@classmethod
def for_mainnet(cls):
""" Creates a ``Client`` instance for use with the NEO Main Net. """
return cls(host='seed3.neo.org', port=10331, tls=True)
return cls(host='seed1.cityofzion.io', port=8080)

@classmethod
def for_testnet(cls):
""" Creates a ``Client`` instance for use with the NEO Test Net. """
return cls(host='seed3.neo.org', port=20331, tls=True)
return cls(host='test1.cityofzion.io', port=8880)

def contract(self, script_hash):
""" Returns a ``ContractWrapper`` instance allowing to easily invoke contract functions.
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def test_can_return_the_transaction_ouyput_information_associated_with_a_hash_an
assert txout is None

def test_can_return_node_peers(self):
client = Client(host='52.15.48.60', port=8880)
client = Client.for_testnet()
peers = client.get_peers()
assert peers

Expand Down

0 comments on commit 88d62c1

Please sign in to comment.