Skip to content

Add a test proving that orders with token v0 cannot be created no matter what#2060

Merged
ImplOfAnImpl merged 1 commit into
masterfrom
test_token_v0_in_create_order
May 29, 2026
Merged

Add a test proving that orders with token v0 cannot be created no matter what#2060
ImplOfAnImpl merged 1 commit into
masterfrom
test_token_v0_in_create_order

Conversation

@ImplOfAnImpl

Copy link
Copy Markdown
Contributor

We have an annoying typo in transaction verifier - check_tokens_tx checks data.ask() twice and doesn't check data.give(). In this PR I add a test checking that, despite the typo, chainstate will still reject a CreateOrder output with a v0 token. The typo itself will be fixed in a separate PR.

P.S.

  1. In any case, this can only affect testnet, because mainnet never had v0 tokens.
  2. I also added a small TODO to rename some types related to tokens v0.

…ter what. Add a TODO to rename some tokenV0-related types.
@ImplOfAnImpl ImplOfAnImpl marked this pull request as ready for review May 21, 2026 13:03
@ImplOfAnImpl ImplOfAnImpl merged commit fc26e1a into master May 29, 2026
20 checks passed
@ImplOfAnImpl ImplOfAnImpl deleted the test_token_v0_in_create_order branch May 29, 2026 10:12
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