projects
/
rust-lightning
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
beebc85
)
Move import to global
author
Matt Corallo
<git@bluematt.me>
Tue, 22 Jan 2019 17:11:14 +0000
(12:11 -0500)
committer
Matt Corallo
<git@bluematt.me>
Tue, 22 Jan 2019 17:11:14 +0000
(12:11 -0500)
src/ln/functional_tests.rs
patch
|
blob
|
history
diff --git
a/src/ln/functional_tests.rs
b/src/ln/functional_tests.rs
index 23c988d974d84bbf012870c07d9cafefca4cabdb..3838ea105545cc3cef177f930ea332aaab87e8eb 100644
(file)
--- a/
src/ln/functional_tests.rs
+++ b/
src/ln/functional_tests.rs
@@
-21,6
+21,7
@@
use util::errors::APIError;
use util::logger::Logger;
use util::ser::{Writeable, Writer, ReadableArgs};
use util::config::UserConfig;
use util::logger::Logger;
use util::ser::{Writeable, Writer, ReadableArgs};
use util::config::UserConfig;
+use util::rng;
use bitcoin::util::hash::{BitcoinHash, Sha256dHash};
use bitcoin::util::bip143;
use bitcoin::util::hash::{BitcoinHash, Sha256dHash};
use bitcoin::util::bip143;
@@
-6767,7
+6768,6
@@
fn test_update_add_htlc_bolt2_receiver_sender_can_afford_amount_sent() {
#[test]
fn test_update_add_htlc_bolt2_receiver_check_max_htlc_limit() {
#[test]
fn test_update_add_htlc_bolt2_receiver_check_max_htlc_limit() {
- use util::rng;
let secp_ctx = Secp256k1::new();
//BOLT 2 Requirement: if a sending node adds more than its max_accepted_htlcs HTLCs to its local commitment transaction: SHOULD fail the channel
let secp_ctx = Secp256k1::new();
//BOLT 2 Requirement: if a sending node adds more than its max_accepted_htlcs HTLCs to its local commitment transaction: SHOULD fail the channel