Skip to content

Commit

Permalink
Merge released refs/heads/master into develop (#1573)
Browse files Browse the repository at this point in the history
* feat: adjust halving miner reward (#1505)

* fix: xudt mainnet hash_type was data1

Signed-off-by: Miles Zhang <[email protected]>

---------

Signed-off-by: Miles Zhang <[email protected]>
Co-authored-by: Miles Zhang <[email protected]>
Co-authored-by: NanZhang <[email protected]>
  • Loading branch information
3 people authored Jan 16, 2024
1 parent a8fa7ac commit 9b711fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/utils/ckb_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,8 @@ def self.cell_type(type_script, output_data)
[
CkbSync::Api.instance.spore_cluster_code_hash,
*CkbSync::Api.instance.spore_cell_code_hashes,
].include?(type_script&.code_hash) && type_script&.hash_type == "data1"
].include?(type_script&.code_hash) && type_script&.hash_type == "data1" ||
CkbSync::Api.instance.mode == CKB::MODE::MAINNET && [CkbSync::Api.instance.xudt_code_hash].include?(type_script&.code_hash) && type_script&.hash_type == "data1"

case type_script&.code_hash
when Settings.dao_code_hash, Settings.dao_type_hash
Expand Down

0 comments on commit 9b711fb

Please sign in to comment.