Skip to content
This repository has been archived by the owner on May 6, 2023. It is now read-only.

Commit

Permalink
version bump.
Browse files Browse the repository at this point in the history
  • Loading branch information
peerchemist committed Jan 18, 2019
1 parent 9dedb34 commit e313e2b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions peercoin_rpc/peercoin_rpc.py
Expand Up @@ -99,16 +99,23 @@ def batch(self, reqs):
### general syntax is req($method, [array_of_parameters])

def getinfo(self):
"""return getinfo from ppcoind"""
"""return getinfo from peercoind"""
return self.req("getinfo")

def walletpassphrase(self, passphrase, timeout=99999999, mint_only=True):
'''used to unlock wallet for minting'''
return self.req("walletpassphrase", [passphrase, timeout, mint_only])

def getblock(self, blockhash):
def getblock(self, blockhash, decode=False):
'''returns detail block info.'''
return self.req("getblock", [blockhash])

if not decode:
decode = "false"

return self.req("getblock", [blockhash, decode])

else:
return self.req("getblock", [blockhash])

def getblockcount(self):
'''Retrieve last block index'''
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -17,7 +17,7 @@
long_description = f.read()

setup(name='peercoin_rpc',
version='0.59',
version='0.60',
description='Library to communicate with peercoin daemon via JSON-RPC protocol.',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit e313e2b

Please sign in to comment.