internet-sicherheit / ethereum-cache-creator

GNU General Public License v3.0
0 stars 0 forks source link

Get data out of ethereum blockchain using web3j #4

Closed beeshot closed 4 years ago

Mschnuff commented 4 years ago

got a weird error with nonce:

Caused by: org.web3j.exceptions.MessageDecodingException: Value must be in format 0x[1-9]+[0-9]* or 0x0
        at org.web3j.utils.Numeric.decodeQuantity(Numeric.java:43)
        at org.web3j.protocol.core.methods.response.EthBlock$Block.getNonce(EthBlock.java:162)
kiview commented 4 years ago

How is this error related to this issue? A bit more context please, or create a new bug issue if this is a reproducible bug that needs fixing.

Mschnuff commented 4 years ago

i suspect i get this error cus even thou nonce exists in ethereum in general it is not used in bloxberg.

kiview commented 4 years ago

Yes, because nonce is AFAIK part of PoW algorithms, which are not used in bloxberg. This issue itself seems closed by the code in https://github.com/internet-sicherheit/ethereum-cache-creator/blob/master/src/main/java/de/internetsicherheit/brl/bloxberg/cache/ethereum/BloxbergClient.java#L42-L47

I, therefore, close this issue. Feel free to open more specific issues for this big or missing data.