From e171409278a5ae8fab3284d407d4f3e002a6db8b Mon Sep 17 00:00:00 2001 From: pavlovdog Date: Sun, 13 Aug 2017 15:17:38 +0300 Subject: [PATCH 1/3] Add sleep parameter --- api/rpc_ethereum.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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] From 628f5b5bd355ef225c6fa2a198594dc752886269 Mon Sep 17 00:00:00 2001 From: AlievMagomed Date: Tue, 15 Aug 2017 17:07:12 +0300 Subject: [PATCH 2/3] Readme update. Small mistake with vertcoin stop command. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 9e2129fd8c7b1ed9243f62358bc212eed1dbc8db Mon Sep 17 00:00:00 2001 From: AlievMagomed Date: Tue, 15 Aug 2017 17:07:12 +0300 Subject: [PATCH 3/3] Readme update. Small mistake with vertcoin stop command. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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