Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/lightning
/ Msat
Class
Msat
plugins/lsps-plugin/src/proto/lsps0.rs:72–72 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
70
/// represented as Millisatoshi `u64`.
71
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
72
pub struct Msat(pub u64);
73
74
impl Msat {
75
/// Constructs a new `Msat` struct from a `u64` msat value.
Callers
15
from_msat
Method · 0.85
from_sat
Method · 0.85
test_msat_serialization
Function · 0.85
test_msat_deserialization_and_errors
Function · 0.85
test_validate_invalid_promise
Function · 0.85
test_policy_params
Function · 0.85
get_info_returns_multiple_fee_params
Function · 0.85
buy_success_with_payment_size
Function · 0.85
buy_rejects_invalid_promise
Function · 0.85
buy_rejects_expired_offer
Function · 0.85
buy_rejects_payment_below_min
Function · 0.85
buy_rejects_payment_above_max
Function · 0.85
Calls
no outgoing calls
Tested by
4
test_msat_serialization
Function · 0.68
test_msat_deserialization_and_errors
Function · 0.68
test_validate_invalid_promise
Function · 0.68
test_policy_params
Function · 0.68