MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / Cancels

Method Cancels

src/alert.cpp:96–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94bool CAlert::IsInEffect() const { return (GetAdjustedTime() < nExpiration); }
95
96bool CAlert::Cancels(const CAlert& alert) const {
97 if (!IsInEffect())
98 return false; // this was a no-op before 31403
99 return (alert.nID <= nCancel || setCancel.count(alert.nID));
100}
101
102bool CAlert::AppliesTo(int nVersion, string strSubVerIn) const {
103 // TODO: rework for client-version-embedded-in-strSubVer ?

Callers 1

ProcessAlertMethod · 0.80

Calls 1

countMethod · 0.45

Tested by

no test coverage detected