channel_id: fix bolt_test
This commit is contained in:
parent
93789cd49f
commit
e749ec22fa
|
@ -67,9 +67,9 @@ fn main() {
|
||||||
println!(">> Time to generate proof for establish: {} ms", est_time);
|
println!(">> Time to generate proof for establish: {} ms", est_time);
|
||||||
|
|
||||||
// obtain close token for closing out channel
|
// obtain close token for closing out channel
|
||||||
let pk_h = hash_pubkey_to_fr::<Bls12>(&cust_state.pk_c);
|
let channel_id = channel_token.compute_channel_id();
|
||||||
let option = bidirectional::establish_merchant_issue_close_token(rng, &channel_state, &com, &com_proof,
|
let option = bidirectional::establish_merchant_issue_close_token(rng, &channel_state, &com, &com_proof,
|
||||||
&pk_h, b0_customer, b0_merchant, &merch_state);
|
&channel_id, b0_customer, b0_merchant, &merch_state);
|
||||||
let close_token= match option {
|
let close_token= match option {
|
||||||
Ok(n) => n.unwrap(),
|
Ok(n) => n.unwrap(),
|
||||||
Err(e) => panic!("Failed - bidirectional::establish_merchant_issue_close_token(): {}", e)
|
Err(e) => panic!("Failed - bidirectional::establish_merchant_issue_close_token(): {}", e)
|
||||||
|
|
Loading…
Reference in New Issue