MCPcopy Create free account
hub / github.com/XTXMarkets/ternfs / blockServiceIsWritable

Function blockServiceIsWritable

cpp/shard/BlockServicePicker.cpp:21–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 }
20
21 inline bool blockServiceIsWritable(const BlockServiceCache& bs, Duration writableDelay) {
22 return bs.availableBytes > 0 && blockServiceFlagsWritable(bs.flags) && ternNow() - bs.firstSeen > writableDelay;
23 }
24
25 // Apply power scaling to ensure max FD weight <= 1/N of total
26 void applyScaling(

Callers 1

updateMethod · 0.85

Calls 2

ternNowFunction · 0.85

Tested by

no test coverage detected