diff --git a/README.md b/README.md index 24f0686..e4984f9 100644 --- a/README.md +++ b/README.md @@ -375,7 +375,7 @@ curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "pa **Stop** ```bash -ppcoind stop +vertcoin-cli stop ``` ## Navcoin diff --git a/api/rpc_ethereum.py b/api/rpc_ethereum.py index 5db1dfe..c0e2aee 100644 --- a/api/rpc_ethereum.py +++ b/api/rpc_ethereum.py @@ -2,6 +2,7 @@ from web3 import KeepAliveRPCProvider from glob import glob from os.path import expanduser +from time import sleep class Ethereum_like_wallet(): def __init__(self, name, parser): @@ -16,10 +17,12 @@ def __init__(self, name, parser): # Don't forget to launch geth of geth-classic self.web3 = Web3(KeepAliveRPCProvider(host=self.HOST, port=self.PORT)) # connect to RPC - def get_address(self, passphase): + def get_address(self, passphase, sleep_sec=0): + sleep(sleep_sec) return self.web3.personal.newAccount(passphase) - def get_keystore_file(self, address): + def get_keystore_file(self, address, sleep_sec=0): + sleep(sleep_sec) cropped_address = address.split('0x')[1] keystore_file_path = glob('/'.join([self.ethereum_path, 'keystore/*{}'.format(cropped_address)]))[0]