Skip to content
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

Only ascii alphanumeric strings in tokens after v1 #1283

Merged
merged 2 commits into from
Oct 24, 2023

Conversation

azarovh
Copy link
Member

@azarovh azarovh commented Oct 19, 2023

No description provided.

Copy link
Collaborator

@TheQuantumPhysicist TheQuantumPhysicist left a comment

Choose a reason for hiding this comment

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

Besides that cleanup requirement, this is looking OK.

chainstate/src/detail/tokens/check_utils.rs Outdated Show resolved Hide resolved
test-utils/src/lib.rs Outdated Show resolved Hide resolved
@TheQuantumPhysicist
Copy link
Collaborator

Please don't merge this until I slap another approval. I still have to review it again. I have some doubts.

Copy link
Collaborator

@TheQuantumPhysicist TheQuantumPhysicist left a comment

Choose a reason for hiding this comment

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

Just to ensure it won't be merged by mistake.

Base automatically changed from feat/increase_tokens_supply to master October 23, 2023 20:27
@azarovh azarovh force-pushed the fix/tokens_ascii_alphanumeric branch from 0a4b7a4 to 4604434 Compare October 24, 2023 07:34
let current_height = self
.get_gen_block_index(&prev_block_id)?
.ok_or(CheckBlockTransactionsError::PropertyQueryError(
PropertyQueryError::BlockIndexNotFound(prev_block_id),
Copy link
Collaborator

@TheQuantumPhysicist TheQuantumPhysicist Oct 24, 2023

Choose a reason for hiding this comment

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

Better use the error PrevBlockIndexNotFound. Also, this is not a nonchalante error... this is an invariant broken.

Why not use the function that was made for this anyway? get_previous_block_index_for_check_block()

Copy link
Member Author

Choose a reason for hiding this comment

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

Better use the error PrevBlockIndexNotFound.

Agree, done.

Why not use the function that was made for this anyway?

It returns incompatible Error type. It doesn't do much so I think it's ok to leave it like this.

Copy link
Collaborator

@TheQuantumPhysicist TheQuantumPhysicist left a comment

Choose a reason for hiding this comment

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

Besides that minor thing, I think this is fine.

@azarovh azarovh force-pushed the fix/tokens_ascii_alphanumeric branch from 4604434 to d6b167f Compare October 24, 2023 12:36
@azarovh azarovh merged commit 61dcf2f into master Oct 24, 2023
31 checks passed
@azarovh azarovh deleted the fix/tokens_ascii_alphanumeric branch October 24, 2023 15:09
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.

None yet

5 participants