Skip to content

Commit

Permalink
[docs]: add SCALE codec troubleshooting section (hyperledger-iroha#428)
Browse files Browse the repository at this point in the history
Signed-off-by: 6r1d <[email protected]>
  • Loading branch information
6r1d committed Nov 9, 2023
1 parent b689fb6 commit a471213
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/guide/troubleshooting/configuration-issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,22 @@ 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 the SCALE codec errors when there's a discrepancy
between how the data is structured on the client side and the peer side.

In case you're using `iroha_client_cli` and rebuild it inside the Iroha
project directory root:

* `rm ./target/debug/iroha_client_cli ./target/release/iroha_client_cli`
* `cargo build -p iroha_client_cli`

The reason to do so is that it's easy to confuse the builds in
the `debug` and `release` directories and keep using an old build.

Alternatively, please compare the output of
`/target/debug/iroha_client_cli --version` with a version in the Iroha log.
You need to view the part at which the Iroha peer starts.
This will allow you to see whether the versions match.

0 comments on commit a471213

Please sign in to comment.