projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reformat `channel_state.rs` to match rustfmt requirements
[rust-lightning]
/
lightning
/
src
/
ln
/
async_signer_tests.rs
diff --git
a/lightning/src/ln/async_signer_tests.rs
b/lightning/src/ln/async_signer_tests.rs
index 613df570d4e3bf40051d25e59a5d6fa45823dbdb..fbcf13fb6de00c2705acae0ed007edbf45bb4add 100644
(file)
--- a/
lightning/src/ln/async_signer_tests.rs
+++ b/
lightning/src/ln/async_signer_tests.rs
@@
-12,6
+12,7
@@
use bitcoin::{Transaction, TxOut, TxIn, Amount};
use bitcoin::blockdata::locktime::absolute::LockTime;
use bitcoin::{Transaction, TxOut, TxIn, Amount};
use bitcoin::blockdata::locktime::absolute::LockTime;
+use bitcoin::transaction::Version;
use crate::chain::channelmonitor::LATENCY_GRACE_PERIOD_BLOCKS;
use crate::events::bump_transaction::WalletSource;
use crate::chain::channelmonitor::LATENCY_GRACE_PERIOD_BLOCKS;
use crate::events::bump_transaction::WalletSource;
@@
-344,12
+345,12
@@
fn do_test_async_holder_signatures(anchors: bool, remote_commitment: bool) {
let closing_node = if remote_commitment { &nodes[1] } else { &nodes[0] };
let coinbase_tx = Transaction {
let closing_node = if remote_commitment { &nodes[1] } else { &nodes[0] };
let coinbase_tx = Transaction {
- version:
2
,
+ version:
Version::TWO
,
lock_time: LockTime::ZERO,
input: vec![TxIn { ..Default::default() }],
output: vec![
TxOut {
lock_time: LockTime::ZERO,
input: vec![TxIn { ..Default::default() }],
output: vec![
TxOut {
- value: Amount::ONE_BTC
.to_sat()
,
+ value: Amount::ONE_BTC,
script_pubkey: closing_node.wallet_source.get_change_script().unwrap(),
},
],
script_pubkey: closing_node.wallet_source.get_change_script().unwrap(),
},
],