Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPC #466

Closed
frozeman opened this issue Mar 12, 2015 · 8 comments
Closed

RPC #466

frozeman opened this issue Mar 12, 2015 · 8 comments

Comments

@frozeman
Copy link
Contributor

In this thread i will add a comment per bug, as this are mostly minor issues.

@frozeman
Copy link
Contributor Author

1
eth_accounts returns an empty array and eth_coinbase "0x"

@frozeman
Copy link
Contributor Author

2

  • eth_getBalance
  • eth_newBlockFilter

should return an error when no/wrong parameter(s) are passed like a number instead of HEX etc.

{"error":{"code":-32602,"message":"INVALID_PARAMS: Invalid method parameters (invalid name and/or type)"},"id":2,"jsonrpc":"2.0"}

message can differ, but the code should stay the same

@frozeman
Copy link
Contributor Author

3

  • eth_newBlockFilter
  • eth_newFilter
  • shh_newFilter
  • eth_uninstallFilter
  • shh_uninstallFilter
  • web3_sha3

should return error code -32602, but it returns -32603:

Please return an error as follows:

{"error":{"code":-32602,"message":"INVALID_PARAMS: Invalid method parameters (invalid name and/or type)"},"id":2,"jsonrpc":"2.0"}

@frozeman
Copy link
Contributor Author

4

  • shh_newFilter

returns number not HEX

@frozeman
Copy link
Contributor Author

5
Timeout created filter and auto uninstall them after 10min of no shh_getFilterChanges, eth_getFilterChanges, eth_getFilterLogs or shh_getMessages requests came in.
(prevent filter memory leak)

@frozeman
Copy link
Contributor Author

6
CPP allows reusing of filter IDs, means when i uninstall a filter the id is free again and will be reused for the next installed filter. Im not sure if thats better or worse, please lets discuss this. But imagine if a lot of dapps install filter and uninstall them (or they timeout) the ID number will grow rapidly.

tgerring added a commit that referenced this issue Mar 12, 2015
@tgerring
Copy link
Contributor

With the exception of item 1, I think most of these issues have been addressed.

@frozeman This situation occurs when the accounts have not been initialised. Can we write the tests to WARN when accounts array is empty and coinbase is nil/zero? We should be able to handle these situations without being explicit errors

@obscuren
Copy link
Contributor

Re-open if there any pending issues left with the RPC

jpeletier pushed a commit to epiclabs-io/go-ethereum that referenced this issue Apr 28, 2018
maoueh pushed a commit to streamingfast/go-ethereum that referenced this issue Jan 6, 2023
* initial

* measure

* initial test

* block size debug

* current progress

* debug

* progress

* debug

* it works

* todo

* linters

* clean up

* check for nonce gaps

* clean up

* cr

* cr

* cr

* check tx pool on an error

* stats

* params

* introduce config

* min-max accounts

* debug

* debug

* update

* debug

* skip
tanishqjasoria pushed a commit to tanishqjasoria/go-ethereum that referenced this issue Oct 31, 2023
tanishqjasoria pushed a commit to tanishqjasoria/go-ethereum that referenced this issue Oct 31, 2023
* fix: update worker nextL1MsgIndex for strange errors

* more tests

* bump version

* refactor: add more context to tracing failure (ethereum#466)

* bump version

* bump version
tanishqjasoria pushed a commit to tanishqjasoria/go-ethereum that referenced this issue Sep 3, 2024
* t8n: verkle-genesis

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* review feedback

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* imprv

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* t8n/evm: add new cli command

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* fixes to run conversion fixture

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* t8n/evm: use pre alloc to save code in rawdb

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* vm: fix gas underflow

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* ci: add verkle-genesis filling and consumption

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* ci: update runner

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* ci: fixes

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* ci: use consume direct to run fixtures

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* ci: fixes

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* ci: include 4762

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* ci: add transition tests

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* ci: parallelize running

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* ci: include conversion tests | use matrix. (ethereum#470)

* feat: tweak eest ci (matrix).

* chore: remove prev ci.

* t8n/evm: fix pre-state for forks before verkle

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* t8n: remove EIP6800Transition from forks

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* ci: change execution-spec-tests target branch

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* ci: fill more tests

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* Revert "t8n: remove EIP6800Transition from forks"

This reverts commit 660e2eb.

* ci: use verkle/main branch for tests

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* add todo

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* preimages fixes

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* fix genesis

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* record preimages in genesis commit

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* review feedback

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

---------

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Co-authored-by: spencer <spencer.taylor-brown@ethereum.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants