nervosnetwork/ckb-demo-ruby

miner address incorrect

Closed this issue · 3 comments

As mentioned in the README

miner = Ckb::Wallet.from_hex(Ckb::Api.new, "e79f3207ea4980b7fed79956d5934249ceac4751a4fae01a0f7c4a96884bc4e3")

expect miner.address to be 0xcf7294651a9e2033243b04cfd3fa35097d56b811824691a75cd29d50ac23720a, but 6c5b2cd24ce7cbc16ff368d116294b3c8e5e4f33197900396e9a35d52d8c0f83" received.

A few things to check:

  1. Have latest argv_source_entry binary (download, don't build it yourself).
  2. Update your CKB node config to have 0xd7abc1407eb07d334fea86ef0e9b12b2273833137327c2a53f2d8ba1be1e4d85 0xcf7294651a9e2033243b04cfd3fa35097d56b811824691a75cd29d50ac23720a as miner type hash.
  3. Get latest CKB source code from develop HEAD and cargo build it.
  • use latest argv_source_entry
  • update ckb and set 0xcf7294651a9e2033243b04cfd3fa35097d56b811824691a75cd29d50ac23720a to miner.type_hash
  • build again

still get 0x6c5b2cd24ce7cbc16ff368d116294b3c8e5e4f33197900396e9a35d52d8c0f83 from pk of e79f3207ea4980b7fed79956d5934249ceac4751a4fae01a0f7c4a96884bc4e3

@Keith-CY Looks like your type hash is correct. I'll double check and update.