-
Notifications
You must be signed in to change notification settings - Fork 13
Description
After resolving the ssl certificate problem on all of my nodes and successfully being able to connect to them using python-peerplays, I am getting an exception:
peerplays.exceptions.AccountDoesNotExistsException: baxters-sports-witness
This exact, simple code works in python-bitshares, but not in python-peerplays. The only differences I can see is that in bitshares my witness account name has no dashes in it whereas in peerplays it does, and the length of the name is much longer in the failure case. I added the active key for the witness account to the SQLite wallet after pulling it from my active witness wallet using "dump_private_keys". I also verified the key is correct by comparing to what I saved in my key vault.
API = PeerPlays(API_NODES, nobroadcast=False)
print(ACNT) <--- prints correct account name, including dashes
status = Witness(ACNT) <--- this call fails
print(status['signing_key'])
exit(-10)
I also tried this to eliminate issues with private key, length and the dash as possible causes:
# account = Account("taconator\x2Dwitness")
# account = Account("roelandp")
account = Account("init0")
print(account.balances) <-- it printed "[4,359.99946 PPY]"
exit(-10)
All failed except init0. I then tried to verify the chainId using:
print(API.info())
and it printed everything except the chainId (which is 6b6b5f0ce7a36d323768e534f3edb41c6d6332a541a95725b98e28d140850134):
{'recently_missed_count': 0, 'current_witness': '1.6.12', 'last_budget_time': '2018-03-29T23:00:00', 'witness_budget': 321175, 'head_block_number': 8463816, 'id': '2.1.0', 'random': 'e6a71bc39291540dfc3c2011d68144ab8d4561f7', 'time': '2018-03-29T23:38:00', 'recent_slots_filled': '340282366920938463463374607431768211455', 'dynamic_flags': 0, 'next_maintenance_time': '2018-03-30T00:00:00', 'head_block_id': '008125c8681c2396a9a146ba3958d11714fd9b7a', 'last_irreversible_block_num': 8463803, 'current_aslot': 8512624, 'accounts_registered_this_interval': 0}
If I'm doing something wrong (I'm now rather doubtful I am) it is mighty subtle.