This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
[light client] RPC eth_estimateGas
don't behave as in full client
#9535
Labels
Milestone
What is the problem
In the context of a light-client, for example, we want to use the
eth_estimateGas RPC
for anunknown account
and this doesn't work currently because theExecutionProof
always falls and this don't happen infull client
implementation.1 The request batch log is not part of parity, I manually added it which prints out the number of requests and indiviudal request which have not been anwered yet!
Educated Guess
I'm not exactly sure the reason why but I think it is because the actual execution in
full client
seems to boost the actual account balance to execute the transaction successfully (transact_virtual will provide enough funds), https://github.com/paritytech/parity-ethereum/blob/master/ethcore/src/client/client.rs#L1473-#L1545.In the light client
validation
(executed by one or more full nodes) we use are using the actual account balance for validation and should be changed to do same as thefull client
(boost the account balance)!However, in context as a validator, I'm not sure how to distinguish between different executions and it might be better to leave it as it is!
Related files:
full node
)The text was updated successfully, but these errors were encountered: