Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "pa
**Stop**

```bash
ppcoind stop
vertcoin-cli stop
```

## Navcoin
Expand Down
7 changes: 5 additions & 2 deletions api/rpc_ethereum.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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]

Expand Down