X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Fln%2Fonion_route_tests.rs;h=4bdd234f5aeecb214b24fa73b94d145004625c81;hb=47954e95dff860d2a578f7d9f35f3599ac314926;hp=cfdba07a2f2839af321bddfc1e9f0c5ec26abc63;hpb=c2bbfffb1eb249c2c422cf2e9ccac97a34275f7a;p=rust-lightning diff --git a/lightning/src/ln/onion_route_tests.rs b/lightning/src/ln/onion_route_tests.rs index cfdba07a..4bdd234f 100644 --- a/lightning/src/ln/onion_route_tests.rs +++ b/lightning/src/ln/onion_route_tests.rs @@ -1317,7 +1317,7 @@ fn test_phantom_failure_too_low_cltv() { // Ensure the payment fails with the expected error. let mut error_data = recv_value_msat.to_be_bytes().to_vec(); error_data.extend_from_slice( - &nodes[0].node.best_block.read().unwrap().height().to_be_bytes(), + &nodes[0].node.best_block.read().unwrap().height.to_be_bytes(), ); let mut fail_conditions = PaymentFailedConditions::new() .blamed_scid(phantom_scid) @@ -1447,7 +1447,7 @@ fn test_phantom_failure_too_low_recv_amt() { // Ensure the payment fails with the expected error. let mut error_data = bad_recv_amt_msat.to_be_bytes().to_vec(); - error_data.extend_from_slice(&nodes[1].node.best_block.read().unwrap().height().to_be_bytes()); + error_data.extend_from_slice(&nodes[1].node.best_block.read().unwrap().height.to_be_bytes()); let mut fail_conditions = PaymentFailedConditions::new() .blamed_scid(phantom_scid) .expected_htlc_error_data(0x4000 | 15, &error_data); @@ -1554,7 +1554,7 @@ fn test_phantom_failure_reject_payment() { // Ensure the payment fails with the expected error. let mut error_data = recv_amt_msat.to_be_bytes().to_vec(); - error_data.extend_from_slice(&nodes[1].node.best_block.read().unwrap().height().to_be_bytes()); + error_data.extend_from_slice(&nodes[1].node.best_block.read().unwrap().height.to_be_bytes()); let mut fail_conditions = PaymentFailedConditions::new() .blamed_scid(phantom_scid) .expected_htlc_error_data(0x4000 | 15, &error_data);