X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Fchain%2Ftransaction.rs;h=c4917313f2988045a79c656945f76ddaffb75398;hb=af69fae97bcfeb3d9b3b4b84d37240f45e37bb85;hp=33b9c7244a37d1ad13adedda973c70a23c40f10a;hpb=ea4ccf63c7b8a8af5107c536bb6ab01ee04cbdc4;p=rust-lightning diff --git a/lightning/src/chain/transaction.rs b/lightning/src/chain/transaction.rs index 33b9c724..c4917313 100644 --- a/lightning/src/chain/transaction.rs +++ b/lightning/src/chain/transaction.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + //! Contains simple structs describing parts of transactions on the chain. use bitcoin::hash_types::Txid; @@ -16,11 +25,6 @@ pub struct OutPoint { } impl OutPoint { - /// Creates a new `OutPoint` from the txid and the index. - pub fn new(txid: Txid, index: u16) -> OutPoint { - OutPoint { txid, index } - } - /// Convert an `OutPoint` to a lightning channel id. pub fn to_channel_id(&self) -> [u8; 32] { let mut res = [0; 32];