Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Hexadecimal addresses without 0x in debug_accountRange result #5856

Closed
gumb0 opened this issue Dec 2, 2019 · 2 comments · Fixed by #5866
Closed

Hexadecimal addresses without 0x in debug_accountRange result #5856

gumb0 opened this issue Dec 2, 2019 · 2 comments · Fixed by #5866
Labels

Comments

@gumb0
Copy link
Member

gumb0 commented Dec 2, 2019

{"id":108,"jsonrpc":"2.0","result":{"addressMap":{"9d860e7bb7e6b09b87ab7406933ef2980c19d7d0192d8939cf6dc6908a03305f":"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"},"nextKey":"0000000000000000000000000000000000000000000000000000000000000000"}}

Hashes and addresses in addressMap and nextKey should be prefixed with 0x

@gumb0 gumb0 added the rpc label Dec 2, 2019
@winsvega
Copy link
Contributor

winsvega commented Dec 2, 2019

geth behaviour:


Request: {"jsonrpc":"2.0","method":"debug_accountRange","params":["1", 1, "0x9d860e7bb7e6b09b87ab7406933ef2980c19d7d0192d8939cf6dc6908a03305f", 100],"id":108}
Reply: {"jsonrpc":"2.0","id":108,"result":{"addressMap":{"0x9d860e7bb7e6b09b87ab7406933ef2980c19d7d0192d8939cf6dc6908a03305f":"0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"},"nextKey":"0x0000000000000000000000000000000000000000000000000000000000000000"}}

@winsvega
Copy link
Contributor

winsvega commented Dec 2, 2019

also get_transactionCount differs
aleth:

Request: {"jsonrpc":"2.0","method":"eth_getTransactionCount","params":["0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", "0x1"],"id":18}
Reply: {"jsonrpc":"2.0","id":18,"result":"0x1"}

vs geth

Request: {"jsonrpc":"2.0","method":"eth_getTransactionCount","params":["0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", "0x1"],"id":18}
Reply: {"jsonrpc":"2.0","id":18,"result":1}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants