You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The block hash printed is a byte-reversed copy of transactionHash. It is also different from the block hash displayed on dcrdata (testnet.dcrdata.org). If I copy the block hash shown on dcrdata into the c.walletServiceClient.BlockInfo request, it works as expected. But if I use the value of block hash returned by the package, I get the following error.
rpc error: code = NotFound desc = wallet.BlockInfo: item does not exist: block header
Hashes on the wire are reversed from the way they are shown. The response is the raw bytes. Since you're just printing it with %x, you're not reversing it. Convert it to a chainhash.Hash first with:
Here's a snippet that shows how I'm using the package.
The block hash printed is a byte-reversed copy of
transactionHash
. It is also different from the block hash displayed on dcrdata (testnet.dcrdata.org). If I copy the block hash shown on dcrdata into thec.walletServiceClient.BlockInfo
request, it works as expected. But if I use the value of block hash returned by the package, I get the following error.Package version: github.com/decred/dcrwallet/rpc/walletrpc v0.2.0
The text was updated successfully, but these errors were encountered: