Parity-ethereum: eth_call 'pending' state error

Created on 5 Oct 2018  路  6Comments  路  Source: openethereum/parity-ethereum

  • Parity Ethereum version: v2.0.5-stable
  • Operating system: Ubuntu 16.04
  • Installation: one-line installer
  • Fully synchronized: no
  • Network: ethereum
  • Restarted: no

I run parity in a default mode (--pruning=fast) and want to find out my balance on erc20-contract. I run RPC-command:

{'jsonrpc': '2.0',
 'id': 330186953061876261,
 'method': 'eth_call',
 'params': [{'to': '0x0affa06e7fbe5bc9a764c979aa66e8256a631f02',
             'data': '0x70a08231000000000000000000000000948f20d662dc17a4ddc16abda082c2b49e2295ea'},
 'pending']}  

which (I believe) used to work with previous versions of Parity.
I receive the following response:

{'jsonrpc': '2.0',
 'error': {'code': -32000,
           'message': 'This request is not supported because your node is running with state pruning. Run with --pruning=archive.'},
 'id': 330186953061876261}

I don't get it: why I can't perform such a request with --pruning=fast. I need a pending state, not the historical data. BTW, everything is Ok with state "latest".

F3-annoyance 馃挬 M6-rpcapi 馃摚 hacktoberfest

All 6 comments

I believe it's something to do with this code:

https://github.com/paritytech/parity-ethereum/blob/7ba5652bea42f7a3bde9e8bdf917154c9ae11906/rpc/src/v1/impls/parity.rs#L452

@tomusdrw mentioned that elsewhere in the code we fallback to latest if pending isn't available; the error code here appears to be misplaced 馃槄

This bug still exists in Parity 2.2.9 and 2.3.2

We should either fallback to latest consistently or the error message should be improved.
To produce pending block please run with --force-sealing.

Thankyou @tomusdrw

This bug still exists in v2.5.9

Closed by #11127.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tzapu picture tzapu  路  3Comments

jacogr picture jacogr  路  4Comments

jordipainan picture jordipainan  路  3Comments

bryaan picture bryaan  路  3Comments

mr-older picture mr-older  路  3Comments