Skip to content

Commit 1dab234

Browse files
committed
Add a comment addressing invalid address
1 parent 8273f07 commit 1dab234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration_tests_rust.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ use bitcoin::address::NetworkUnchecked;
3434
use bitcoin::hashes::Hash;
3535
use bitcoin::Address;
3636
use bitcoin::Amount;
37-
use lightning_invoice::{Bolt11InvoiceDescription, Description};
3837
use log::LevelFilter;
3938

4039
use std::str::FromStr;
@@ -305,6 +304,7 @@ fn onchain_send_receive() {
305304

306305
let addr_a = node_a.onchain_payment().new_address().unwrap();
307306
let addr_b = node_b.onchain_payment().new_address().unwrap();
307+
// This is a Bitcoin Testnet address. Sending funds to this address from the Regtest network will fail
308308
let static_address = "tb1q0d40e5rta4fty63z64gztf8c3v20cvet6v2jdh";
309309
let unchecked_address = Address::<NetworkUnchecked>::from_str(static_address).unwrap();
310310
let addr_c = unchecked_address.assume_checked();

0 commit comments

Comments
 (0)