ethereum / glados

Portal network monitoring application.
65 stars 30 forks source link

fix: decode account trie node values correctly #335

Closed mrferris closed 3 weeks ago

mrferris commented 3 weeks ago

State audits are failing due to

[2024-10-31T15:58:27Z ERROR glados_audit::state] Error during state audit. err=Error decoding node while walking trie: InvalidData content_key=AccountTrieNodeKey { path: Nibbles { nibbles: [] }, node_hash: 0x7f485a9dd816bcbfa98f6fa2334af80fabc71ac14a605685bde325c9eb1b5f9e }

This was happening due to the usage of ethportal_api::EncodedTrieNode instead of StateContentValue::decode as is done within trin: https://github.com/ethereum/trin/blob/238e0b0b448f39409c34c8017c10f8a4212daee7/rpc/src/evm_state.rs#L169