Skip to content

Conversation

@matejmode
Copy link
Contributor

Description

Add logic of state hash storing into substate db.

Type of change

  • New feature (non-breaking change which adds functionality

@codecov
Copy link

codecov bot commented May 29, 2025

Codecov Report

Attention: Patch coverage is 0% with 43 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
db/state_hash_db.go 0.00% 43 Missing ⚠️

📢 Thoughts on this report? Let us know!

}

func (db *stateHashDB) GetStateHash(number int) (types.Hash, error) {
hex := strconv.FormatUint(uint64(number), 16)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logic is taken over from Aida: block encoding into hex is different from bigEndian encoding we use everywhere else. Maybe we could consider to make a migration to another prefix to unify this.

@matejmode
Copy link
Contributor Author

#53 is doing this instead.

@matejmode matejmode closed this Nov 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants