autonity / aut

A command-line RPC client for Autonity
MIT License
11 stars 10 forks source link

aut validator info throws OverflowError: Python int too large to convert to C ssize_t #130

Closed DAICers closed 8 months ago

DAICers commented 8 months ago

Bug Trying to call the aut validator info --validator 0x31870f96212787D181B3B2771F58AF2BeD0019Aa throws OverflowError: Python int too large to convert to C ssize_t.

I think the bug is probably located in autonity.py (https://github.com/autonity/aut/blob/c033d3245b344ba959c6a55a0eacb60afbd8a594/aut/commands/validator.py#L62)

Output

aut validator info --validator 0x31870f96212787D181B3B2771F58AF2BeD0019Aa
OverflowError: Python int too large to convert to C ssize_t

aut version aut --version aut, version 0.2.0

aiman commented 8 months ago

You need to use the latest build of v0.3.x, which is currently development build v0.3.0.dev4: https://github.com/autonity/aut/releases/tag/v0.3.0.dev4

I was not able to reproduce the issue with v0.3.0.dev4, rather I get:

{
  "treasury": "0x821BC352E77D885906B47001863f75e15C114f70",
  "node_address": "0x31870f96212787D181B3B2771F58AF2BeD0019Aa",
  "oracle_address": "0x7C056299014D2F6f2e506ef1A4F89c94AAca004e",
  "enode": "enode://74a4f767ad2f3f607a2db06732b44e6c61a68cae1959b331c18aea6256aae16bded31ba40dd85dcc4d719baaeb29f918726d19fa51b5d8174b27da0d7593e19b@34.142.33.89:30303",
  "commission_rate": 1000,
  "bonded_stake": 25010100000000000000000000,
  "unbonding_stake": 0,
  "unbonding_shares": 0,
  "self_bonded_stake": 10000000000000000000000,
  "self_unbonding_stake": 0,
  "self_unbonding_shares": 0,
  "self_unbonding_stake_locked": 0,
  "liquid_contract": "0x109F93893aF4C4b0afC7A9e97B59991260F98313",
  "liquid_supply": 25000100000000000000000000,
  "registration_block": 0,
  "total_slashed": 0,
  "jail_release_block": 0,
  "provable_fault_count": 0,
  "state": 0
}

Please upgrade and re-open this issue if the problem persists.