From e749ec22fab1a68b951017c675d0c51c28cbadcd Mon Sep 17 00:00:00 2001 From: Gijs Van Laer Date: Fri, 18 Oct 2019 10:17:40 -0400 Subject: [PATCH] channel_id: fix bolt_test --- examples/bolt_test.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/bolt_test.rs b/examples/bolt_test.rs index 9c3b557..1dceb12 100644 --- a/examples/bolt_test.rs +++ b/examples/bolt_test.rs @@ -67,9 +67,9 @@ fn main() { println!(">> Time to generate proof for establish: {} ms", est_time); // obtain close token for closing out channel - let pk_h = hash_pubkey_to_fr::(&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, - &pk_h, b0_customer, b0_merchant, &merch_state); + &channel_id, b0_customer, b0_merchant, &merch_state); let close_token= match option { Ok(n) => n.unwrap(), Err(e) => panic!("Failed - bidirectional::establish_merchant_issue_close_token(): {}", e)