Skip to content

Commit

Permalink
Merge pull request #1814 from nervosnetwork/testnet
Browse files Browse the repository at this point in the history
Deploy to mainnet
  • Loading branch information
rabbitz authored Apr 23, 2024
2 parents 7813f2c + 2cd80dc commit 2dae3f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/jobs/import_bitcoin_utxo_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ def build_op_returns!(raw_tx, tx, ckb_tx, v_attributes)
script_pubkey = Bitcoin::Script.parse_from_payload(data.htb)
next unless script_pubkey.op_return?

commiment = script_pubkey.op_return_data.bth
unless commiment == CkbUtils.calculate_commitment(ckb_tx.tx_hash)
raise ArgumentError, "Invalid commitment found in the CKB VirtualTx"
end
# commiment = script_pubkey.op_return_data.bth
# unless commiment == CkbUtils.calculate_commitment(ckb_tx.tx_hash)
# raise ArgumentError, "Invalid commitment found in the CKB VirtualTx"
# end

op_return = {
bitcoin_transaction_id: tx.id,
Expand Down

0 comments on commit 2dae3f2

Please sign in to comment.