Skip to content

Commit

Permalink
Fluffy: Fix state validation issue causing portal hive test failure (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
bhartnett authored Oct 12, 2024
1 parent 6e114dc commit 9db31ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions fluffy/docs/the_fluffy_book/docs/fluffy-with-portal-hive.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Fluffy with Portal-hive
# Fluffy with Portal hive

Fluffy is one of the Portal clients that is being tested with [hive](https://github.com/ethereum/hive).

Expand Down Expand Up @@ -39,7 +39,7 @@ create a local development docker image for Fluffy.

To do that follow next steps:

1) Clone and build portal-hive, see above.
1) Clone and build hive, see above.

2) Build the local development Docker image using the following command:
```
Expand All @@ -49,7 +49,7 @@ docker build --tag fluffy-dev --file ./fluffy/tools/docker/Dockerfile.portalhive
3) Modify the `FROM` tag in the portal-hive `Dockerfile` of fluffy at
`portal-hive/clients/fluffy/Dockerfile` to use the image that was buid in step 2.
4) Run the tests as [usually](fluffy-with-portal-hive.md/#run-the-hive-tests-locally).
4) Run the tests as [usual](fluffy-with-portal-hive.md/#run-the-hive-tests-locally).
!!! warning
The `./vendors` dir is dockerignored and cached. If you have to make local
Expand Down
6 changes: 3 additions & 3 deletions fluffy/network/state/state_validation.nim
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,13 @@ func validateRetrieval*(
raiseAssert("ContentKey contentType: unused")
of accountTrieNode:
let retrieval = ?AccountTrieNodeRetrieval.decode(contentBytes)
?validateRetrieval(key.accountTrieNodeKey, retrieval)
validateRetrieval(key.accountTrieNodeKey, retrieval)
of contractTrieNode:
let retrieval = ?ContractTrieNodeRetrieval.decode(contentBytes)
?validateRetrieval(key.contractTrieNodeKey, retrieval)
validateRetrieval(key.contractTrieNodeKey, retrieval)
of contractCode:
let retrieval = ?ContractCodeRetrieval.decode(contentBytes)
?validateRetrieval(key.contractCodeKey, retrieval)
validateRetrieval(key.contractCodeKey, retrieval)

func validateOfferGetValue*(
trustedStateRoot: Opt[Hash32], key: ContentKey, contentBytes: seq[byte]
Expand Down

0 comments on commit 9db31ac

Please sign in to comment.