-
Notifications
You must be signed in to change notification settings - Fork 26
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
[docs]: add SCALE codec troubleshooting section (#428) #429
Changes from all commits
711d914
520815c
87a7695
0e97a0d
c4b2994
9dbdbd6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -96,3 +96,23 @@ account_ either, unless you submit an instruction. | |||||
These sorts of subtle mistakes can be avoided, for example, by | ||||||
deserialising directly from string literals, or by generating a fresh | ||||||
key-pair in places where it makes sense. | ||||||
|
||||||
## SCALE codec errors | ||||||
|
||||||
You may encounter SCALE codec errors when there's a discrepancy | ||||||
between the data structure on the client and the peer sides. | ||||||
|
||||||
It's easy to confuse the builds in the `debug` and `release` directories, | ||||||
and keep using an old build due to this. | ||||||
In case you're using the `iroha_client_cli` and rebuild it inside the Iroha | ||||||
project directory root, use these commands: | ||||||
|
||||||
* `rm ./target/debug/iroha_client_cli ./target/release/iroha_client_cli` | ||||||
* `cargo build -p iroha_client_cli` | ||||||
Comment on lines
+110
to
+111
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should be a code block, not a list There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
Alternatively, please compare the output of | ||||||
`/target/debug/iroha_client_cli --version` with a version in the Iroha log. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
You need to view the part where the Iroha peer starts. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Which part? Provide an example. |
||||||
This will allow you to see whether the versions match. | ||||||
|
||||||
If you are using one of our SDKs, please make sure it is up to date. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It should be not necessarily up to date, but the version of SDK should be compatible with the version of Iroha. In order to check it, it is generally recommended to check for the version in the SDKs readme. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rephrase. SCALE codec errors appear when the versions of the data structures differ between the client and the peer sides.