@@ -52,8 +52,8 @@ impl TxEntry {
52
52
}
53
53
54
54
// Confirmation height of a transaction or its mempool state:
55
- // https://electrumx-spesmilo .readthedocs.io/en/latest/protocol-methods.html#blockchain-scripthash-get-history
56
- // https://electrumx-spesmilo .readthedocs.io/en/latest/protocol-methods.html#blockchain-scripthash-get-mempool
55
+ // https://electrum-protocol .readthedocs.io/en/latest/protocol-methods.html#blockchain-scripthash-get-history
56
+ // https://electrum-protocol .readthedocs.io/en/latest/protocol-methods.html#blockchain-scripthash-get-mempool
57
57
enum Height {
58
58
Confirmed { height : usize } ,
59
59
Unconfirmed { has_unconfirmed_inputs : bool } ,
@@ -89,8 +89,8 @@ impl std::fmt::Display for Height {
89
89
}
90
90
91
91
// A single history entry:
92
- // https://electrumx-spesmilo .readthedocs.io/en/latest/protocol-methods.html#blockchain-scripthash-get-history
93
- // https://electrumx-spesmilo .readthedocs.io/en/latest/protocol-methods.html#blockchain-scripthash-get-mempool
92
+ // https://electrum-protocol .readthedocs.io/en/latest/protocol-methods.html#blockchain-scripthash-get-history
93
+ // https://electrum-protocol .readthedocs.io/en/latest/protocol-methods.html#blockchain-scripthash-get-mempool
94
94
#[ derive( Serialize ) ]
95
95
pub ( crate ) struct HistoryEntry {
96
96
#[ serde( rename = "tx_hash" ) ]
@@ -105,7 +105,7 @@ pub(crate) struct HistoryEntry {
105
105
106
106
impl HistoryEntry {
107
107
// Hash to compute ScriptHash status, as defined here:
108
- // https://electrumx-spesmilo .readthedocs.io/en/latest/protocol-basics.html#status
108
+ // https://electrum-protocol .readthedocs.io/en/latest/protocol-basics.html#status
109
109
fn hash ( & self , engine : & mut sha256:: HashEngine ) {
110
110
let s = format ! ( "{}:{}:" , self . txid, self . height) ;
111
111
engine. input ( s. as_bytes ( ) ) ;
@@ -141,7 +141,7 @@ pub struct ScriptHashStatus {
141
141
}
142
142
143
143
/// Specific scripthash balance
144
- /// https://electrumx-spesmilo .readthedocs.io/en/latest/protocol-methods.html#blockchain-scripthash-get-balance
144
+ /// https://electrum-protocol .readthedocs.io/en/latest/protocol-methods.html#blockchain-scripthash-get-balance
145
145
#[ derive( Default , Eq , PartialEq , Serialize ) ]
146
146
pub ( crate ) struct Balance {
147
147
#[ serde( with = "bitcoin::amount::serde::as_sat" , rename = "confirmed" ) ]
@@ -151,7 +151,7 @@ pub(crate) struct Balance {
151
151
}
152
152
153
153
/// A single unspent transaction output entry
154
- /// https://electrumx-spesmilo .readthedocs.io/en/latest/protocol-methods.html#blockchain-scripthash-listunspent
154
+ /// https://electrum-protocol .readthedocs.io/en/latest/protocol-methods.html#blockchain-scripthash-listunspent
155
155
#[ derive( Serialize ) ]
156
156
pub ( crate ) struct UnspentEntry {
157
157
height : usize , // 0 = mempool entry
@@ -500,7 +500,7 @@ fn filter_inputs(tx: &Transaction, outpoints: &HashSet<OutPoint>) -> Vec<OutPoin
500
500
. collect ( )
501
501
}
502
502
503
- // See https://electrumx-spesmilo .readthedocs.io/en/latest/protocol-basics.html#status for details
503
+ // See https://electrum-protocol .readthedocs.io/en/latest/protocol-basics.html#status for details
504
504
fn compute_status_hash ( history : & [ HistoryEntry ] ) -> Option < StatusHash > {
505
505
if history. is_empty ( ) {
506
506
return None ;
0 commit comments