Skip to content

Conversation

hyunsikjeong
Copy link
Contributor

@hyunsikjeong hyunsikjeong commented Jan 23, 2019

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 has asset_type field.

@hyunsikjeong hyunsikjeong force-pushed the asset-type-split branch 4 times, most recently from 992bef2 to 3aede75 Compare January 23, 2019 09:40
@hyunsikjeong hyunsikjeong changed the title [WIP] Change the definition of the asset type Change the definition of the asset type Jan 23, 2019
@hyunsikjeong
Copy link
Contributor Author

Now passed all tests in my local environment.

from_transaction_hash_with_shard_id is removed because from_hash~ includes it.
Hyunsik Jeong added 6 commits January 24, 2019 09:49
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.
@sgkim126 sgkim126 removed the do-not-merge Do not merge (for mergify.io) label Jan 24, 2019
@mergify mergify bot merged commit b4e05e8 into CodeChain-io:master Jan 24, 2019
@hyunsikjeong hyunsikjeong deleted the asset-type-split branch January 24, 2019 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants