You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//TODO: Check if value is worth storing, use it to inform routing, and compare it
1498
-
//to the new HTLC max field in channel_update
1499
-
Some(value)
1500
-
},
1501
-
Err(ChainAccessError::UnknownChain) => {
1502
-
returnErr(LightningError{err:format!("Channel announced on an unknown chain ({})", msg.chain_hash.encode().to_hex()),action:ErrorAction::IgnoreError});
1503
-
},
1504
-
Err(ChainAccessError::UnknownTx) => {
1505
-
returnErr(LightningError{err:"Channel announced without corresponding UTXO entry".to_owned(),action:ErrorAction::IgnoreError});
1506
-
},
1507
-
}
1508
-
},
1509
-
};
1481
+
let utxo_value = gossip_checking::check_channel_announcement(chain_access, msg)?;
//TODO: Check if value is worth storing, use it to inform routing, and compare it
54
+
//to the new HTLC max field in channel_update
55
+
Some(value)
56
+
},
57
+
Err(ChainAccessError::UnknownChain) => {
58
+
returnErr(LightningError{err:format!("Channel announced on an unknown chain ({})", msg.chain_hash.encode().to_hex()),action:ErrorAction::IgnoreError});
59
+
},
60
+
Err(ChainAccessError::UnknownTx) => {
61
+
returnErr(LightningError{err:"Channel announced without corresponding UTXO entry".to_owned(),action:ErrorAction::IgnoreError});
0 commit comments