-
Notifications
You must be signed in to change notification settings - Fork 51
Change the definition of the asset type #1164
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sgkim126
reviewed
Jan 23, 2019
992bef2
to
3aede75
Compare
f2877bb
to
97d520c
Compare
Now passed all tests in my local environment. |
sgkim126
requested changes
Jan 23, 2019
from_transaction_hash_with_shard_id is removed because from_hash~ includes it.
97d520c
to
70bb896
Compare
Old: (H256 of tracker of mint tx) + (shard id) New: H160 of tracker of mint tx only. shard_id field is added to each struct which has asset_type field.
The type of the asset type is changed to H160, and the shard ID is split from the asset type.
From AssetOutPoint/AssetTransferInput/AssetTransferOutput. shard_id field is already public, so there's no reason to retain those methods.
The type of the asset type is changed to H160, and the shard ID is split from the asset type.
The type of the asset type is changed to H160, and the shard ID is split from the asset type.
70bb896
to
b302148
Compare
sgkim126
approved these changes
Jan 24, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves: #1148 / Resolves: #1166
Old: (H256 of tracker of mint tx) + (shard id)
New: H160 of tracker of mint tx only.
AssetSchemeAddress
was exactly same as the asset type in the old definition.From the new definition,
AssetSchemeAddress
is calculated from the shard id and the blake256 hash of the asset type.shard_id
field is added to each struct which hasasset_type
field.