Skip to content

Commit

Permalink
Merge branch 'release/0.1.28'
Browse files Browse the repository at this point in the history
  • Loading branch information
xeroc committed Jun 26, 2018
2 parents 3a325f0 + fafc001 commit 5985d5a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion peerplays/peerplays.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ def create_account(
"fee": {"amount": 0, "asset_id": "1.3.0"},
"registrar": registrar["id"],
"referrer": referrer["id"],
"referrer_percent": referrer_percent * 100,
"referrer_percent": int(referrer_percent * 100),
"name": account_name,
'owner': {'account_auths': owner_accounts_authority,
'key_auths': owner_key_authority,
Expand Down
2 changes: 1 addition & 1 deletion peerplays/transactionbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def __init__(
else:
self._require_reconstruction = True
self.set_fee_asset(kwargs.get("fee_asset", None))
self.set_expiration(kwargs.get("expiration", 30))
self.set_expiration(kwargs.get("expiration", self.blockchain.expiration) or 30)

def set_expiration(self, p):
self.expiration = p
Expand Down
6 changes: 6 additions & 0 deletions peerplaysapi/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ def __init__(self,
self.rpc.__init__(self, urls, **kwargs)
self.chain_params = self.get_network()

def register_apis(self):
self.login("", "", api_id=1)
self.api_id["database"] = self.database(api_id=1)
self.api_id["history"] = self.history(api_id=1)
self.api_id["network_broadcast"] = self.network_broadcast(api_id=1)

@property
def rpc(self):
if isinstance(self._urls, (list, set)):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
ascii = codecs.lookup('ascii')
codecs.register(lambda name, enc=ascii: {True: enc}.get(name == 'mbcs'))

VERSION = '0.1.27'
VERSION = '0.1.28'

setup(
name='peerplays',
Expand Down

0 comments on commit 5985d5a

Please sign in to comment.